os.path.expandvars() に渡される値がユーザーによって制御されている場合、環境変数の展開時にパフォーマンスが低下する可能性があります。
Python Software Foundation Python 3.9.0 未満 Python 3.13.1 以上 3.13.11 未満 Python 3.14.0 以上 3.14.1 未満 Python 3.15.0
本脆弱性の影響を受ける製品の詳細については、ベンダ情報および参考情報をご確認ください。
当該ソフトウェアが扱う情報について、外部への漏えいは発生しません。 また、当該ソフトウェアが扱う情報について、書き換えは発生しません。 さらに、当該ソフトウェアが完全に停止する可能性があります。 そして、この脆弱性を悪用した攻撃の影響は、他のソフトウェアには及びません。
正式な対策が公開されています。ベンダ情報を参照して適切な対策を実施してください。
GitHub Issues : Potential Quadratic Complexity Vulnerabilities in `path` Modules Issue #136065 python/cpython Python Software Foundation Mailing Lists : Mailman 3 [CVE-2025-6075] Quadratic complexity in os.path.expandvars() with user-controlled template - Security-announce - python.org
リソースの枯渇(CWE-400) [その他]
CVE-2025-6075
National Vulnerability Database (NVD) : CVE-2025-6075 関連文書 : [3.11] gh-136065: Fix quadratic complexity in os.path.expandvars() (G… python/cpython@5dceb93 GitHub 関連文書 : [3.13] gh-136065: Fix quadratic complexity in os.path.expandvars() (G… python/cpython@9ab89c0 GitHub 関連文書 : [3.14] gh-136065: Fix quadratic complexity in os.path.expandvars() (G… python/cpython@631ba34 GitHub 関連文書 : [3.10] gh-136065: Fix quadratic complexity in os.path.expandvars() (G… python/cpython@892747b GitHub 関連文書 : [3.9] gh-136065: Fix quadratic complexity in os.path.expandvars() (GH… python/cpython@2e6150a GitHub 関連文書 : [3.12] gh-136065: Fix quadratic complexity in os.path.expandvars() (G… python/cpython@c8a5f34 GitHub 関連文書 : gh-136065: Fix quadratic complexity in os.path.expandvars() (GH-134952) python/cpython@f029e8d GitHub
[2026年02月06日] 掲載