---
title: "CVE-2026-28684"
canonical_url: "https://pkgseek.com/security/CVE-2026-28684"
locale: "zh-CN"
source: "pkgseek"
entity_type: "cve"
severity: "medium"
---

# CVE-2026-28684

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.

CVE-2026-28684 严重级别为 MEDIUM (6.6)，共索引 5 条受影响软件包构建记录，涉及 2 个发行版。

- **级别 / 评分**: MEDIUM (6.6)
- **受影响构建数**: 5
- **涉及发行版**: 2
- **已标明修复版本发行版**: Fedora

## Affected Packages

| Distribution | Release | Package | Version | Fixed In |
| --- | --- | --- | --- | --- |
| Debian | trixie | python3-dotenv | 1.0.1-1 | — |
| Fedora | 43 | python3-dotenv | 1.1.0-5.fc43 | 1.2.2-1.fc43 |
| Fedora | 43 | python3-dotenv+cli | 1.1.0-5.fc43 | 1.2.2-1.fc43 |
| Fedora | 44 | python3-dotenv | 1.1.0-7.fc44 | 1.2.2-1.fc44 |
| Fedora | 44 | python3-dotenv+cli | 1.1.0-7.fc44 | 1.2.2-1.fc44 |
