{"cve":"CVE-2026-58203","nvd":{"published":"2026-07-06T16:16:35.590","modified":"2026-10-25T20:10:00.147","status":"Analyzed","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","score":5.3},"cwes":["CWE-22","CWE-59","CWE-400"],"references":["https://github.com/pydantic/pydantic-settings/security/advisories/GHSA-4xgf-cpjx-pc3j","https://github.com/pydantic/pydantic-settings/security/advisories/GHSA-4xgf-cpjx-pc3j"],"products":["pydantic:pydantic-settings"],"source":"nvd","synced_at":"2026-10-25T23:44:34.550481224+00:00"},"epss":{"cve":"CVE-2026-58203","score":0.00185,"percentile":0.07984,"date":"2026-10-25"},"kev":null,"osv":[{"id":"GHSA-4xgf-cpjx-pc3j","url":"https://osv.dev/vulnerability/GHSA-4xgf-cpjx-pc3j","summary":"pydantic-settings: NestedSecretsSettingsSource follows symlinks outside secrets_dir, enabling local file read and bypassing secrets_dir_max_size","modified":"2026-09-10T03:50:48.282428168Z","packages":[{"ecosystem":"PyPI","name":"pydantic-settings","purl":"pkg:pypi/pydantic-settings","ranges":[">=2.12.0 <2.14.2"],"fixed":["2.14.2"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}