Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2026-58203

MEDIUM 5.3EPSS 5%

NestedSecretsSettingsSource follows symlinks outside secrets_dir, enabling local file read and bypassing secrets_dir_max_size

Also known as GHSA-4xgf-cpjx-pc3j

Mitigation

  • Upgrade pydantic-settings to 2.14.2 or later.

Who should check

  • Projects that depend on PyPI package pydantic-settings (>= 2.12.0, < 2.14.2)
  • Anyone running pydantic-settings >= 2.12.0, < 2.14.2

Vulnerability facts

Affected
pydantic-settings >= 2.12.0, < 2.14.2
Fixed in
2.14.2
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
CVSS
5.3 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:LOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Local
  • Attack complexity: Low
  • Privileges required: Low
  • User interaction: None
  • Scope: Unchanged
  • Confidentiality impact: Low
  • Integrity impact: Low
  • Availability impact: Low
EPSS
0.18% chance of exploitation in 30 days (percentile 5, 2026-11-26)
CWE
CWE-22, CWE-59, CWE-400
Published
Modified

Description

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 protection. An attacker or lower-privileged component able to influence entries in the configured secrets directory (for example, a writable or shared secrets mount) can turn this into an unintended local file read into settings and can defeat the advertised loading-size cap. This vulnerability is fixed in 2.14.2.

Affected and fixed versions

Package / productAffectedFixedSource
PyPI pydantic-settings>= 2.12.0, < 2.14.22.14.2osv
pydantic-settings>= 2.12.0, < 2.14.2—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2026-58203. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-58203.md
Affected: pydantic-settings >= 2.12.0, < 2.14.2
Fixed in: 2.14.2

Steps:
1. Search this machine and project for pydantic-settings (PyPI), pydantic-settings: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2026-58203 being exploited?

There is no confirmed exploitation: CVE-2026-58203 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.18% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2026-58203?

Medium: CVSS 5.3 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

Which versions are affected by CVE-2026-58203?

pydantic-settings >= 2.12.0, < 2.14.2.

Is there a fix for CVE-2026-58203?

Yes. Fixed in 2.14.2. Upgrade pydantic-settings to 2.14.2 or later.

How do I check if I'm affected by CVE-2026-58203?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors