Free and open · new CVEs checked every 20 minutesStatusRSSOpen dataContact

CVE-2026-58203: pydantic-settings provides settings management using Pydantic

26
Routine
MEDIUM 5.3UPGRADE

CVE-2026-58203 is a medium-severity flaw (CVSS 5.3) affecting pydantic-settings. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.

pydantic-settings provides settings management using Pydantic. From 2.12.0 until 2.14.2, NestedSecretsSettingsSource reads secret values from files in a configured secrets_dir. When secrets_nested_subdir=True, a directory entry inside secrets_dir that is a symbolic link pointing outside secrets_dir is followed, so files outside the configured directory are read into settings values. The same code path bypasses the documented secrets_dir_max_size

Why this priority

  • Public exploit reference

A fixed release or distro patch exists.

Risk facts

CVSS score5.3 (Medium)
Attack vectorLocal
Attack complexityLow
Privileges neededLow
User interactionNone
EPSS exploit chance0.2% (top 92%)
CISA exploited listNo
WeaknessCWE-22, CWE-59, CWE-400
Published2026-07-06
Last modified2026-10-25
Publisher (CNA): GitHub, Inc. · Vendor: pydantic

Share: LinkedIn · X · Reddit

Last updated 2026-10-25 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score

Am I affected?

Timeline

pydantic pydantic-settings UPGRADE
Affected: >= 2.12.0 and < 2.14.2
Fixed in: 2.14.2
Safe to downgrade to: a release before 2.12.0
1. Check installed version
apt-cache policy pydantic-settings || rpm -q pydantic-settings || pydantic-settings --version
2. UPGRADE to 2.14.2 (Debian / Ubuntu)
sudo apt update && sudo apt install --only-upgrade pydantic-settings
2. UPGRADE (RHEL / Amazon Linux / Fedora)
sudo dnf upgrade pydantic-settings
Note
Distros often backport fixes without changing the version number. Confirm with the distro advisory or changelog.
3. If no update is available yet, DOWNGRADE to a release before 2.12.0 (Debian / Ubuntu)
apt-cache madison pydantic-settings sudo apt install pydantic-settings=<VERSION_BEFORE_2.12.0> sudo apt-mark hold pydantic-settings
3. If no update is available yet, DOWNGRADE (RHEL / Amazon Linux / Fedora)
dnf --showduplicates list pydantic-settings sudo dnf downgrade pydantic-settings-<VERSION_BEFORE_2.12.0> sudo dnf versionlock add pydantic-settings
Downgrade risk
Downgrading can break dependent software and may reopen older bugs. Read the distro advisory first and test on a non-production host.
After downgrade
Restart the service, and keep the package held until a fixed release ships.
Verify at the official source NVD · CVE Program · Report a problem with this page
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.

Quick answers

How do I fix CVE-2026-58203?

pydantic-settings: upgrade to 2.14.2. Exact commands for each OS are on this page.

Is CVE-2026-58203 being exploited?

CVE-2026-58203 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.

What does CVE-2026-58203 affect?

CVE-2026-58203 affects pydantic-settings. Severity is medium (CVSS 5.3). pydantic-settings provides settings management using Pydantic. From 2.12.0 until 2.14.2, NestedSecretsSettingsSource reads secret values from files in a configured secrets_dir. When secrets_nested_subdir=True, a directory entry inside secre

How urgent is CVE-2026-58203?

Priority 26/100. Public exploit reference

References

← Back to latest CVEs

Get the weekly exploited-CVE digest by emailThe CVEs being attacked this week and how to fix them. No spam, unsubscribe any time.