Skip to content
Heist/ feed
Unrated

DEBIAN-CVE-2026-28684

Type: advisorySource: OSV1 source record

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.

Announced Source revision 1
Original source ↗

DEBIAN-CVE-2026-28684

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: osv:DEBIAN-CVE-2026-28684

python-dotenv

Source reference: /affected/0/package/name

Affected versions
0.21.0-1

Source reference: /affected/0/versions

1.0.0-1

Source reference: /affected/0/versions

1.0.1-1

Source reference: /affected/0/versions

1.2.1-1

Source reference: /affected/0/versions

1.2.1-2

Source reference: /affected/0/versions

Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

python-dotenv

Source reference: /affected/1/package/name

Affected versions
1.0.1-1

Source reference: /affected/1/versions

1.2.1-1

Source reference: /affected/1/versions

1.2.1-2

Source reference: /affected/1/versions

Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

python-dotenv

Source reference: /affected/2/package/name

Affected versions
1.0.1-1

Source reference: /affected/2/versions

1.2.1-1

Source reference: /affected/2/versions

1.2.1-2

Source reference: /affected/2/versions

Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "ranges": [
      {
        "type": "ECOSYSTEM",
        "events": [
          {
            "introduced": "0"
          }
        ]
      }
    ],
    "package": {
      "name": "python-dotenv",
      "purl": "pkg:deb/debian/python-dotenv?arch=source&distro=bookworm",
      "ecosystem": "Debian:12"
    },
    "versions": [
      "0.21.0-1",
      "1.0.0-1",
      "1.0.1-1",
      "1.2.1-1",
      "1.2.1-2"
    ],
    "database_specific": {
      "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-28684.json"
    },
    "ecosystem_specific": {
      "urgency": "not yet assigned"
    }
  },
  {
    "ranges": [
      {
        "type": "ECOSYSTEM",
        "events": [
          {
            "introduced": "0"
          }
        ]
      }
    ],
    "package": {
      "name": "python-dotenv",
      "purl": "pkg:deb/debian/python-dotenv?arch=source&distro=trixie",
      "ecosystem": "Debian:13"
    },
    "versions": [
      "1.0.1-1",
      "1.2.1-1",
      "1.2.1-2"
    ],
    "database_specific": {
      "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-28684.json"
    },
    "ecosystem_specific": {
      "urgency": "not yet assigned"
    }
  },
  {
    "ranges": [
      {
        "type": "ECOSYSTEM",
        "events": [
          {
            "introduced": "0"
          }
        ]
      }
    ],
    "package": {
      "name": "python-dotenv",
      "purl": "pkg:deb/debian/python-dotenv?arch=source&distro=forky",
      "ecosystem": "Debian:14"
    },
    "versions": [
      "1.0.1-1",
      "1.2.1-1",
      "1.2.1-2"
    ],
    "database_specific": {
      "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-28684.json"
    },
    "ecosystem_specific": {
      "urgency": "not yet assigned"
    }
  }
]

Publisher severity

No explicit severity was provided.

Event
#56721 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement