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 multi-line text values containing carriage return characters (\r) are written to configuration files. This can lead to injection of unexpected keys and values if an attacker controls the input value. The issue is tracked as CVE-2026-0864 and affects versions before 3.15.0, including 3.14.0 and 3.15.0a1. The CVSS 4.1 score reflects a medium severity with local attack vector, low attack complexity, and partial privileges required. No known exploits are reported in the wild, and no official fix or patch has been published as of the data provided.
Potential Impact
An attacker with the ability to control the value written by configparser can inject unexpected keys and values into configuration files. This could potentially alter application behavior or configuration in unintended ways. The impact requires local access with partial privileges and user interaction, limiting the scope of exploitation. There are no reports of active exploitation in the wild.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is released, users should avoid writing multi-line configuration values containing carriage return characters (\r) with configparser if those values can be influenced by untrusted sources. Review and sanitize inputs used in 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
Python Software Foundation
CPython
pkg:github/CPythonRun 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 multi-line text values containing carriage return characters (\r) are written to configuration files. This can lead to injection of unexpected keys and values if an attacker controls the input value. The issue is tracked as CVE-2026-0864 and affects versions before 3.15.0, including 3.14.0 and 3.15.0a1. The CVSS 4.1 score reflects a medium severity with local attack vector, low attack complexity, and partial privileges required. No known exploits are reported in the wild, and no official fix or patch has been published as of the data provided.
Potential Impact
An attacker with the ability to control the value written by configparser can inject unexpected keys and values into configuration files. This could potentially alter application behavior or configuration in unintended ways. The impact requires local access with partial privileges and user interaction, limiting the scope of exploitation. There are no reports of active exploitation in the wild.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is released, users should avoid writing multi-line configuration values containing carriage return characters (\r) with configparser if those values can be influenced by untrusted sources. Review and sanitize inputs used in 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
Threat ID: 6a3acbe4eed863c81e6c9a45
Added to database: 06/23/2026, 18:09:40 UTC
Last enriched: 08/12/2026, 13:40:35 UTC
Last updated: 09/22/2026, 13:47:42 UTC
Views: 183
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.