UBUNTU-CVE-2026-28684

Source
https://ubuntu.com/security/CVE-2026-28684
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-28684.json
JSON Data
https://api.osv.dev/v1/vulns/UBUNTU-CVE-2026-28684
Upstream
  • CVE-2026-28684
Published
2026-04-20T17:16:00Z
Modified
2026-05-20T16:24:54.122298938Z
Severity
  • 6.6 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:H CVSS Calculator
  • Ubuntu - medium
Summary
[none]
Details

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.

References

Affected packages

Ubuntu:18.04:LTS
python-dotenv

Package

Name
python-dotenv
Purl
pkg:deb/ubuntu/python-dotenv?arch=source&distro=bionic

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

0.*
0.7.1-1.1

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "python3-dotenv",
            "binary_version": "0.7.1-1.1"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-28684.json"
Ubuntu:20.04:LTS
python-dotenv

Package

Name
python-dotenv
Purl
pkg:deb/ubuntu/python-dotenv?arch=source&distro=focal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

0.*
0.9.1-1

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "python3-dotenv",
            "binary_version": "0.9.1-1"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-28684.json"
Ubuntu:22.04:LTS
python-dotenv

Package

Name
python-dotenv
Purl
pkg:deb/ubuntu/python-dotenv?arch=source&distro=jammy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

0.*
0.15.0-1
0.19.0-1
0.19.2-1

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "python3-dotenv",
            "binary_version": "0.19.2-1"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-28684.json"
Ubuntu:24.04:LTS
python-dotenv

Package

Name
python-dotenv
Purl
pkg:deb/ubuntu/python-dotenv?arch=source&distro=noble

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

1.*
1.0.0-1
1.0.1-1

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "python3-dotenv",
            "binary_version": "1.0.1-1"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-28684.json"
Ubuntu:25.10
python-dotenv

Package

Name
python-dotenv
Purl
pkg:deb/ubuntu/python-dotenv?arch=source&distro=questing

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

1.*
1.0.1-1

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "python3-dotenv",
            "binary_version": "1.0.1-1"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-28684.json"
Ubuntu:26.04:LTS
python-dotenv

Package

Name
python-dotenv
Purl
pkg:deb/ubuntu/python-dotenv?arch=source&distro=resolute

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

1.*
1.0.1-1
1.0.1-1build1

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "python3-dotenv",
            "binary_version": "1.0.1-1build1"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-28684.json"