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?
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
