Bug 2459798 (CVE-2026-28684) - CVE-2026-28684 python-dotenv: python-dotenv: Arbitrary file overwrite via symbolic link following
Summary: CVE-2026-28684 python-dotenv: python-dotenv: Arbitrary file overwrite via sym...
Keywords:
Status: NEW
Alias: CVE-2026-28684
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2460548 2460549 2460551 2460552
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-04-20 17:02 UTC by OSIDB Bzimport
Modified: 2026-04-22 10:35 UTC (History)
60 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-04-20 17:02:41 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.