CVE-2026-0864

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

State
Published
Severity
4.1 Medium
Published
Jun 23, 2026
Updated
Aug 13, 2026
Reserved
Jan 12, 2026

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
4.04.1 MediumCVSS:4.0/AV:L/AC:L/AT:P/PR:H/UI:P/VC:N/VI:H/VA:N/SC:N/SI:N/SA:NPSF

Weaknesses

  • CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')

Affected Products

ProductVersions
CPythonPython Software Foundation
  • before 3.10.21Affected
  • 3.11.0 to before 3.11.16Affected
  • 3.12.0 to before 3.12.14Affected
  • 3.13.0 to before 3.13.15Affected
  • 3.14.0 to before 3.14.7Affected
  • 3.15.0a1 to before 3.15.0b4Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.