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

Published Jun 23, 2026
·
Updated

Configuration Injection via Carriage Return (\r) in write() method

Other sources

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.

— MITRE

Affected Software

48 affected componentsFixes available
Python configparser
Python Python<3.10.21
Python Python>=3.11.0<3.11.16
Python Python>=3.12.0<3.12.14
Python Python>=3.13.0<3.13.15
Python Python>=3.14.0<3.14.7
Python Python=3.15.0-alpha1
Python Python=3.15.0-alpha2
Python Python=3.15.0-alpha3
Python Python=3.15.0-alpha4
Python Python=3.15.0-alpha5
Python Python=3.15.0-alpha6
Python Python=3.15.0-alpha7
Python Python=3.15.0-alpha8
Python Python=3.15.0-beta1
Python Python=3.15.0-beta2
Python Python=3.15.0-beta3
All of the following
azurelinux/python3<3.12.9-14
3.12.9-14
Microsoft Azure Linux=3.0
debian/pypy3*
debian/pypy3*
debian/pypy3<8.0.0+dfsg-1
8.0.0+dfsg-1
debian/python3.11*
debian/python3.13<3.13.5-2+deb13u5
3.13.5-2+deb13u5
debian/python3.14<3.14.7-1
3.14.7-1
debian/pypy3<=7.3.11+dfsg-2+deb12u3, <=7.3.19+dfsg-2
8.0.0+dfsg-1
debian/python3.11<=3.11.2-6+deb12u8, <=3.11.2-6+deb12u9
debian/python3.13
3.13.5-2+deb13u53.13.15-1
debian/python3.14
3.14.7-1
ubuntu/python2.7*
ubuntu/python3.4*
ubuntu/python3.5*
ubuntu/python2.7*
ubuntu/python3.5*
ubuntu/python2.7*
ubuntu/python3.6*
ubuntu/python3.7*
ubuntu/python3.8*
ubuntu/python2.7*
ubuntu/python3.9*
ubuntu/python3.10*
ubuntu/python2.7*
ubuntu/python3.11*
ubuntu/python3.12*
ubuntu/python3.13*
ubuntu/python3.14*
ubuntu/python3.14*
ubuntu/python3.14*

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade azurelinux/python3 to a version that resolves this vulnerability.

    Fixed in 3.12.9-14
  2. Upgrade

    Upgrade debian/pypy3 to a version that resolves this vulnerability.

    Fixed in 8.0.0+dfsg-1
  3. Upgrade

    Upgrade debian/python3.13 to a version that resolves this vulnerability.

    Fixed in 3.13.5-2+deb13u5
  4. Upgrade

    Upgrade debian/python3.14 to a version that resolves this vulnerability.

    Fixed in 3.14.7-1
  5. Upgrade

    Upgrade debian/python3.13 to a version that resolves this vulnerability.

    Fixed in 3.13.5-2+deb13u5Fixed in 3.13.15-1

Event History

Jun 23, 2026
CVE Published
via MITRE·05:42 PM
Data Sourced
via MITRE·05:42 PM
Description
Data Sourced
via OSV·05:42 PM
DescriptionSeverity
Data Sourced
via NVD·06:17 PM
DescriptionSeverityWeakness
Jun 27, 2026
Data Sourced
via Microsoft·08:08 AM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·08:08 AM
Affected Software
Updated
via Microsoft·08:08 AM
Affected Software
Aug 18, 2026
Data Sourced
via NVD·05:52 PM
RemedyAffected Software
Updated
via NVD·05:52 PM
Severity
Nov 24, 2026
Data Sourced
via OSV·02:55 PM
Affected Software

Frequently Asked Questions

1

What is the severity of CVE-2026-0864?

CVE-2026-0864 has a medium severity level with a CVSS score of 4.1.

2

What is the risk associated with CVE-2026-0864?

The risk associated with CVE-2026-0864 is rated as 24.

3

How do I fix CVE-2026-0864?

To fix CVE-2026-0864, ensure that carriage return characters are sanitized or removed before writing to configuration files using the 'configparser' module.

4

What is the nature of the vulnerability in CVE-2026-0864?

CVE-2026-0864 is a configuration injection vulnerability that can occur when writing multi-line text values containing carriage return characters in the 'configparser' module.

5

Who is affected by CVE-2026-0864?

CVE-2026-0864 affects applications that use the 'configparser' module in Python to write configuration files with unvalidated user input.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203