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

[CVE catalog]

Severity
High · CVSS 7.1CVSS: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.

DistributionPackageReleaseVersionStatus
Debianpython-dotenvsid1.2.1-2vulnerable
Debianpython-dotenvforky1.2.1-2vulnerable
Debianpython-dotenvtrixie1.0.1-1vulnerable
Debianpython-dotenvbookworm0.21.0-1vulnerable
Cpepython-dotenvNot reportedNot reportedvulnerable
Cpepython-dotenvNot reported1.2.2fixed
PyPIpython-dotenvNot reported1.2.2fixed
PyPIpython-dotenvNot reported1.2.2fixed
Susepython-python-dotenvlinux enterprise module for python 3 15 sp71.0.0-150400.9.6.1fixed
Susepython-python-dotenvlinux enterprise server 16.01.1.0-160000.3.1fixed
Susepython-python-dotenvlinux enterprise server for sap applications 16.01.1.0-160000.3.1fixed
Opensusepython-python-dotenvleap 16.01.1.0-160000.3.1fixed
Cpepython-dotenvNot reported1.2.2fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianpython-dotenvsourcesid(unfixed)not yet assignedNot reported[1134491]
Debianpython-dotenvsourceforky(unfixed)not yet assignedNot reported[1134491]
Debianpython-dotenvsourcetrixie(unfixed)not yet assignedNot reported[1134491]
Debianpython-dotenvsourcebookworm(unfixed)not yet assignedNot reported[1134491]
Cpepython-dotenvcpeNot reported1.2.2Not reportedNot reportedNot reported
PyPIpython-dotenvPyPINot reported1.2.2Not reportedPYSEC-2026-2270Not reported
PyPIpython-dotenvPyPINot reported1.2.2Not reportedGHSA-MF9W-MJ56-HR94Not reported
Susepython-python-dotenvrpmlinux enterprise module for python 3 15 sp71.0.0-150400.9.6.1Not reportedSUSE-SU-2026:2724-1Not reported
Susepython-python-dotenvrpmlinux enterprise server 16.01.1.0-160000.3.1Not reportedSUSE-SU-2026:22118-1Not reported
Susepython-python-dotenvrpmlinux enterprise server for sap applications 16.01.1.0-160000.3.1Not reportedSUSE-SU-2026:22118-1Not reported
Opensusepython-python-dotenvrpmleap 16.01.1.0-160000.3.1Not reportedOPENSUSE-SU-2026:20952-1Not reported
Cpepython-dotenvcpeNot reported1.2.2Not reportedNVD-CVE-2026-28684Not reported

[Debian bug #1134491]

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 · bookworm

      Affected

      nvd · python-dotenv · debian · bookworm; nvd · python-dotenv · debian · 12

    • 0.21.0-1 · all · bookworm

      Affected

      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 · trixie

      Affected

      nvd · python-dotenv · debian · 13

    • 1.0.1-1 · all · trixie

      Affected

      nvd · python-dotenv · debian · 13

Observed:

References