CVE-2026-0864: Python
Medium severity, CVSS 5.5. EPSS: 0.2% probability of exploitation activity in the next 30 days.
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.
What to do
The record states a fixed version for each range of affected versions. Update to the one for the range your version is in: a later release on another branch may not have the fix.
- Python, before 3.10.21: fixed in 3.10.21
- Python, from 3.11.0, before 3.11.16: fixed in 3.11.16
- Python, from 3.12.0, before 3.12.14: fixed in 3.12.14
- Python, from 3.13.0, before 3.13.15: fixed in 3.13.15
- Python, from 3.14.0, before 3.14.7: fixed in 3.14.7
Affected products
- Python Python: before 3.10.21 (fixed in 3.10.21); from 3.11.0, before 3.11.16 (fixed in 3.11.16); from 3.12.0, before 3.12.14 (fixed in 3.12.14); from 3.13.0, before 3.13.15 (fixed in 3.13.15); from 3.14.0, before 3.14.7 (fixed in 3.14.7); version 3.15.0 only
Published 2026-06-23. Last modified 2026-10-25.