CVE-2026-0864
When using the "configparser" module to write configuration files …
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 now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- github.com/python/cpython/commit/5858e42c539dac8394636a6e9b30472b8994851f
- github.com/python/cpython/issues/143927
- github.com/python/cpython/pull/151559
- mail.python.org/archives/list/[email protected]/thread/CV4NE6AFCRJL7XQOHX7J5TSD
- github.com/python/cpython/commit/0adb386f6e68eb2e73d32e19f235d012df009528
- github.com/python/cpython/commit/71f2e02a52d47417a6fd69f456346cd8aa7aca98
- github.com/python/cpython/commit/aaf850fd333cd89e9aada03d92aaa788a6cb1bb8
- github.com/python/cpython/commit/db4a157c790479710a1a840d7937c5c815a6f8b6
- nvd.nist.gov/vuln/detail/CVE-2026-0864
- cve.org/CVERecord?id=CVE-2026-0864
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.