ADVISORIES

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
    CVE-2026-28684 Chainguard Updated 5 November 2026
  • CGA-272p-245j-w5m9
    CVE-2026-28684 Chainguard Updated 5 November 2026
  • CGA-2rjx-454c-c78g
    CVE-2026-28684 ChainguardWolfi Updated 5 November 2026
  • CGA-36m9-64mj-r3rq
    CVE-2026-28684 Chainguard Updated 5 November 2026
  • CGA-3hv3-j5f4-4jjx
    CVE-2026-28684 Chainguard Updated 5 November 2026
  • CGA-48g5-p7x7-j53g
    CVE-2026-28684 Chainguard Updated 5 November 2026
  • CGA-4mmg-3m9c-3c26
    CVE-2026-28684 Chainguard Updated 5 November 2026
  • CGA-5w83-3xfp-p5jx
    CVE-2026-28684 Chainguard Updated 5 November 2026
  • CGA-627h-qv7r-4295
    CVE-2026-28684 ChainguardWolfi Updated 5 November 2026
  • CGA-66v9-2qfj-hrfh
    CVE-2026-28684 Chainguard Updated 5 November 2026
  • CGA-78p9-7539-fmxx
    CVE-2026-28684 Chainguard Updated 5 November 2026
  • CGA-9g95-9978-9h33
    CVE-2026-28684 Chainguard Updated 5 November 2026
  • CGA-cvj6-m77f-v4hx
    CVE-2026-28684 ChainguardWolfi Updated 5 November 2026
  • CGA-fcr8-988v-8qr5
    CVE-2026-28684 Chainguard Updated 5 November 2026
  • CGA-j823-cqpv-hgvp
    CVE-2026-28684 ChainguardWolfi Updated 5 November 2026
  • CGA-p3qm-fhq5-g786
    CVE-2026-28684 ChainguardWolfi Updated 5 November 2026
  • CGA-px7m-292j-25v2
    CVE-2026-28684 Chainguard Updated 5 November 2026
  • CGA-qpx7-rw2x-phr2
    CVE-2026-28684 ChainguardWolfi Updated 5 November 2026
  • CGA-r4c5-c9fc-99g9
    CVE-2026-28684 Chainguard Updated 5 November 2026
  • CGA-r5h2-fx8m-m8v9
    CVE-2026-28684 ChainguardWolfi Updated 5 November 2026
  • CGA-vh82-v2m5-qvmg
    CVE-2026-28684 Chainguard Updated 5 November 2026
  • CGA-wp2w-r87m-3286
    CVE-2026-28684 Chainguard Updated 5 November 2026
  • CGA-wq7m-88rq-95h9
    CVE-2026-28684 Chainguard Updated 5 November 2026
  • CGA-x3c3-2xj5-fmgc
    CVE-2026-28684 ChainguardWolfi Updated 5 November 2026
  • CGA-xq6g-p6hh-374g
    CVE-2026-28684 Chainguard Updated 5 November 2026
  • CGA-xr4m-v4m4-vp49
    CVE-2026-28684 Chainguard Updated 5 November 2026
  • CGA-xw36-23mr-6vhq
    CVE-2026-28684 Chainguard Updated 5 November 2026
  • 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,…

    CVE-2026-28684 Debian Updated 27 October 2026
  • FEDORA-2026-20312e36a8

    python-dotenv-1.2.2-1.fc43

    Moderate CVE-2026-28684 Fedora Updated 21 May 2026
  • FEDORA-2026-79e64d2daa

    python-dotenv-1.2.2-1.fc44

    Moderate CVE-2026-28684 Fedora Updated 21 May 2026
  • GHSA-mf9w-mj56-hr94

    python-dotenv: Symlink following in set_key allows arbitrary file overwrite via cross-device rename fallback

    Moderate CVE-2026-28684 PyPI Updated 10 September 2026
  • OESA-2026-2198

    python-dotenv security update

    Medium CVE-2026-28684 openEuler Updated 18 August 2026
  • OESA-2026-2199

    python-dotenv security update

    Medium CVE-2026-28684 openEuler Updated 18 August 2026
  • OESA-2026-2324

    python-dotenv security update

    Medium CVE-2026-28684 openEuler Updated 18 August 2026
  • 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,…

    CVE-2026-28684 PyPI Updated 13 July 2026
  • SUSE-SU-2026:22118-1

    Security update for python-python-dotenv

    CVE-2026-28684 SUSE Updated 17 June 2026
  • SUSE-SU-2026:2724-1

    Security update for python-python-dotenv

    CVE-2026-28684 SUSE Updated 3 July 2026
  • 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,…

    Moderate CVE-2026-28684 SUSEopenSUSE Updated 11 September 2026
  • 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,…

    CVE-2026-28684 Ubuntu Updated 17 October 2026
  • openSUSE-SU-2026:12571-1

    python313-pydantic-settings-2.16.3-1.1 on GA media

    CVE-2026-28684 openSUSE Updated 17 November 2026
  • openSUSE-SU-2026:20952-1

    Security update for python-python-dotenv

    CVE-2026-28684 openSUSE Updated 16 June 2026

References