CVE-2026-28684 python-dotenv: Symlink following in set_key allows arbitrary file overwrite via cross-device rename fallback
MediumCVSS 6.6
EPSS 0.26%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: total
- Technology
- UbuntuDebianRed Hat
Description
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.
Upgrade path
68 packages: 2 fixed, 65 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/python-dotenv(Debian 12) | = 0.21.0-1; = 1.0.0-1; = 1.0.1-1; = 1.2.1-1 +2 more | No fix listed | No fix yet |
| debian/python-dotenv(Debian 13) | = 1.0.1-1; = 1.2.1-1; = 1.2.1-2; All versions | No fix listed | No fix yet |
| debian/python-dotenv(Debian 14) | = 1.0.1-1; = 1.2.1-1; = 1.2.1-2; All versions | No fix listed | No fix yet |
| redhat/ansible-automation-platform-24/lightspeed-rhel8(Red Hat ansible_automation_platform 2) | All versions | No fix listed | No fix yet |
| redhat/ansible-automation-platform-25/lightspeed-chatbot-rhel8(Red Hat ansible_automation_platform 2) | All versions | No fix listed | No fix yet |
| redhat/ansible-automation-platform-25/lightspeed-rhel8(Red Hat ansible_automation_platform 2) | All versions | No fix listed | No fix yet |
| redhat/ansible-automation-platform-26/lightspeed-chatbot-rhel9:1780102732(Red Hat ansible_automation_platform 2.6 el9) | All versions | No fix listed | No fix yet |
| redhat/ansible-automation-platform-26/mcp-tools-rhel9:1779772877(Red Hat ansible_automation_platform 2.6 el9) | All versions | No fix listed | No fix yet |
| redhat/lightspeed-core/lightspeed-stack-rhel9(Red Hat lightspeed_core) | All versions | No fix listed | No fix yet |
| redhat/lightspeed-core/rag-tool-rhel9(Red Hat lightspeed_core) | All versions | No fix listed | No fix yet |
| redhat/mta/mta-solution-server-rhel9:1784109883(Red Hat migration_toolkit_applications 8.2 el9) | All versions | No fix listed | No fix yet |
| redhat/openshift-lightspeed/lightspeed-service-api-rhel9(Red Hat openshift_lightspeed 1) | All versions | No fix listed | No fix yet |
| redhat/python-dotenv(Red Hat satellite 6) | All versions | No fix listed | No fix yet |
| redhat/rhaiis/model-opt-cuda-rhel9:1787772157(Red Hat ai_inference_server 3.2 el9) | All versions | No fix listed | No fix yet |
| redhat/rhaiis/vllm-cpu-rhel9(Red Hat ai_inference_server 3) | All versions | No fix listed | No fix yet |
| redhat/rhaiis/vllm-cuda-rhel9(Red Hat ai_inference_server 3) | All versions | No fix listed | No fix yet |
| redhat/rhaiis/vllm-neuron-rhel9(Red Hat ai_inference_server 3) | All versions | No fix listed | No fix yet |
| redhat/rhaiis/vllm-rocm-rhel9(Red Hat ai_inference_server 3) | All versions | No fix listed | No fix yet |
| redhat/rhaiis/vllm-spyre-rhel9(Red Hat ai_inference_server 3) | All versions | No fix listed | No fix yet |
| redhat/rhaiis/vllm-tpu-rhel9(Red Hat ai_inference_server 3) | All versions | No fix listed | No fix yet |
| redhat/rhelai3/bootc-aws-cuda-rhel9(Red Hat enterprise_linux_ai 3) | All versions | No fix listed | No fix yet |
| redhat/rhelai3/bootc-azure-cuda-rhel9(Red Hat enterprise_linux_ai 3) | All versions | No fix listed | No fix yet |
| redhat/rhelai3/bootc-azure-rocm-rhel9(Red Hat enterprise_linux_ai 3) | All versions | No fix listed | No fix yet |
| redhat/rhelai3/bootc-cuda-rhel9(Red Hat enterprise_linux_ai 3) | All versions | No fix listed | No fix yet |
| redhat/rhelai3/bootc-gcp-cuda-rhel9(Red Hat enterprise_linux_ai 3) | All versions | No fix listed | No fix yet |
| redhat/rhelai3/bootc-rocm-rhel9(Red Hat enterprise_linux_ai 3) | All versions | No fix listed | No fix yet |
| redhat/rhelai3/disk-image-cuda-rhel9(Red Hat enterprise_linux_ai 3) | All versions | No fix listed | No fix yet |
| redhat/rhoai/odh-caikit-nlp-rhel9:1791448212(Red Hat openshift_ai 2.25 el9) | All versions | No fix listed | No fix yet |
| redhat/rhoai/odh-caikit-tgis-serving-rhel9:1783082430(Red Hat openshift_ai 2.25 el9) | All versions | No fix listed | No fix yet |
| redhat/rhoai/odh-feature-server-rhel9:1778239104(Red Hat openshift_ai 3.3 el9) | All versions | No fix listed | No fix yet |
… and 38 more packages.
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi python-dotenv(PyPI) | < 1.2.2 | 1.2.2 |
| pypi python-dotenv(PyPI) | = 0.1.0 | No fix listed |
| pypi python-dotenv(PyPI) | = 0.1.2 | No fix listed |
| pypi python-dotenv(PyPI) | = 0.1.3 | No fix listed |
| pypi python-dotenv(PyPI) | = 0.1.5 | No fix listed |
| pypi python-dotenv(PyPI) | = 0.10.0 | No fix listed |
| pypi python-dotenv(PyPI) | = 0.10.1 | No fix listed |
| pypi python-dotenv(PyPI) | = 0.10.2 | No fix listed |
| pypi python-dotenv(PyPI) | = 0.10.3 | No fix listed |
| pypi python-dotenv(PyPI) | = 0.10.4 | No fix listed |
| pypi python-dotenv(PyPI) | = 0.10.5 | No fix listed |
| pypi python-dotenv(PyPI) | = 0.11.0 | No fix listed |
| pypi python-dotenv(PyPI) | = 0.12.0 | No fix listed |
| pypi python-dotenv(PyPI) | = 0.13.0 | No fix listed |
| pypi python-dotenv(PyPI) | = 0.14.0 | No fix listed |
| pypi python-dotenv(PyPI) | = 0.15.0 | No fix listed |
| pypi python-dotenv(PyPI) | = 0.16.0 | No fix listed |
| pypi python-dotenv(PyPI) | = 0.17.0 | No fix listed |
| pypi python-dotenv(PyPI) | = 0.17.1 | No fix listed |
| pypi python-dotenv(PyPI) | = 0.18.0 | No fix listed |
| pypi python-dotenv(PyPI) | = 0.19.0 | No fix listed |
| pypi python-dotenv(PyPI) | = 0.19.1 | No fix listed |
| pypi python-dotenv(PyPI) | = 0.19.2 | No fix listed |
| pypi python-dotenv(PyPI) | = 0.2.0 | No fix listed |
| pypi python-dotenv(PyPI) | = 0.20.0 | No fix listed |
Show 103 more
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi python-dotenv(PyPI) | = 0.21.0 | No fix listed |
| pypi python-dotenv(PyPI) | = 0.21.1 | No fix listed |
| pypi python-dotenv(PyPI) | = 0.3.0 | No fix listed |
| pypi python-dotenv(PyPI) | = 0.4.0 | No fix listed |
| pypi python-dotenv(PyPI) | = 0.5.0 | No fix listed |
| pypi python-dotenv(PyPI) | = 0.5.1 | No fix listed |
| pypi python-dotenv(PyPI) | = 0.6.0 | No fix listed |
| pypi python-dotenv(PyPI) | = 0.6.1 | No fix listed |
| pypi python-dotenv(PyPI) | = 0.6.2 | No fix listed |
| pypi python-dotenv(PyPI) | = 0.6.3 | No fix listed |
| pypi python-dotenv(PyPI) | = 0.6.4 | No fix listed |
| pypi python-dotenv(PyPI) | = 0.6.5 | No fix listed |
| pypi python-dotenv(PyPI) | = 0.7.0 | No fix listed |
| pypi python-dotenv(PyPI) | = 0.7.1 | No fix listed |
| pypi python-dotenv(PyPI) | = 0.8.0 | No fix listed |
| pypi python-dotenv(PyPI) | = 0.8.1 | No fix listed |
| pypi python-dotenv(PyPI) | = 0.8.2 | No fix listed |
| pypi python-dotenv(PyPI) | = 0.9.0 | No fix listed |
| pypi python-dotenv(PyPI) | = 0.9.1 | No fix listed |
| pypi python-dotenv(PyPI) | = 1.0.0 | No fix listed |
| pypi python-dotenv(PyPI) | = 1.0.1 | No fix listed |
| pypi python-dotenv(PyPI) | = 1.1.0 | No fix listed |
| pypi python-dotenv(PyPI) | = 1.1.1 | No fix listed |
| pypi python-dotenv(PyPI) | = 1.2.0 | No fix listed |
| pypi python-dotenv(PyPI) | = 1.2.1 | No fix listed |
| theskumar python-dotenv | = < 1.2.2 | No fix listed |
| debian/python-dotenv(Debian:12) | All versions | No fix listed |
| debian/python-dotenv(Debian:12) | = 0.21.0-1 | No fix listed |
| debian/python-dotenv(Debian:12) | = 1.0.0-1 | No fix listed |
| debian/python-dotenv(Debian:12) | = 1.0.1-1 | No fix listed |
| debian/python-dotenv(Debian:12) | = 1.2.1-1 | No fix listed |
| debian/python-dotenv(Debian:12) | = 1.2.1-2 | No fix listed |
| debian/python-dotenv(Debian:13) | All versions | No fix listed |
| debian/python-dotenv(Debian:13) | = 1.0.1-1 | No fix listed |
| debian/python-dotenv(Debian:13) | = 1.2.1-1 | No fix listed |
| debian/python-dotenv(Debian:13) | = 1.2.1-2 | No fix listed |
| debian/python-dotenv(Debian:14) | All versions | No fix listed |
| debian/python-dotenv(Debian:14) | = 1.0.1-1 | No fix listed |
| debian/python-dotenv(Debian:14) | = 1.2.1-1 | No fix listed |
| debian/python-dotenv(Debian:14) | = 1.2.1-2 | No fix listed |
| redhat/rhaiis/model-opt-cuda-rhel9:1787772157(Red Hat:ai_inference_server:3.2::el9) | All versions | No fix listed |
| redhat/ansible-automation-platform-26/lightspeed-chatbot-rhel9:1780102732(Red Hat:ansible_automation_platform:2.6::el9) | All versions | No fix listed |
| redhat/ansible-automation-platform-26/mcp-tools-rhel9:1779772877(Red Hat:ansible_automation_platform:2.6::el9) | All versions | No fix listed |
| redhat/mta/mta-solution-server-rhel9:1784109883(Red Hat:migration_toolkit_applications:8.2::el9) | All versions | No fix listed |
| redhat/rhoai/odh-feature-server-rhel9:1780069135(Red Hat:openshift_ai:2.25::el9) | All versions | No fix listed |
| redhat/rhoai/odh-kserve-storage-initializer-rhel9:1780069127(Red Hat:openshift_ai:2.25::el9) | All versions | No fix listed |
| redhat/rhoai/odh-vllm-gaudi-rhel9:1780069069(Red Hat:openshift_ai:2.25::el9) | All versions | No fix listed |
| redhat/rhoai/odh-caikit-tgis-serving-rhel9:1783082430(Red Hat:openshift_ai:2.25::el9) | All versions | No fix listed |
| redhat/rhoai/odh-llama-stack-core-rhel9:1783701598(Red Hat:openshift_ai:2.25::el9) | All versions | No fix listed |
| redhat/rhoai/odh-caikit-nlp-rhel9:1791448212(Red Hat:openshift_ai:2.25::el9) | All versions | No fix listed |
| redhat/rhoai/odh-feature-server-rhel9:1778239104(Red Hat:openshift_ai:3.3::el9) | All versions | No fix listed |
| redhat/rhoai/odh-mlserver-rhel9:1778262856(Red Hat:openshift_ai:3.3::el9) | All versions | No fix listed |
| redhat/rhoai/odh-training-cuda128-torch29-py312-rhel9:1779123334(Red Hat:openshift_ai:3.3::el9) | All versions | No fix listed |
| redhat/rhoai/odh-vllm-gaudi-rhel9:1778600187(Red Hat:openshift_ai:3.3::el9) | All versions | No fix listed |
| redhat/rhoai/odh-trustyai-garak-lls-provider-dsp-rhel9:1782472374(Red Hat:openshift_ai:3.3::el9) | All versions | No fix listed |
| redhat/rhoai/odh-trustyai-nemo-guardrails-server-rhel9:1782471606(Red Hat:openshift_ai:3.3::el9) | All versions | No fix listed |
| redhat/rhoai/odh-pipeline-runtime-datascience-cpu-py312-rhel9:1790345193(Red Hat:openshift_ai:3.3::el9) | All versions | No fix listed |
| redhat/rhoai/odh-pipeline-runtime-pytorch-cuda-py312-rhel9:1789651383(Red Hat:openshift_ai:3.3::el9) | All versions | No fix listed |
| redhat/rhoai/odh-pipeline-runtime-pytorch-llmcompressor-cuda-py312-rhel9:1790076724(Red Hat:openshift_ai:3.3::el9) | All versions | No fix listed |
| redhat/rhoai/odh-pipeline-runtime-pytorch-rocm-py312-rhel9:1789651379(Red Hat:openshift_ai:3.3::el9) | All versions | No fix listed |
| redhat/rhoai/odh-pipeline-runtime-tensorflow-cuda-py312-rhel9:1789651398(Red Hat:openshift_ai:3.3::el9) | All versions | No fix listed |
| redhat/rhoai/odh-workbench-codeserver-datascience-cpu-py312-rhel9:1790013905(Red Hat:openshift_ai:3.3::el9) | All versions | No fix listed |
| redhat/rhoai/odh-workbench-jupyter-datascience-cpu-py312-rhel9:1790331087(Red Hat:openshift_ai:3.3::el9) | All versions | No fix listed |
| redhat/rhoai/odh-workbench-jupyter-pytorch-cuda-py312-rhel9:1789651387(Red Hat:openshift_ai:3.3::el9) | All versions | No fix listed |
| redhat/rhoai/odh-workbench-jupyter-pytorch-llmcompressor-cuda-py312-rhel9:1789651389(Red Hat:openshift_ai:3.3::el9) | All versions | No fix listed |
| redhat/rhoai/odh-workbench-jupyter-pytorch-rocm-py312-rhel9:1789651385(Red Hat:openshift_ai:3.3::el9) | All versions | No fix listed |
| redhat/rhoai/odh-workbench-jupyter-tensorflow-cuda-py312-rhel9:1790077488(Red Hat:openshift_ai:3.3::el9) | All versions | No fix listed |
| redhat/satellite/iop-host-inventory-rhel9:1780414237(Red Hat:satellite:6.18::el9) | All versions | No fix listed |
| redhat/lightspeed-core/lightspeed-stack-rhel9(Red Hat:lightspeed_core) | All versions | No fix listed |
| redhat/lightspeed-core/rag-tool-rhel9(Red Hat:lightspeed_core) | All versions | No fix listed |
| redhat/openshift-lightspeed/lightspeed-service-api-rhel9(Red Hat:openshift_lightspeed:1) | All versions | No fix listed |
| redhat/rhaiis/vllm-cpu-rhel9(Red Hat:ai_inference_server:3) | All versions | No fix listed |
| redhat/rhaiis/vllm-cuda-rhel9(Red Hat:ai_inference_server:3) | All versions | No fix listed |
| redhat/rhaiis/vllm-neuron-rhel9(Red Hat:ai_inference_server:3) | All versions | No fix listed |
| redhat/rhaiis/vllm-rocm-rhel9(Red Hat:ai_inference_server:3) | All versions | No fix listed |
| redhat/rhaiis/vllm-spyre-rhel9(Red Hat:ai_inference_server:3) | All versions | No fix listed |
| redhat/rhaiis/vllm-tpu-rhel9(Red Hat:ai_inference_server:3) | All versions | No fix listed |
| redhat/ansible-automation-platform-24/lightspeed-rhel8(Red Hat:ansible_automation_platform:2) | All versions | No fix listed |
| redhat/ansible-automation-platform-25/lightspeed-chatbot-rhel8(Red Hat:ansible_automation_platform:2) | All versions | No fix listed |
| redhat/ansible-automation-platform-25/lightspeed-rhel8(Red Hat:ansible_automation_platform:2) | All versions | No fix listed |
| redhat/rhelai3/bootc-aws-cuda-rhel9(Red Hat:enterprise_linux_ai:3) | All versions | No fix listed |
| redhat/rhelai3/bootc-azure-cuda-rhel9(Red Hat:enterprise_linux_ai:3) | All versions | No fix listed |
| redhat/rhelai3/bootc-azure-rocm-rhel9(Red Hat:enterprise_linux_ai:3) | All versions | No fix listed |
| redhat/rhelai3/bootc-cuda-rhel9(Red Hat:enterprise_linux_ai:3) | All versions | No fix listed |
| redhat/rhelai3/bootc-gcp-cuda-rhel9(Red Hat:enterprise_linux_ai:3) | All versions | No fix listed |
| redhat/rhelai3/bootc-rocm-rhel9(Red Hat:enterprise_linux_ai:3) | All versions | No fix listed |
| redhat/rhelai3/disk-image-cuda-rhel9(Red Hat:enterprise_linux_ai:3) | All versions | No fix listed |
| redhat/rhoai/odh-pipeline-runtime-minimal-cpu-py312-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/rhoai/odh-pipeline-runtime-tensorflow-rocm-py312-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/rhoai/odh-vllm-cuda-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/rhoai/odh-vllm-rocm-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/rhoai/odh-workbench-jupyter-minimal-cpu-py312-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/rhoai/odh-workbench-jupyter-minimal-cuda-py312-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/rhoai/odh-workbench-jupyter-minimal-rocm-py312-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/rhoai/odh-workbench-jupyter-tensorflow-rocm-py312-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/rhoai/odh-workbench-jupyter-trustyai-cpu-py312-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/python-dotenv(Red Hat:satellite:6) | All versions | No fix listed |
| redhat/satellite/foreman-mcp-server-rhel9(Red Hat:satellite:6) | All versions | No fix listed |
| ubuntu/python-dotenv(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/python-dotenv(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/python-dotenv(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/python-dotenv(Ubuntu:26.10) | All versions | No fix listed |
| saurabh-kumar python-dotenv | < 1.2.2 | 1.2.2 |
References
- https://github.com/theskumar/python-dotenv/security/advisories/GHSA-mf9w-mj56-hr94 exploit patch vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/theskumar/python-dotenv/commit/790c5c02991100aa1bf41ee5330aca75edc51311 patch
- github.com patch
- github.com product
- https://github.com/theskumar/python-dotenv/releases/tag/v1.2.2 release-notes vendor-advisory
- github.com
- Debian Security Tracker CVE-2026-28684 vendor-advisory
- Red Hat CVE page mitigation vendor-advisory
- RHSA-2026:61628 patch vendor-advisory
- RHSA-2026:24866 patch vendor-advisory
- RHSA-2026:43038 patch vendor-advisory
- RHSA-2026:24977 patch vendor-advisory
- RHSA-2026:42644 patch vendor-advisory
- RHSA-2026:87410 patch vendor-advisory
- RHSA-2026:19712 patch vendor-advisory
- RHSA-2026:37275 patch vendor-advisory
- RHSA-2026:73987 patch vendor-advisory
- RHSA-2026:26226 patch vendor-advisory
- Red Hat Bugzilla 2459798 issue-tracking
- www.cve.org
- Ubuntu CVE tracker vendor-advisory
- bugs.debian.org issue-tracking