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

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2026-28684— python-dotenv: Symlink following in set_key allows arbitrary file overwrite via cross-device rename fallback

CVSS 6.6 · Medium EPSS 0.01% · P1
Get alerts for future matching vulnerabilitiesLog in to subscribe

I. Basic Information for CVE-2026-28684

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
python-dotenv: Symlink following in set_key allows arbitrary file overwrite via cross-device rename fallback
Source: NVD (National Vulnerability Database)
Vulnerability Description
python-dotenv reads key-value pairs from a .env file and can set them as environment variables. Prior to version 1.2.2, `set_key()` and `unset_key()` in python-dotenv follow symbolic links when rewriting `.env` files, allowing a local attacker to overwrite arbitrary files via a crafted symlink when a cross-device rename fallback is triggered. Users should upgrade to v.1.2.2 or, as a workaround, apply the patch manually.
Source: NVD (National Vulnerability Database)
CVSS Information
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:H
Source: NVD (National Vulnerability Database)
Vulnerability Type
在文件访问前对链接解析不恰当(链接跟随)
Source: NVD (National Vulnerability Database)
Vulnerability Title
python-dotenv 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
python-dotenv是Saurabh Kumar个人开发者的一个Python环境变量管理工具。 python-dotenv 1.2.2之前版本存在安全漏洞,该漏洞源于set_key和unset_key函数在处理符号链接时存在缺陷,可能导致本地攻击者通过特制的符号链接覆盖任意文件。
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

VendorProductAffected VersionsCPESubscribe
theskumarpython-dotenv < 1.2.2 -

II. Public POCs for CVE-2026-28684

#POC DescriptionSource LinkShenlong Link
AI-Generated POCPremium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-28684

登录查看更多情报信息。

IV. Related Vulnerabilities

V. Comments for CVE-2026-28684

No comments yet


Leave a comment