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