cve.bz

CVE-2026-4786 python software foundation cpython: Argument Injection

7.0 highEPSS 0.3%

High (7.0) in python software foundation cpython. EPSS 0.3% estimated probability of exploitation activity in the next 30 days.

On this page
Mitgation of CVE-2026-4519 was incomplete. If the URL contained "%action" the mitigation could be bypassed for certain browser types the "webbrowser.open()" API could have commands injected into the underlying shell. See CVE-2026-4519 for details.

Severity

CVSS 4.0

7.0 high
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

CVSS 3.1

7.1 high
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:L
EPSS
0.3% (unchanged from 0.3% a week ago; 0.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 22nd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2026-04-14. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-77 Improper Neutralization of Special Elements used in a Command
CWE-88 Improper Neutralization of Argument Delimiters in a Command (Argument Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Awaiting analysis
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-4786 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-4786?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-4786?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-4786 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Python Software Foundation CPythonbefore 3.10.21
Python Software Foundation CPythonfrom 3.11.0 before 3.11.16
Python Software Foundation CPythonfrom 3.12.0 before 3.12.14
Python Software Foundation CPythonfrom 3.13.0 before 3.13.14
Python Software Foundation CPythonfrom 3.14.0a1 before 3.14.5rc1
Python Software Foundation CPythonfrom 3.15.0a1 before 3.15.0b1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian14pypy37.3.22+dfsg-1DEBIAN-CVE-2026-4786
Debian14python3.143.14.5-1DEBIAN-CVE-2026-4786
Ubuntu16.04:LTS, 18.04:LTSjythonno fix listedUBUNTU-CVE-2026-4786
Ubuntu20.04:LTS, 26.10pypy3, jythonno fix listedUBUNTU-CVE-2026-4786
Ubuntu22.04:LTSpython3.103.10.12-1~22.04.16UBUNTU-CVE-2026-4786 USN-8509-1
Ubuntu22.04:LTS, 24.04:LTS, 26.04:LTSpypy3no fix listedUBUNTU-CVE-2026-4786
Ubuntu24.04:LTSpython3.123.12.3-1ubuntu0.15UBUNTU-CVE-2026-4786 USN-8509-1
Ubuntu25.10pypy3, jython, python3.13 and 1 moreno fix listedUBUNTU-CVE-2026-4786
Ubuntu26.04:LTSpython3.143.14.4-1ubuntu0.1UBUNTU-CVE-2026-4786 USN-8509-1
UbuntuPro:14.04:LTSpython2.7, python3.4, python3.5no fix listedUBUNTU-CVE-2026-4786
UbuntuPro:16.04:LTSpython2.7, python3.5no fix listedUBUNTU-CVE-2026-4786
UbuntuPro:18.04:LTSpython2.7, python3.6, python3.7 and 1 moreno fix listedUBUNTU-CVE-2026-4786
UbuntuPro:20.04:LTSpython2.7, python3.8, python3.9no fix listedUBUNTU-CVE-2026-4786
UbuntuPro:22.04:LTSpython2.7, python3.11no fix listedUBUNTU-CVE-2026-4786
Red Hatenterprise_linux:8::appstreampython3-idle, python3-test, platform-python and 5 more0:3.6.8-76.el8_10RHSA-2026:11077
Red Hatenterprise_linux:8::appstreampython3.11, python3.11-libs, python3.11-devel and 4 more0:3.11.13-7.el8_10RHSA-2026:11062
Red Hatenterprise_linux:8::appstreampython3.12, python3.12-libs, python3.12-devel and 4 more0:3.12.13-2.el8_10RHSA-2026:10950
Red Hatenterprise_linux:8::baseospython3, python3-libs, python3-test and 3 more0:3.6.8-76.el8_10RHSA-2026:11077
Red Hatenterprise_linux:8::crbpython3.11, python3.11-idle, python3.11-test and 4 more0:3.11.13-7.el8_10RHSA-2026:11062
Red Hatenterprise_linux:8::crbpython3.12, python3.12-idle, python3.12-test and 4 more0:3.12.13-2.el8_10RHSA-2026:10950
Red Hatenterprise_linux:9::appstreampython3-devel, python3-tkinter, python3.9-debuginfo and 2 more0:3.9.25-3.el9_7.3RHSA-2026:10949
Red Hatenterprise_linux:9::appstreampython3-devel, python3-tkinter, python3.9-debuginfo and 2 more0:3.9.25-7.el9_8RHSA-2026:19216
Red Hatenterprise_linux:9::appstreampython3.11, python3.11-libs, python3.11-devel and 3 more0:3.11.13-5.3.el9_7RHSA-2026:10774
Red Hatenterprise_linux:9::appstreampython3.11, python3.11-libs, python3.11-devel and 3 more0:3.11.13-9.el9_8RHSA-2026:19175
Red Hatenterprise_linux:9::appstreampython3.12, python3.12-libs, python3.12-devel and 3 more0:3.12.12-4.el9_7.3RHSA-2026:10745
Red Hatenterprise_linux:9::appstreampython3.12, python3.12-libs, python3.12-devel and 3 more0:3.12.13-2.el9_8RHSA-2026:19177
50 more for Red Hat in the JSON and on Red Hat's page.
SUSEEL-9:Update:Products:MultiLinuxManagerTools:Updatesaltbundlepy, saltbundlepy-core3.11.15-90002.4.15.1SUSE-SU-2026:4582-1
SUSEEL-9:Update:Products:MultiLinuxManagerTools:Updatesaltbundlepy-cffi1.17.1-90002.3.6.2SUSE-SU-2026:4582-1
SUSEEL-9:Update:Products:MultiLinuxManagerTools:Updatesaltbundlepy-cryptography3.3.2-90002.3.6.2SUSE-SU-2026:4582-1
SUSEEL-9:Update:Products:MultiLinuxManagerTools:Updatesaltbundlepy-cssselect1.3.0-90002.3.6.2SUSE-SU-2026:4582-1
SUSEEL-9:Update:Products:MultiLinuxManagerTools:Updatesaltbundlepy-editables0.5-90002.3.3.2SUSE-SU-2026:4582-1
SUSEEL-9:Update:Products:MultiLinuxManagerTools:Updatesaltbundlepy-exceptiongroup, saltbundlepy-exceptiongroup-test1.2.2-90002.3.3.2SUSE-SU-2026:4582-1
SUSEEL-9:Update:Products:MultiLinuxManagerTools:Updatesaltbundlepy-flit-core3.12.0-90002.3.3.1SUSE-SU-2026:4582-1
SUSEEL-9:Update:Products:MultiLinuxManagerTools:Updatesaltbundlepy-hatch-fancy-pypi-readme, saltbundlepy-hatch-fancy-pypi-readme-test25.1.0-90002.3.3.1SUSE-SU-2026:4582-1
SUSEEL-9:Update:Products:MultiLinuxManagerTools:Updatesaltbundlepy-hatch-vcs, saltbundlepy-hatch-vcs-test0.5.0-90002.3.3.1SUSE-SU-2026:4582-1
SUSEEL-9:Update:Products:MultiLinuxManagerTools:Updatesaltbundlepy-hatchling1.31.0-90002.3.3.1SUSE-SU-2026:4582-1
SUSEEL-9:Update:Products:MultiLinuxManagerTools:Updatesaltbundlepy-idna3.10-90002.3.6.2SUSE-SU-2026:4582-1
SUSEEL-9:Update:Products:MultiLinuxManagerTools:Updatesaltbundlepy-iniconfig2.1.0-90002.3.3.1SUSE-SU-2026:4582-1
129 more for SUSE in the JSON and on SUSE's page.
openSUSELeap 16.0python3, python313, python313-core and 3 more3.13.14-160000.1.1openSUSE-SU-2026:21459-1
openSUSETumbleweedpython3103.10.20-6.1openSUSE-SU-2026:10647-1
openSUSETumbleweedpython3113.11.15-6.1openSUSE-SU-2026:11068-1
openSUSETumbleweedpython3123.12.13-6.1openSUSE-SU-2026:11100-1
openSUSETumbleweedpython3133.13.13-2.1openSUSE-SU-2026:10667-1
openSUSETumbleweedpython3143.14.6-1.1openSUSE-SU-2026:11181-1
openSUSETumbleweedpython3153.15.0~a8-3.1openSUSE-SU-2026:10648-1
AlmaLinux8python3-idle, python3-libs, python3-test and 4 more3.6.8-76.el8_10.alma.1ALSA-2026:11077
AlmaLinux8python3.11, python3.11-idle, python3.11-libs and 5 more3.11.13-7.el8_10ALSA-2026:11062
AlmaLinux8python3.12, python3.12-idle, python3.12-libs and 5 more3.12.13-2.el8_10ALSA-2026:10950
AlmaLinux9python3, python3-idle, python3-libs and 5 more3.9.25-3.el9_7.3ALSA-2026:10949
AlmaLinux9python3, python3-idle, python3-libs and 5 more3.9.25-7.el9_8ALSA-2026:19216
AlmaLinux9python3.11, python3.11-idle, python3.11-libs and 4 more3.11.13-5.3.el9_7ALSA-2026:10774
AlmaLinux9python3.11, python3.11-idle, python3.11-libs and 4 more3.11.13-9.el9_8ALSA-2026:19175
AlmaLinux9python3.12, python3.12-idle, python3.12-libs and 4 more3.12.12-4.el9_7.3ALSA-2026:10745
AlmaLinux9python3.12, python3.12-idle, python3.12-libs and 4 more3.12.13-2.el9_8ALSA-2026:19177
AlmaLinux9python3.14, python3.14-idle, python3.14-libs and 11 more3.14.4-2.el9_8ALSA-2026:19176
AlmaLinux9python3.14, python3.14-idle, python3.14-libs and 11 more3.14.5-1.el9_8ALSA-2026:28247
AlmaLinux10python-unversioned-command3.12.12-3.el10_1.3ALSA-2026:10711
3 more for AlmaLinux in the JSON.
Rocky Linux8python30:3.6.8-76.el8_10.rocky.0RLSA-2026:11077
Rocky Linux8python3.110:3.11.13-7.el8_10RLSA-2026:11062
Rocky Linux8python3.120:3.12.13-2.el8_10RLSA-2026:10950
Rocky Linux9python3.110:3.11.13-5.3.el9_7RLSA-2026:10774
Rocky Linux9python3.110:3.11.13-9.el9_8RLSA-2026:19175
Rocky Linux9python3.120:3.12.12-4.el9_7.3RLSA-2026:10745
Rocky Linux9python3.120:3.12.13-2.el9_8RLSA-2026:19177
Rocky Linux9python3.140:3.14.4-2.el9_8RLSA-2026:19176
Rocky Linux9python3.140:3.14.5-1.el9_8RLSA-2026:28247
Rocky Linux9python3.90:3.9.25-3.el9_7.3RLSA-2026:10949
Rocky Linux9python3.90:3.9.25-7.el9_8RLSA-2026:19216
Rocky Linux10python3.120:3.12.13-2.el10_2RLSA-2026:19064
2 more for Rocky Linux in the JSON.
Alpinev3.21, v3.22, v3.23python33.12.14-r0ALPINE-CVE-2026-4786
Azure Linux3python33.12.9-14AZL-83054
Alpaquita23python33.11.16-r0BELL-CVE-2026-4786
Alpaquita25python33.12.14-r0BELL-CVE-2026-4786
Alpaquitastreampython33.14.5-r1BELL-CVE-2026-4786
BellSoft Hardened Containers23python33.11.16-r0BELL-CVE-2026-4786
BellSoft Hardened Containers25python33.12.14-r0BELL-CVE-2026-4786
BellSoft Hardened Containersstreampython33.14.5-r1BELL-CVE-2026-4786

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine · Alpaquita · BellSoft Hardened Containers.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This flaw in the Python `webbrowser.open()` API allows for command injection and arbitrary code execution when processing specially crafted URLs containing "%action". This bypasses a previous mitigation for CVE-2026-4519.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10python3.12-0:3.12.12-3.el10_1.3Fixed 2026-04-27RHSA-2026:10711
Red Hat Enterprise Linux 10python3.14-0:3.14.4-2.el10_2Fixed 2026-05-19RHSA-2026:19019
Red Hat Enterprise Linux 10python3.12-0:3.12.13-2.el10_2Fixed 2026-05-19RHSA-2026:19064
Red Hat Enterprise Linux 10python3.14-0:3.14.5-1.el10_2Fixed 2026-06-24RHSA-2026:28581
Red Hat Enterprise Linux 10.0 Extended Update Supportpython3.12-0:3.12.9-2.el10_0.9Fixed 2026-05-13RHSA-2026:16699
Red Hat Enterprise Linux 6 Extended Lifecycle Support - EXTENSIONpython-0:2.6.6-70.el6_10.4Fixed 2026-06-01RHSA-2026:22144
Red Hat Enterprise Linux 7 Extended Lifecycle Supportpython-0:2.7.5-94.el7_9.5Fixed 2026-05-20RHSA-2026:19589
Red Hat Enterprise Linux 7 Extended Lifecycle Supportpython3-0:3.6.8-21.el7_9.6Fixed 2026-07-06RHSA-2026:35838
Red Hat Enterprise Linux 8python3.12-0:3.12.13-2.el8_10Fixed 2026-04-27RHSA-2026:10950
Red Hat Enterprise Linux 8python3.11-0:3.11.13-7.el8_10Fixed 2026-04-27RHSA-2026:11062
Red Hat Enterprise Linux 8python3-0:3.6.8-76.el8_10Fixed 2026-04-27RHSA-2026:11077
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Supportpython3-0:3.6.8-39.el8_4.11Fixed 2026-05-20RHSA-2026:19590
Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-Onpython3-0:3.6.8-39.el8_4.11Fixed 2026-05-20RHSA-2026:19590
Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Supportpython3-0:3.6.8-47.el8_6.13Fixed 2026-05-14RHSA-2026:17619
Red Hat Enterprise Linux 8.6 Telecommunications Update Servicepython3-0:3.6.8-47.el8_6.13Fixed 2026-05-14RHSA-2026:17619
Red Hat Enterprise Linux 8python2Not affected
Red Hat Enterprise Linux 8python36Not affected
Red Hat Enterprise Linux 8python36:3.6/python36Not affected
Red Hat Enterprise Linux 8python38Will not fix
Red Hat Enterprise Linux 8python39Will not fix
53 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-4786.

Attack patterns (CAPEC)

  • CAPEC-41 Using Meta-characters in E-mail Headers to Inject Malicious Payloads Likelihood: High · Severity: High
  • CAPEC-88 OS Command Injection Likelihood: High · Severity: High
  • CAPEC-137 Parameter Injection Likelihood: Medium · Severity: Medium
  • CAPEC-174 Flash Parameter Injection Likelihood: High · Severity: Medium
  • CAPEC-460 HTTP Parameter Pollution (HPP) Severity: Medium
  • CAPEC-15 Command Delimiters Likelihood: High · Severity: High
  • CAPEC-40 Manipulating Writeable Terminal Devices Likelihood: High · Severity: Very High
  • CAPEC-43 Exploiting Multiple Input Interpretation Layers Likelihood: Medium · Severity: High
  • CAPEC-75 Manipulating Writeable Configuration Files Likelihood: High · Severity: Very High
  • CAPEC-76 Manipulating Web Input to File System Calls Likelihood: High · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-77.

References

Check your stackJSON