CVE-2026-0864: Vulnerability in Python Software Foundation CPython
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.
AI Analysis
Technical Summary
The vulnerability in CPython's configparser module arises when writing configuration files that include multi-line text values containing carriage return characters (\r). An attacker who can control the value being written may inject unexpected keys and values into the resulting configuration file. This is classified under CWE-74 (Injection). The issue affects all CPython versions before 3.15.0. The CVSS 4.0 base score is 4.1, indicating medium severity, with local attack vector, low attack complexity, and partial privileges required. No vendor advisory or patch information is currently available.
Potential Impact
If exploited, an attacker with the ability to influence the values written by the configparser module could inject unintended keys and values into configuration files. This could potentially alter application behavior or configuration in unexpected ways. The impact is limited by the requirement that the attacker must have local access and some privileges to write configuration files. There is no indication of remote exploitation or privilege escalation from this vulnerability alone.
Mitigation Recommendations
Patch status is not yet confirmed — check the Python Software Foundation advisory for current remediation guidance. Until a fix is available, avoid writing untrusted multi-line values containing carriage return characters (\r) using the configparser module. Validate or sanitize input values before writing them to configuration files to prevent injection of unexpected keys and values.
CVE-2026-0864: Vulnerability in Python Software Foundation CPython
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.
CVSS v4.0
Score 4.1medium
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in CPython's configparser module arises when writing configuration files that include multi-line text values containing carriage return characters (\r). An attacker who can control the value being written may inject unexpected keys and values into the resulting configuration file. This is classified under CWE-74 (Injection). The issue affects all CPython versions before 3.15.0. The CVSS 4.0 base score is 4.1, indicating medium severity, with local attack vector, low attack complexity, and partial privileges required. No vendor advisory or patch information is currently available.
Potential Impact
If exploited, an attacker with the ability to influence the values written by the configparser module could inject unintended keys and values into configuration files. This could potentially alter application behavior or configuration in unexpected ways. The impact is limited by the requirement that the attacker must have local access and some privileges to write configuration files. There is no indication of remote exploitation or privilege escalation from this vulnerability alone.
Mitigation Recommendations
Patch status is not yet confirmed — check the Python Software Foundation advisory for current remediation guidance. Until a fix is available, avoid writing untrusted multi-line values containing carriage return characters (\r) using the configparser module. Validate or sanitize input values before writing them to configuration files to prevent injection of unexpected keys and values.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- PSF
- Date Reserved
- 2026-01-12T16:07:55.453Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a3acbe4eed863c81e6c9a45
Added to database: 06/23/2026, 18:09:40 UTC
Last enriched: 08/05/2026, 13:10:15 UTC
Last updated: 08/07/2026, 13:44:22 UTC
Views: 107
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.