AUGUST 21, 2026
Live Feed
Back to database
Case File

CVE-2026-58203

MEDIUM · CVSS 5.3 EPSS 0.18% Public Exploit

Source: NVD + CISA KEV + EPSS · Published 2026-07-06 · Last synced 2026-08-05

CyberRota Analysis

AI-Generated

The vulnerability in pydantic-settings affects versions 2.12.0 to 2.14.2, allowing an attacker to exploit the NestedSecretsSettingsSource to read sensitive files outside the configured secrets directory due to improper handling of symbolic links. This can lead to unauthorized access to secret values and bypasses the intended size limitations on loaded secrets. Organizations using affected versions, particularly those with writable or shared secrets directories, should prioritize upgrading to version 2.14.2 to mitigate this risk.

Public Exploit Signal

A public exploit, PoC, GitHub repository or Metasploit reference was detected for this CVE.

GitHub PoC Links

Note: these links are listed for security research and verification purposes only.

CVE
CVE-2026-58203
Severity
MEDIUM
CVSS
5.3
EPSS
0.18%

Original NVD 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.

Related CVEs

Other vulnerabilities affecting the same vendor(s)