Vulnerability
CVE-2026-28684
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.
41 advisories report this vulnerability, across 9 ecosystems.
Advisories
- CGA-26g2-4gpr-pqj6
- CGA-272p-245j-w5m9
- CGA-2rjx-454c-c78g
- CGA-36m9-64mj-r3rq
- CGA-3hv3-j5f4-4jjx
- CGA-48g5-p7x7-j53g
- CGA-4mmg-3m9c-3c26
- CGA-5w83-3xfp-p5jx
- CGA-627h-qv7r-4295
- CGA-66v9-2qfj-hrfh
- CGA-78p9-7539-fmxx
- CGA-9g95-9978-9h33
- CGA-cvj6-m77f-v4hx
- CGA-fcr8-988v-8qr5
- CGA-j823-cqpv-hgvp
- CGA-p3qm-fhq5-g786
- CGA-px7m-292j-25v2
- CGA-qpx7-rw2x-phr2
- CGA-r4c5-c9fc-99g9
- CGA-r5h2-fx8m-m8v9
- CGA-vh82-v2m5-qvmg
- CGA-wp2w-r87m-3286
- CGA-wq7m-88rq-95h9
- CGA-x3c3-2xj5-fmgc
- CGA-xq6g-p6hh-374g
- CGA-xr4m-v4m4-vp49
- CGA-xw36-23mr-6vhq
-
DEBIAN-CVE-2026-28684
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,…
-
FEDORA-2026-20312e36a8
python-dotenv-1.2.2-1.fc43
-
FEDORA-2026-79e64d2daa
python-dotenv-1.2.2-1.fc44
-
GHSA-mf9w-mj56-hr94
python-dotenv: Symlink following in set_key allows arbitrary file overwrite via cross-device rename fallback
-
OESA-2026-2198
python-dotenv security update
-
OESA-2026-2199
python-dotenv security update
-
OESA-2026-2324
python-dotenv security update
-
PYSEC-2026-2270
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,…
-
SUSE-SU-2026:22118-1
Security update for python-python-dotenv
-
SUSE-SU-2026:2724-1
Security update for python-python-dotenv
-
SUSEVEX-CVE-2026-28684
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,…
-
UBUNTU-CVE-2026-28684
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,…
-
openSUSE-SU-2026:12571-1
python313-pydantic-settings-2.16.3-1.1 on GA media
-
openSUSE-SU-2026:20952-1
Security update for python-python-dotenv