Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.3%top 79%

CWE-77 in Python Software Foundation CPython (CVE-2026-4786)

0
High
Published: 04/13/2026 (04/13/2026, 21:52:19 UTC)
Source: GCVE Database
Vendor/Project: Python Software Foundation
Product: CPython

Description

CVE-2026-4786 is a high-severity vulnerability in the Python Software Foundation's CPython implementation. It involves command injection via the webbrowser.open() API when URLs contain the string "%action", allowing potential arbitrary code execution. This issue is a bypass of an incomplete mitigation for CVE-2026-4519. The vulnerability affects certain versions of CPython and has been addressed by Red Hat in updated packages for their Extended Life Cycle Support for RHEL 6. No known exploits are reported in the wild.

CVSS v4.0

Score 7.0high

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
Active
Vuln. Confidentiality
High
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:N/UI:A/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N

Affected software

cpython
pkg:pypi/cpython
Affected versions
=3.14.0

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: 07/15/2026, 15:33:11 UTC

Technical Analysis

CVE-2026-4786 is a command injection vulnerability (CWE-77) in CPython's webbrowser.open() API. The vulnerability arises because the mitigation for a previous related issue (CVE-2026-4519) was incomplete, allowing an attacker to bypass it if the URL contains "%action". This can lead to arbitrary code execution via shell command injection. The vulnerability affects CPython versions including 0, 3.14.0a1, and 3.15.0a1. Red Hat has issued security advisories and updates to address this vulnerability in their Extended Life Cycle Support for RHEL 6, providing patched python packages. The CVSS v4.0 base score is 7.0, indicating high severity, with local attack vector, low attack complexity, partial user interaction, and high impact on confidentiality and integrity.

Potential Impact

Successful exploitation of this vulnerability could allow an attacker to execute arbitrary commands on the affected system via the webbrowser.open() API in CPython. This could lead to unauthorized code execution, potentially compromising system integrity and confidentiality. The vulnerability specifically affects local users who can supply crafted URLs containing "%action" to bypass previous mitigations. There are no reports of known exploits in the wild at this time.

Mitigation Recommendations

Red Hat has released security updates for python packages in Red Hat Enterprise Linux 6 Extended Life Cycle Support to address CVE-2026-4786. Applying these official patches will remediate the vulnerability. Users should update to the fixed package versions as described in the Red Hat advisory (RHSA-2026:22144). No additional mitigation steps are indicated beyond applying the vendor-provided updates.

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

Technical Details

Gcve Source
db.gcve.eu
Csaf Category
csaf_security_advisory
Csaf Version
2.0
Publisher
Red Hat Product Security
Advisory Id
RHSA-2026:10711
Cve Count
2
Additional Cves
["CVE-2026-6100"]
Cvss Version
null

Threat ID: 6a175eefe29bf47b50edd97d

Added to database: 05/27/2026, 21:15:27 UTC

Last enriched: 07/15/2026, 15:33:11 UTC

Last updated: 07/31/2026, 19:22:59 UTC

Views: 79

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.

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