PT-2026-33800

CVE-2026-28684

·

Published

2026-04-20

·

Updated

2026-10-04

Description by

CVSS 3.1
6.6
Medium
MetricsAV:L/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:H
Name of the Vulnerable Software and Affected Versions python-dotenv versions prior to 1.2.2
Description The set key() and unset key() functions in python-dotenv follow symbolic links when rewriting .env files. This occurs when the rewrite() context manager in dotenv/main.py writes to a temporary file in the system default directory and attempts to move it to the target location using shutil.move(). If the target is a symbolic link and the temporary directory is on a different filesystem, shutil.move() falls back to shutil.copy2(), which follows symbolic links by default. A local attacker with write access to the directory containing the .env file can create a crafted symlink to overwrite arbitrary files that the application process has permission to modify, potentially leading to integrity violations, denial of service, or privilege escalation.
Recommendations Upgrade to version 1.2.2.
Exploitability
Exploit
Fix
Impacts
Researchers
Vendors
Affected products
Related identifiers
GHSA-MF9W-MJ56-HR94
CLEANSTART-2026-FT24360
CLEANSTART-2026-JU43269
CLEANSTART-2026-LJ72726
CLEANSTART-2026-MQ51708
CLEANSTART-2026-TX03176
CLEANSTART-2026-UO85049
ECHO-F84B-10A2-6D9D
OESA-2026-2198
OESA-2026-2199
OESA-2026-2324
OPENSUSE-SU-2026:20952-1
PYSEC-2026-2270
SUSE-SU-2026:22118-1
SUSE-SU-2026:2724-1
Found an issue in the description? Have something to add? Feel free to write us 👾