cve.bz

CVE-2026-7246 palletsprojects click: OS Command Injection

7.2 highExploit referenceEPSS 0.9%Fix available

High (7.2) in palletsprojects click. EPSS 0.9% estimated probability of exploitation activity in the next 30 days.

On this page
This CVE record was assigned not following CNA/CVE rules and is not considered a valid vulnerability by the Pallets Click project. The original CVE record description is preserved below: Pallets Click, versions 8.3.2 and below, contain a command injection vulnerability in the click.edit() function, allowing attackers to pass arbitrary OS commands from an unprivileged account.

Severity

CVSS 3.1

7.2 high
CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:C/C:H/I:H/A:H
EPSS
0.9% (unchanged from 0.9% a week ago; 0.9% 30 days ago) estimated probability of exploitation activity in the next 30 days; 61st percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: total, assessed 2026-04-30. 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-78 Improper Neutralization of Special Elements used in an OS Command (OS Command Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-7246 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-7246?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-7246?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-7246 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
Pallets Click Clickbefore 8.3.3

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13python-clickno fix listedDEBIAN-CVE-2026-7246
Debian14python-click8.3.3-1DEBIAN-CVE-2026-7246
Red Hatansible_automation_platform:2.5::el8automation-controller-venv-tower0:4.6.29-2.el8apRHSA-2026:24761
Red Hatansible_automation_platform:2.5::el8automation-gateway-proxy-server0:2.5.10-6.el8apRHSA-2026:24761
Red Hatansible_automation_platform:2.5::el8automation-gateway-server0:2.5.20260422-3.el8apRHSA-2026:24761
Red Hatansible_automation_platform:2.5::el8python3.12-pillow0:12.2.0-1.el8apRHSA-2026:24761
Red Hatansible_automation_platform:2.5::el8, ansible_automation_platform_developer:2.5::el8, ansible_automation_platform_inside:2.5::el8python3.12-click0:8.3.3-1.el8apRHSA-2026:24761
Red Hatansible_automation_platform:2.5::el8, ansible_automation_platform_developer:2.5::el8, ansible_automation_platform_inside:2.5::el8python3.12-cryptography0:46.0.7-1.el8apRHSA-2026:24761
Red Hatansible_automation_platform:2.5::el8, ansible_automation_platform_developer:2.5::el8, ansible_automation_platform_inside:2.5::el8receptor0:1.6.5-1.el8apRHSA-2026:24761
Red Hatansible_automation_platform:2.5::el9automation-controller-venv-tower0:4.6.29-2.el9apRHSA-2026:24761
Red Hatansible_automation_platform:2.5::el9automation-gateway-proxy-server0:2.6.14-3.el9apRHSA-2026:24761
Red Hatansible_automation_platform:2.5::el9automation-gateway-server0:2.5.20260422-3.el9apRHSA-2026:24761
Red Hatansible_automation_platform:2.5::el9python3.12-pillow0:12.2.0-1.el9apRHSA-2026:24761
Red Hatansible_automation_platform:2.5::el9, ansible_automation_platform_developer:2.5::el9, ansible_automation_platform_inside:2.5::el9python3.12-click0:8.3.3-1.el9apRHSA-2026:24761
13 more for Red Hat in the JSON and on Red Hat's page.
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0python-click8.2.1-160000.3.1SUSE-SU-2026:22321-1
SUSELinux Micro 6.2python-click8.2.1-160000.3.1SUSE-SU-2026:22254-1
openSUSELeap 16.0python-click8.2.1-160000.3.1openSUSE-SU-2026:21017-1
openSUSETumbleweedpython-click8.3.3-2.1openSUSE-SU-2026:10760-1
Azure Linux3python-click8.1.7-3AZL-86910
Alpaquitastreampy3-click8.3.3-r0BELL-CVE-2026-7246

From the distributions' data via OSV.dev: the Debian Security Tracker; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 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 · Red Hat · SUSE · openSUSE · Alpaquita.

Red Hat

Red Hat rates this Important.

Red Hat's statement

A command injection vulnerability exists in the click.edit() function of the Pallets Click library. The filename parameter is not sanitized before being interpolated into a shell command string, allowing an attacker who controls the filename to inject and execute arbitrary OS commands.

The root cause is in edit_files(), which wraps the filename in double quotes and passes the resulting string to subprocess.Popen() with shell=True. A filename containing a double-quote character (") can break out of the quoting context and introduce arbitrary shell metacharacters.

ProductPackageStateAdvisory
Red Hat Ansible Automation Platform 2.5 for RHEL 8python3.12-click-0:8.3.3-1.el8apFixed 2026-06-09RHSA-2026:24761
Red Hat Ansible Automation Platform 2.5 for RHEL 9python3.12-click-0:8.3.3-1.el9apFixed 2026-06-09RHSA-2026:24761
Red Hat Ansible Automation Platform 2.6 for RHEL 10python-click-0:8.3.3-1.el10apFixed 2026-06-09RHSA-2026:24762
Red Hat Ansible Automation Platform 2.6 for RHEL 9python3.12-click-0:8.3.3-1.el9apFixed 2026-06-09RHSA-2026:24762
Red Hat AI Inference Server 3.2rhaiis/vllm-cuda-rhel9:1790621718Fixed 2026-09-30RHSA-2026:73929
Red Hat AI Inference Server 3.2rhaiis/vllm-rocm-rhel9:1790621713Fixed 2026-09-30RHSA-2026:73930
Red Hat Ansible Automation Platform 2python3.11-clickNot affected
Red Hat Ansible Automation Platform 2python3x-clickNot affected

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-7246.

Attack patterns (CAPEC)

  • CAPEC-6 Argument Injection Likelihood: High · Severity: High
  • CAPEC-15 Command Delimiters Likelihood: High · Severity: High
  • CAPEC-43 Exploiting Multiple Input Interpretation Layers Likelihood: Medium · Severity: High
  • CAPEC-88 OS Command Injection Likelihood: High · Severity: High
  • CAPEC-108 Command Line Execution through SQL Injection Likelihood: Low · Severity: Very High
  • CAPEC-40 Manipulating Writeable Terminal Devices Likelihood: High · Severity: Very 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
  • CAPEC-136 LDAP Injection Likelihood: High · Severity: High
  • CAPEC-183 IMAP/SMTP Command Injection Severity: Medium

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