What’s Vulnerable › Vulnerabilities

CVE-2026-0864: Configuration Injection via Carriage Return (\r) in write() method

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.

Affected products

How to fix

Upgrade to a fixed version: Python 3.10.21, 3.11.16, 3.12.14, 3.13.15. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2026-0864 or the next vulnerability affects your stack