Skip to main content
EPSS 0.5%top 60%

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

0
Medium
Published: 03/16/2026 (03/16/2026, 18:16:00 UTC)
Source: CVE Database V5
Vendor/Project: Python Software Foundation
Product: CPython

Description

The fix for CVE-2026-0672, which rejected control characters in http.cookies.Morsel, was incomplete. The Morsel.update(), |= operator, and unpickling paths were not patched, allowing control characters to bypass input validation. Additionally, BaseCookie.js_output() lacked the output validation applied to BaseCookie.output().

CVSS v4.0

Score 6.0medium

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
Low
User Interaction
None
Vuln. Confidentiality
Low
Vuln. Integrity
High
Vuln. Availability
None
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:L/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.13>=3.14.0 <3.14.4>=3.15.0a1 <3.15.0a8
cpython
pkg:pypi/cpython
Affected versions
=3.14.0=3.15.0
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.13>=3.14.0 <3.14.4>=3.15.0a1 <3.15.0a8

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/13/2026, 13:09:32 UTC

Technical Analysis

This vulnerability arises from an incomplete fix for CVE-2026-0672 in CPython's http.cookies.Morsel class. While the original fix rejected control characters, the Morsel.update() method, the |= operator, and unpickling paths were not patched, allowing control characters to bypass input validation. Additionally, the BaseCookie.js_output() method lacked the output validation applied to BaseCookie.output(), further contributing to the issue. These flaws could allow malicious input to circumvent intended restrictions on control characters in cookie handling.

Potential Impact

The vulnerability allows control characters to bypass input validation in cookie handling within CPython. This could lead to unexpected behavior or security issues related to cookie processing, such as injection or manipulation of cookie data. The CVSS score of 6 indicates a medium severity impact with network attack vector, low complexity, and partial impact on confidentiality and high impact on integrity.

Mitigation Recommendations

No patch or official fix information is provided in the available data. Patch status is not yet confirmed — check the Python Software Foundation advisory for current remediation guidance. Until a fix is available, users should be cautious when processing untrusted cookie data and consider applying additional input validation or sandboxing measures as a temporary mitigation.

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-03-06T16:13:09.289Z
Cvss Version
4.0
State
PUBLISHED

Threat ID: 69b84a02771bdb174918694f

Added to database: 03/16/2026, 18:20:50 UTC

Last enriched: 08/13/2026, 13:09:32 UTC

Last updated: 09/12/2026, 22:01:33 UTC

Views: 341

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