PatchSiren cyber security CVE debrief
CVE-2026-58203 pydantic CVE debrief
The CVE record describes a local file read vulnerability in pydantic-settings versions from 2.12.0 to 2.14.2. An attacker with influence over the configured secrets directory can read files outside the directory, bypassing the documented size protection. This vulnerability has a CVSS score of 5.3 and is classified as MEDIUM severity. Users of pydantic-settings, especially those with shared or writable secrets mounts, should be aware of this vulnerability and take steps to mitigate it. The vulnerability is fixed in version 2.14.2.
- Vendor
- pydantic
- Product
- pydantic-settings
- CVSS
- MEDIUM 5.3
- CISA KEV
- Not listed in stored evidence
- Original CVE published
- 2026-07-06
- Original CVE updated
- 2026-07-09
- Advisory published
- 2026-07-06
- Advisory updated
- 2026-07-09
Who should care
Users of pydantic-settings, especially those with shared or writable secrets mounts, should be aware of this vulnerability and take steps to mitigate it. This includes reviewing and restricting access to the configured secrets directory and monitoring for unusual activity in the secrets directory. The vulnerability is fixed in version 2.14.2.
Technical summary
The NestedSecretsSettingsSource in pydantic-settings 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, allowing files outside the configured directory to be read into settings values. This also bypasses the documented secrets_dir_max_size protection. The vulnerability has a CVSS score of 5.3 and is classified as MEDIUM severity.
Defensive priority
Medium priority due to CVSS score of 5.3 and potential for local file reads.
Recommended defensive actions
- Upgrade to version 2.14.2 or later
- Review and restrict access to the configured secrets directory
- Monitor for unusual activity in the secrets directory
- Confirm whether affected product deployments exist in managed environments and assign an owner for follow-up
- Review compensating controls for exposed systems while remediation is scheduled and verified
- Check relevant monitoring, detection, and logs for exposed assets that need extra review
- Track exceptions, retest remediated assets, and close the item only after evidence is documented
Evidence notes
The CVE record and NVD detail provide information on the vulnerability and affected versions. The vendor advisory provides mitigation steps. Evidence limits suggest that additional verification may be required to confirm affected scope and severity. Defenders should review the official advisory and CVE record to validate affected scope, severity, and vendor guidance. The vulnerability allows an attacker or lower-privileged component to influence entries in the configured secrets directory, potentially leading to unintended local file reads into settings values.
Official resources
-
CVE-2026-58203 CVE record
CVE.org
-
CVE-2026-58203 NVD detail
NVD
-
Source item URL
nvd_modified
-
Mitigation or vendor reference
[email protected] - Exploit, Mitigation, Vendor Advisory
AI-assisted PatchSiren debrief based on the supplied source corpus. The CVE record was published on 2026-07-06T16:16:35.590Z and has not been modified since then.