製品・ソフトウェアに関する情報
Saurabh Kumarのpython-dotenvにおける複数の脆弱性
Title Saurabh Kumarのpython-dotenvにおける複数の脆弱性
Summary

python-dotenvは.envファイルからキーと値のペアを読み取り、それらを環境変数として設定できます。バージョン1.2.2以前のpython-dotenvでは、`set_key()`および`unset_key()`が.envファイルを書き換える際にシンボリックリンクをたどってしまいました。そのため、クロスデバイスのリネームフォールバックが発生した場合に、ローカルの攻撃者が細工したシンボリックリンクを介して任意のファイルを上書きできる可能性がありました。ユーザーにはバージョン1.2.2にアップグレードすること、または回避策としてパッチを手動で適用することを推奨します。

Possible impacts 当該ソフトウェアが扱う情報について、外部への漏えいは発生しません。 また、当該ソフトウェアが扱う全ての情報が書き換えられる可能性があります。 さらに、当該ソフトウェアが完全に停止する可能性があります。 そして、この脆弱性を悪用した攻撃の影響は、他のソフトウェアには及びません。 
Solution

正式な対策が公開されています。ベンダ情報を参照して適切な対策を実施してください。

Publication Date April 20, 2026, midnight
Registration Date April 28, 2026, 10:11 a.m.
Last Update April 28, 2026, 10:11 a.m.
CVSS3.0 : 警告
Score 6.6
Vector CVSS:3.0/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:H
Affected System
Saurabh Kumar
python-dotenv 1.2.2 未満
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
ベンダー情報
その他
Change Log
No Changed Details Date of change
1 [2026年04月28日]
  掲載
April 28, 2026, 10:11 a.m.

NVD Vulnerability Information
CVE-2026-28684
Summary

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.

Publication Date April 21, 2026, 2:16 a.m.
Registration Date April 21, 2026, 4:09 a.m.
Last Update April 27, 2026, 10:44 p.m.
Affected software configurations
Configuration1 or higher or less more than less than
cpe:2.3:a:saurabh-kumar:python-dotenv:*:*:*:*:*:python:*:* 1.2.2
Related information, measures and tools
Common Vulnerabilities List