CVE-2026-28684
Last modified
CVE-2026-28684 is a medium-severity vulnerability rated 6.6/10 on the CVSS scale. 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. EPSS estimates a 0.24% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Saurabh-Kumar | Python-Dotenv | < 1.2.2 |
References
- https://github.com/theskumar/python-dotenv/security/advisories/GHSA-mf9w-mj56-hr94Exploit, Patch, Vendor Advisory
- https://github.com/theskumar/python-dotenv/security/advisories/GHSA-mf9w-mj56-hr94Exploit, Patch, Vendor Advisory
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2026-28684?
How severe is CVE-2026-28684?
How do I fix CVE-2026-28684?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-28679Home-Gallery.org is a self-hosted open-source web gallery to…7.5
- CVE-2026-2868The Gutenverse – Ultimate WordPress FSE Blocks Addons & Ecos…6.4
- CVE-2026-28680Ghostfolio is an open source wealth management software. Pri…9.3
- CVE-2026-28681Internet Routing Registry daemon version 4 is an IRR databas…8.1
- CVE-2026-28682Gokapi is a self-hosted file sharing server with automatic e…6.4
- CVE-2026-28683Gokapi is a self-hosted file sharing server with automatic e…8.7
- CVE-2026-28685Kimai is a web-based multi-user time-tracking application. P…6.5
- CVE-2026-28686ImageMagick is free and open-source software used for editin…6.8
- CVE-2026-28687ImageMagick is free and open-source software used for editin…5.3
- CVE-2026-28688ImageMagick is free and open-source software used for editin…5.3
- CVE-2026-28689ImageMagick is free and open-source software used for editin…6.3
- CVE-2026-2869A vulnerability was identified in janet-lang janet up to 1.4…5.5
Are you affected by CVE-2026-28684?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
