
CVE catalog
CVE-2026-58203
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_sub
- Severity
- Medium · CVSS 5.3
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.18% · Oct 25, 2026
A flaw was found in the `pydantic-settings` component. When configured to handle nested secrets, this vulnerability allows an attacker to read sensitive files from outside the designated secrets directory. By placing a specially crafted symbolic link within the secrets directory, an attacker can trick the system into accessing unauthorized files. This issue also bypasses a safeguard designed to limit the size of loaded secrets, potentially leading to unexpected resource usage. This vulnerability requires an attacker to have the ability to modify entries within the secrets directory. pydantic-settings: NestedSecretsSettingsSource follows symlinks outside secrets_dir, enabling local file read and bypassing secrets_dir_max_size Moderate: This flaw in `pydantic-settings` allows for local file disclosure and bypass of size restrictions when `NestedSecretsSettingsSource` is used with `secrets_nested_subdir=True` and an attacker can influence entries in the configured `secrets_dir`. This is due to inconsistent directory traversal implementations that follow symbolic links outside the intended directory, enabling unauthorized reading of local files. The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Cpe | pydantic | Not reported | 2.14.2 | fixed |
| PyPI | pydantic-settings | Not reported | 2.14.2 | fixed |
| Debian | pydantic-settings | 14 | 2.10.1-1 | vulnerable |
| Debian | pydantic-settings | 14 | 2.10.1-2 | vulnerable |
| Debian | pydantic-settings | 14 | 2.11.0-1 | vulnerable |
| Debian | pydantic-settings | 14 | 2.12.0-1 | vulnerable |
| Debian | pydantic-settings | 14 | 2.12.0-2 | vulnerable |
| Debian | pydantic-settings | 14 | 2.13.0-1 | vulnerable |
| Debian | pydantic-settings | 14 | 2.14.0-1 | vulnerable |
| Debian | pydantic-settings | 14 | 2.14.1-1 | vulnerable |
| Debian | pydantic-settings | 14 | 2.8.1-2 | vulnerable |
| Debian | pydantic-settings | 14 | 2.14.2-1 | fixed |
| Ubuntu | pydantic-settings | 25.10 | 2.8.1-1 | vulnerable |
| Ubuntu | pydantic-settings | 25.10 | 2.8.1-2 | vulnerable |
| Ubuntu | pydantic-settings | 26.04 | 2.8.1-2 | vulnerable |
| Ubuntu | pydantic-settings | 26.04 | 2.12.0-2 | vulnerable |
| Ubuntu | pydantic-settings | 26.04 | 2.13.0-1 | vulnerable |
| Cpe | pydantic-settings | Not reported | 2.14.2 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Cpe | pydantic | cpe | Not reported | 2.14.2 | Not reported | Not reported | Not reported |
| PyPI | pydantic-settings | PyPI | Not reported | 2.14.2 | Not reported | GHSA-4XGF-CPJX-PC3J | Not reported |
| Debian | pydantic-settings | deb | 14 | 2.14.2-1 | Not reported | DEBIAN-CVE-2026-58203 | Not reported |
| Cpe | pydantic-settings | cpe | Not reported | 2.14.2 | Not reported | NVD-CVE-2026-58203 | Not reported |
OpenFactory catalog packages
No matching packages in this catalog.
Observed:
References
- [https://github.com/pydantic/pydantic-settings/security/advisories/GHSA-4xgf-cpjx-pc3j]
- [https://nvd.nist.gov/vuln/detail/CVE-2026-58203]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2026-58203]
- [https://osv.dev/vulnerability/GHSA-4xgf-cpjx-pc3j]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2026-58203]
- [https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-58203.json]
[FIRST EPSS] · [National Vulnerability Database (NVD)] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX]