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

[CVE catalog]

Severity
Medium · CVSS 5.3CVSS: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.

DistributionPackageReleaseVersionStatus
CpepydanticNot reported2.14.2fixed
PyPIpydantic-settingsNot reported2.14.2fixed
Debianpydantic-settings142.10.1-1vulnerable
Debianpydantic-settings142.10.1-2vulnerable
Debianpydantic-settings142.11.0-1vulnerable
Debianpydantic-settings142.12.0-1vulnerable
Debianpydantic-settings142.12.0-2vulnerable
Debianpydantic-settings142.13.0-1vulnerable
Debianpydantic-settings142.14.0-1vulnerable
Debianpydantic-settings142.14.1-1vulnerable
Debianpydantic-settings142.8.1-2vulnerable
Debianpydantic-settings142.14.2-1fixed
Ubuntupydantic-settings25.102.8.1-1vulnerable
Ubuntupydantic-settings25.102.8.1-2vulnerable
Ubuntupydantic-settings26.042.8.1-2vulnerable
Ubuntupydantic-settings26.042.12.0-2vulnerable
Ubuntupydantic-settings26.042.13.0-1vulnerable
Cpepydantic-settingsNot reported2.14.2fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
CpepydanticcpeNot reported2.14.2Not reportedNot reportedNot reported
PyPIpydantic-settingsPyPINot reported2.14.2Not reportedGHSA-4XGF-CPJX-PC3JNot reported
Debianpydantic-settingsdeb142.14.2-1Not reportedDEBIAN-CVE-2026-58203Not reported
Cpepydantic-settingscpeNot reported2.14.2Not reportedNVD-CVE-2026-58203Not reported

OpenFactory catalog packages

No matching packages in this catalog.

Observed:

References