
CVE catalog
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 rewrit
- Severity
- High · CVSS 7.1
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.25% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | python-dotenv | sid | 1.2.1-2 | vulnerable |
| Debian | python-dotenv | forky | 1.2.1-2 | vulnerable |
| Debian | python-dotenv | trixie | 1.0.1-1 | vulnerable |
| Debian | python-dotenv | bookworm | 0.21.0-1 | vulnerable |
| Cpe | python-dotenv | Not reported | Not reported | vulnerable |
| Cpe | python-dotenv | Not reported | 1.2.2 | fixed |
| PyPI | python-dotenv | Not reported | 1.2.2 | fixed |
| PyPI | python-dotenv | Not reported | 1.2.2 | fixed |
| Suse | python-python-dotenv | linux enterprise module for python 3 15 sp7 | 1.0.0-150400.9.6.1 | fixed |
| Suse | python-python-dotenv | linux enterprise server 16.0 | 1.1.0-160000.3.1 | fixed |
| Suse | python-python-dotenv | linux enterprise server for sap applications 16.0 | 1.1.0-160000.3.1 | fixed |
| Opensuse | python-python-dotenv | leap 16.0 | 1.1.0-160000.3.1 | fixed |
| Cpe | python-dotenv | Not reported | 1.2.2 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | python-dotenv | source | sid | (unfixed) | not yet assigned | Not reported | [1134491] |
| Debian | python-dotenv | source | forky | (unfixed) | not yet assigned | Not reported | [1134491] |
| Debian | python-dotenv | source | trixie | (unfixed) | not yet assigned | Not reported | [1134491] |
| Debian | python-dotenv | source | bookworm | (unfixed) | not yet assigned | Not reported | [1134491] |
| Cpe | python-dotenv | cpe | Not reported | 1.2.2 | Not reported | Not reported | Not reported |
| PyPI | python-dotenv | PyPI | Not reported | 1.2.2 | Not reported | PYSEC-2026-2270 | Not reported |
| PyPI | python-dotenv | PyPI | Not reported | 1.2.2 | Not reported | GHSA-MF9W-MJ56-HR94 | Not reported |
| Suse | python-python-dotenv | rpm | linux enterprise module for python 3 15 sp7 | 1.0.0-150400.9.6.1 | Not reported | SUSE-SU-2026:2724-1 | Not reported |
| Suse | python-python-dotenv | rpm | linux enterprise server 16.0 | 1.1.0-160000.3.1 | Not reported | SUSE-SU-2026:22118-1 | Not reported |
| Suse | python-python-dotenv | rpm | linux enterprise server for sap applications 16.0 | 1.1.0-160000.3.1 | Not reported | SUSE-SU-2026:22118-1 | Not reported |
| Opensuse | python-python-dotenv | rpm | leap 16.0 | 1.1.0-160000.3.1 | Not reported | OPENSUSE-SU-2026:20952-1 | Not reported |
| Cpe | python-dotenv | cpe | Not reported | 1.2.2 | Not reported | NVD-CVE-2026-28684 | Not reported |
Notes
[trixie] python-dotenv: Minor issue [bookworm] python-dotenv: Minor issue
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [python3-dotenv]Affected
Source package: [python-dotenv]
Details (2)
0.21.0-1· all · bookwormAffected
nvd · python-dotenv · debian · bookworm; nvd · python-dotenv · debian · 12
0.21.0-1· all · bookwormAffected
nvd · python-dotenv · debian · bookworm; nvd · python-dotenv · debian · 12
[Debian 13 (Trixie)]
- [python3-dotenv]Affected
Source package: [python-dotenv]
Details (2)
1.0.1-1· all · trixieAffected
nvd · python-dotenv · debian · 13
1.0.1-1· all · trixieAffected
nvd · python-dotenv · debian · 13
Observed:
References
- [https://ftp.suse.com/pub/projects/security/csaf/suse-su-2026_22118-1.json]
- [https://github.com/theskumar/python-dotenv/commit/790c5c02991100aa1bf41ee5330aca75edc51311]
- [https://github.com/theskumar/python-dotenv/releases/tag/v1.2.2]
- [https://github.com/theskumar/python-dotenv/security/advisories/GHSA-mf9w-mj56-hr94]
- [https://nvd.nist.gov/vuln/detail/CVE-2026-28684]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2026-28684]
- [https://osv.dev/vulnerability/GHSA-mf9w-mj56-hr94]
- [https://osv.dev/vulnerability/SUSE-SU-2026:22118-1]
- [https://osv.dev/vulnerability/SUSE-SU-2026:2724-1]
- [https://osv.dev/vulnerability/openSUSE-SU-2026:20952-1]
- [https://security-tracker.debian.org/tracker/CVE-2026-28684]
- [https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-28684.json]
- [https://wid.cert-bund.de/.well-known/csaf/white/2026/wid-sec-w-2026-1407.json]
[CERT-Bund public advisories] · [Debian Security Tracker] · [FIRST EPSS] · [National Vulnerability Database (NVD)] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]