CVE Vulnerabilities

CVE-2026-28684

Improper Link Resolution Before File Access ('Link Following')

Published: Apr 20, 2026 | Modified: Apr 27, 2026
CVSS 3.x
N/A
Source:
NVD
CVSS 2.x
RedHat/V2
RedHat/V3
7.1 MODERATE
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H
Ubuntu
MEDIUM
root.io logo minimus.io logo echo.ai logo

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.

Weakness

The product attempts to access a file based on the filename, but it does not properly prevent that filename from identifying a link or shortcut that resolves to an unintended resource.

Affected Software

NameVendorStart VersionEnd Version
Python-dotenvSaurabh-kumar*1.2.2 (excluding)
Red Hat Ansible Automation Platform 2.6RedHatansible-automation-platform-26/lightspeed-chatbot-rhel9:1780102732*
Red Hat Ansible Automation Platform 2.6RedHatansible-automation-platform-26/mcp-tools-rhel9:1779772877*
Red Hat OpenShift AI 2.25RedHatrhoai/odh-feature-server-rhel9:1780069135*
Red Hat OpenShift AI 2.25RedHatrhoai/odh-kserve-storage-initializer-rhel9:1780069127*
Red Hat OpenShift AI 2.25RedHatrhoai/odh-vllm-gaudi-rhel9:1780069069*
Red Hat OpenShift AI 3.3RedHatrhoai/odh-feature-server-rhel9:1778239104*
Red Hat OpenShift AI 3.3RedHatrhoai/odh-mlserver-rhel9:1778262856*
Red Hat OpenShift AI 3.3RedHatrhoai/odh-training-cuda128-torch29-py312-rhel9:1779123334*
Red Hat OpenShift AI 3.3RedHatrhoai/odh-vllm-gaudi-rhel9:1778600187*
Red Hat Satellite 6.18RedHatsatellite/iop-host-inventory-rhel9:1780414237*

Potential Mitigations

  • Follow the principle of least privilege when assigning access rights to entities in a software system.
  • Denying access to a file can prevent an attacker from replacing that file with a link to a sensitive file. Ensure good compartmentalization in the system to provide protected areas that can be trusted.

References