Skip to content
CVE PROGRAM SOURCE RECORD4.1 Medium

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

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

Python Software Foundation CPython

Default version status: unaffected

  • 0 to < 3.10.21affected
  • 3.11.0 to < 3.11.16affected
  • 3.12.0 to < 3.12.14affected
  • 3.13.0 to < 3.13.15affected
  • 3.14.0 to < 3.14.7affected
  • 3.15.0a1 to < 3.15.0b4affected

References