CVE-2026-4786
Incomplete mitigation of CVE-2026-4519, %action expansion for command injection to webbrowser.open()
Check your servers for CVE-2026-4786
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-4786 affects cpython, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
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)
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
- Attack vector
- local: the attacker needs local access, or a user has to open a prepared file
- Attack complexity
- low: an attack works without special conditions
- Attack requirements
- present: an attack works only when the target is in a certain state or configuration
- Privileges required
- none: the attacker does not need an account
- User interaction
- active: a user has to take a deliberate step, such as installing or running something
- Impact on the vulnerable system
- confidentiality high, integrity high, availability none: what an attacker can read, change or stop in the vulnerable component
- Impact on other systems
- confidentiality none, integrity none, availability none: what an attacker can read, change or stop beyond it
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:L
- Attack vector
- network: an attacker can reach the vulnerable part over the network, often from the internet
- Attack complexity
- high: an attack depends on conditions outside the control of the attacker, such as a race
- Privileges required
- none: the attacker does not need an account
- User interaction
- required: a user has to do something, such as open a link or a file
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity high, availability low: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.52%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 37.1% of all scored CVEs. Scores of 30 Nov 2026.
The assessment of CISA (SSVC, 14 Apr 2026):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- total: full control of the component or of its data
Weakness
- CWE-77 Improper Neutralization of Special Elements used in a Command
- CWE-88 Improper Neutralization of Argument Delimiters in a Command
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| CPython |
affected before 3.10.21 affected from 3.11.0, before 3.11.16 affected from 3.12.0, before 3.12.14 affected from 3.13.0, before 3.13.14 affected from 3.14.0a1, before 3.14.5rc1 affected from 3.15.0a1, before 3.15.0b1
Other versions: unaffected
|
Is my server affected?
Find the installed version of cpython and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i cpython
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2026-4786 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2026-4786RHEL, Rocky, Alma, Fedora
rpm -q cpython
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2026-4786Alpine
apk list --installed | grep -i cpythonWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-4786
trivy image --scanners vuln IMAGE | grep CVE-2026-4786
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Advisories
- https://mail.python.org/archives/list/security-announce@python.org/thread/JQDUNJVB4AQNTJECSUKOBDU3XCJIPSE5/ mail.python.org · vendor advisory
- https://access.redhat.com/security/cve/CVE-2026-4786 access.redhat.com · vdb entry
- RHBZ#2458049 bugzilla.redhat.com · issue tracking
- https://access.redhat.com/errata/RHSA-2026:22144 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:19589 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:35838 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:13812 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:16699 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:10711 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:19064 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:19019 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:28581 access.redhat.com · vendor advisory
37 more
- https://access.redhat.com/errata/RHSA-2026:11077 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:11062 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:10950 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:19590 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:17619 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:19549 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:26187 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:19571 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:19570 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:13692 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:21682 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:14653 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:17525 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:19576 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:14652 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:14656 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:10949 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:10774 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:10745 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:19216 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:19175 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:19177 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:19176 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:28247 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:25096 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:30078 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:30089 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:30088 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:30087 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:10140 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:10141 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:8822 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:8824 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:10117 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:9228 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:11768 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:21275 access.redhat.com · vendor advisory
Patches and release notes
- https://github.com/python/cpython/pull/148170 github.com · patch
- https://github.com/python/cpython/commit/c5767a72838a8dda9d6dc5d3558075b055c56bca github.com · patch
- https://github.com/python/cpython/commit/d22922c8a7958353689dc4763dd72da2dea03fff github.com · patch
- https://github.com/python/cpython/commit/f4654824ae0850ac87227fb270f9057477946769 github.com · patch
- https://github.com/python/cpython/commit/28b4ad38067bbdad34edfcd03ad2de5f06387e53 github.com · patch
- https://github.com/python/cpython/commit/d6d68494be70bdbda20f89f83801ba52ec37daa4 github.com · patch
- https://github.com/python/cpython/commit/a4d3edf3a6ecfde504d02126410d2a65a859b744 github.com · patch
Other references
- https://github.com/python/cpython/issues/148169 github.com · issue tracking
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-4786.json security.access.redhat.com
Source: the record CVE-2026-4786 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse