Skip to main content
EPSS 0.1%top 97%

CVE-2026-0864: Vulnerability in Python Software Foundation CPython

0
Medium
Published: 08/17/2026 (08/17/2026, 00:00:00 UTC)
Source: CVE Database V5
Vendor/Project: Python Software Foundation
Product: 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

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
High
User Interaction
Passive
Vuln. Confidentiality
None
Vuln. Integrity
High
Vuln. Availability
None
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
CVSS:4.0/AV:L/AC:L/AT:P/PR:H/UI:P/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N

Affected software

Python Software Foundation

CPython

Affected versions
>=0 <3.10.21>=3.11.0 <3.11.16>=3.12.0 <3.12.14>=3.13.0 <3.13.15>=3.14.0 <3.14.7>=3.15.0a1 <3.15.0b4
GitHub Actionsmore threats →cve
CPython
pkg:github/CPython
Affected versions
>=0 <3.10.21>=3.11.0 <3.11.16>=3.12.0 <3.12.14>=3.13.0 <3.13.15>=3.14.0 <3.14.7>=3.15.0a1 <3.15.0b4

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/12/2026, 13:40:35 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses