PT-2026-55944 · Pypi · Pydantic-Settings
CVSS v3.1
5.3
Medium
| Vector | AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L |
Name of the Vulnerable Software and Affected Versions
pydantic-settings versions 2.12.0 through 2.14.1
Description
The
NestedSecretsSettingsSource reads secret values from files within a configured secrets dir. When the secrets nested subdir variable is set to true, the system follows symbolic links within the secrets dir that point to locations outside that directory, allowing files from external paths to be read into settings values. This process also bypasses the secrets dir max size protection, which is intended to cap the loading size. An attacker or a lower-privileged component with the ability to modify entries in the configured secrets directory, such as through a writable or shared secrets mount, can exploit this to perform an unintended local file read and circumvent the size limit.Recommendations
Update pydantic-settings to version 2.14.2.
Exploit
Fix
Path traversal
Resource Exhaustion
Link Following
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Pydantic-Settings