cve.bz

CVE-2026-28684 saurabh-kumar python-dotenv: Link Following

6.6 mediumExploit referenceEPSS 0.3%Fix available

Medium (6.6) in saurabh-kumar python-dotenv. EPSS 0.3% estimated probability of exploitation activity in the next 30 days. Fixed in python-dotenv 1.2.2.

On this page
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.

Severity

CVSS 3.1

6.6 medium
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:H
EPSS
0.3% (unchanged from 0.3% a week ago; 0.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 18th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: total, assessed 2026-04-20. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-59 Improper Link Resolution Before File Access (Link Following)
CWE-61 UNIX Symbolic Link (Symlink) Following
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-28684 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-28684?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-28684?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-28684 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
saurabh-kumar:python-dotenvbefore 1.2.2

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-mf9w-mj56-hr94PyPIpython-dotenv<1.2.21.2.2
PYSEC-2026-2270PyPIpython-dotenv<1.2.21.2.2

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14python-dotenvno fix listedDEBIAN-CVE-2026-28684
Ubuntu18.04:LTS, 20.04:LTS, 22.04:LTS and 4 morepython-dotenvno fix listedUBUNTU-CVE-2026-28684
SUSELinux Enterprise Module for Python 3 15 SP7python-python-dotenv1.0.0-150400.9.6.1SUSE-SU-2026:2724-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0python-python-dotenv1.1.0-160000.3.1SUSE-SU-2026:22118-1
openSUSELeap 16.0python-python-dotenv1.1.0-160000.3.1openSUSE-SU-2026:20952-1
openSUSETumbleweedpython-pydantic-settings2.16.3-1.1openSUSE-SU-2026:12571-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.

ProductPackageStateAdvisory
Red Hat AI Inference Server 3.2rhaiis/model-opt-cuda-rhel9:1787772157Fixed 2026-08-31RHSA-2026:61628
Red Hat Ansible Automation Platform 2.6ansible-automation-platform-26/lightspeed-chatbot-rhel9:1780102732Fixed 2026-06-09RHSA-2026:24866
Red Hat Ansible Automation Platform 2.6ansible-automation-platform-26/mcp-tools-rhel9:1779772877Fixed 2026-06-09RHSA-2026:24866
Red Hat Migration Toolkit for Applications 8.2mta/mta-solution-server-rhel9:1784109883Fixed 2026-07-21RHSA-2026:43038
Red Hat OpenShift AI 2.25rhoai/odh-feature-server-rhel9:1780069135Fixed 2026-06-10RHSA-2026:24977
Red Hat OpenShift AI 2.25rhoai/odh-kserve-storage-initializer-rhel9:1780069127Fixed 2026-06-10RHSA-2026:24977
Red Hat OpenShift AI 2.25rhoai/odh-vllm-gaudi-rhel9:1780069069Fixed 2026-06-10RHSA-2026:24977
Red Hat OpenShift AI 2.25rhoai/odh-caikit-tgis-serving-rhel9:1783082430Fixed 2026-07-21RHSA-2026:42644
Red Hat OpenShift AI 2.25rhoai/odh-llama-stack-core-rhel9:1783701598Fixed 2026-07-21RHSA-2026:42644
Red Hat OpenShift AI 2.25rhoai/odh-caikit-nlp-rhel9:1791448212Fixed 2026-10-21RHSA-2026:87410
Lightspeed Corelightspeed-core/lightspeed-stack-rhel9Affected
Lightspeed Corelightspeed-core/rag-tool-rhel9Affected
OpenShift Lightspeedopenshift-lightspeed/lightspeed-ocp-rag-rhel9Not affected
OpenShift Lightspeedopenshift-lightspeed/lightspeed-service-api-rhel9Affected
OpenShift Lightspeedopenshift-lightspeed-tech-preview/lightspeed-rag-tool-rhel9Not affected
Red Hat AI Inference Serverrhaiis/vllm-cpu-rhel9Will not fix
Red Hat AI Inference Serverrhaiis/vllm-cuda-rhel9Affected
Red Hat AI Inference Serverrhaiis/vllm-neuron-rhel9Will not fix
Red Hat AI Inference Serverrhaiis/vllm-rocm-rhel9Affected
Red Hat AI Inference Serverrhaiis/vllm-spyre-rhel9Will not fix
44 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-28684.

Attack patterns (CAPEC)

  • CAPEC-27 Leveraging Race Conditions via Symbolic Links Likelihood: Medium · Severity: High
  • CAPEC-17 Using Malicious Files Likelihood: High · Severity: Very High
  • CAPEC-35 Leverage Executable Code in Non-Executable Files Likelihood: High · Severity: Very High
  • CAPEC-76 Manipulating Web Input to File System Calls Likelihood: High · Severity: Very High
  • CAPEC-132 Symlink Attack Likelihood: Low · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON