CVE-2026-58203 | NestedSecretsSettingsSource follows symlinks outside secrets_dir, enabling local file read and bypassing secrets_dir_max_size

Exp

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.

Published: 2026-07-06 Last update: 2026-07-09 Assigner: [email protected] Source: [email protected]

Conclusion & alert: CVE-2026-58203 is rated Exploit Available (50/100): CVSS Medium severity, with low exploitation likelihood (EPSS 0.12%). Core evidence: 1 public exploit reference(s) are indexed (Exploit-DB). Mandatory action: Public exploits are available—assess exposure, apply mitigations, and prioritize patching.

Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.

Public exploit references (Exploit-DB) for CVE-2026-58203

EDB-ID Source Kind Published Link
nvd_ref exploit_tag Exploit-DB ↗

Exploit prediction scoring system (EPSS) score for CVE-2026-58203

EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).

# Date Old EPSS score New EPSS score Delta (New - Old)
1 2026-07-07 0.12%

Full EPSS history (1 record total)

Common vulnerability scoring system (CVSS) metrics for CVE-2026-58203

CVSS metrics for this CVE.

Base score Version Severity Vector Exploitability Impact Score source
5.3 3.1 MEDIUM
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L Click to expand
Attack vector (AV:L)
They already need access on the box, or another person has to do something wrong; it’s not a remote drive-by.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:L)
A normal user session is enough; they don’t have to be admin.
User interaction (UI:N)
Nobody has to click “OK” or open a trap file; it can work without a victim helping.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:L)
Some sensitive info could get out, but not a total data dump.
Integrity (I:L)
Attackers could change some data, but it’s limited—not everything goes.
Availability (A:L)
Might cause slowdowns, glitches, or partial disruption—not a full brick.
1.8 3.4 [email protected]

Weakness enumeration for CVE-2026-58203

OS Trackers for CVE-2026-58203

vendor priority summary link
debian unimportant CVE-2026-58203 unimportant priority: Debian including 1 source packages (pydantic-settings), 3 status rows across 3 suites (forky, sid, trixie): resolved 3. https://security-tracker.debian.org/tracker/CVE-2026-58203
ubuntu medium CVE-2026-58203 medium priority: Ubuntu including 1 source packages (pydantic-settings), 5 status rows across 5 suites (jammy, noble, questing, resolute, upstream): DNE 2, ignored 1, needs-triage 1, released 1. https://ubuntu.com/security/CVE-2026-58203

Affected software / configurations for CVE-2026-58203

Vendor Product Version Raw CPE
pydantic pydantic >= 2.12.0, < 2.14.2 cpe:2.3:a:pydantic:pydantic:*:*:*:*:*:*:*:*

References for CVE-2026-58203

cvelogic Threat Intelligence