Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-58203— NestedSecretsSettingsSource follows symlinks outside secrets_dir, enabling local file read and bypassing secrets_dir_max_size

Quick assessment

Affected
pydantic pydantic-settings
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Pydantic pydantic-settings是Pydantic组织的一个Python应用配置管理库。 pydantic-settings 2.12.0版本至2.14.2之前版本存在安全漏洞,该漏洞源于在配置的secrets_dir中读取文件时未正确验证符号链接,导致可读取secrets_dir之外的文件,并绕过secrets_dir_max_size保护。攻击者或低权限组件可能通过在可写或共享的secrets目录中放置条目来导致意外本地文件读取到设置中,并绕过加载大小限制。

CVSS 5.3 · Medium EPSS 0.18% · P7

Affected Version Matrix 1

VendorProduct Version RangeStatus
pydantic pydantic-settings >= 2.12.0, < 2.14.2 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-58203

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
NestedSecretsSettingsSource follows symlinks outside secrets_dir, enabling local file read and bypassing secrets_dir_max_size
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
Source: CVE Program / CVE List V5
Vulnerability Type
对路径名的限制不恰当(路径遍历)
Source: CVE Program / CVE List V5
Vulnerability Title
pydantic-settings 路径遍历漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Pydantic pydantic-settings是Pydantic组织的一个Python应用配置管理库。 pydantic-settings 2.12.0版本至2.14.2之前版本存在安全漏洞,该漏洞源于在配置的secrets_dir中读取文件时未正确验证符号链接,导致可读取secrets_dir之外的文件,并绕过secrets_dir_max_size保护。攻击者或低权限组件可能通过在可写或共享的secrets目录中放置条目来导致意外本地文件读取到设置中,并绕过加载大小限制。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
pydantic pydantic-settings >= 2.12.0, < 2.14.2 -

II. Public POCs for CVE-2026-58203

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-58203

请登录查看更多情报信息。

Vendor Advisories for CVE-2026-58203 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2026-58203

No comments yet


Leave a comment