CVE-2026-0864
Medium
Description
When using the "configparser" module to write configuration files containing multi-line text values with carriage return characters (\r) the resulting file could be injected with unexpected keys and values if the attacker controls the written value.
SeverityMedium
CVSS5.5
Exploit probability—
Product
Python
PublishedJun 23, 2026
First seenJun 23, 2026
Weakness typeCWE-74Injection
How to fix
Update
- python python3.10.21, 3.11.16, 3.12.14, 3.13.15, 3.14.7 or later
Patches
- github.com/python/cpython/pull/151559
- github.com/python/cpython/commit/5858e42c539dac8394636a6e9b30472b8994851f
- github.com/python/cpython/commit/0adb386f6e68eb2e73d32e19f235d012df009528
- github.com/python/cpython/commit/71f2e02a52d47417a6fd69f456346cd8aa7aca98
- github.com/python/cpython/commit/aaf850fd333cd89e9aada03d92aaa788a6cb1bb8
- github.com/python/cpython/commit/db4a157c790479710a1a840d7937c5c815a6f8b6
- github.com/python/cpython/commit/12dcbd74d3563016a8cb8c47e4898889f34f74dd
- github.com/python/cpython/commit/274de100bbf4345bd0c23ef5b446722e9e636908
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| python python | v < 3.10.21, 3.11.0 ≤ v < 3.11.16, 3.12.0 ≤ v < 3.12.14, 3.13.0 ≤ v < 3.13.15, 3.14.0 ≤ v < 3.14.7, 3.15.0 | 3.10.21, 3.11.16, 3.12.14, 3.13.15, 3.14.7 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
In the Intelligence 360 plan
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.