cve.bz

CVE-2026-120642 Improper Use of Validation Framework

9.1 criticalEPSS 0.5%

Critical (9.1). EPSS 0.5% estimated probability of exploitation activity in the next 30 days.

On this page
CGI versions before 5.00 for Perl return request-derived values untainted under taint mode. The upload filename, uploadInfo values, some path_info and script_name values, Accept results, and the name lists from url_param and cookie are returned without the taint flag, as is a cookie named expires from 4.67 on. These values come from regex captures or hash keys, which Perl does not taint, so they pass -T checks unvalidated.

Severity

CVSS 3.1

9.1 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
EPSS
0.5% (unchanged from 0.5% a week ago) estimated probability of exploitation activity in the next 30 days; 36th percentile. Scored 2026-11-30. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: total, assessed 2026-11-09. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-1173 Improper Use of Validation Framework
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

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

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13libcgi-pm-perlno fix listedDEBIAN-CVE-2026-120642
Debian14libcgi-pm-perl5.02-1DEBIAN-CVE-2026-120642
Ubuntu16.04:LTS, 18.04:LTS, 20.04:LTS and 4 morelibcgi-pm-perlno fix listedUBUNTU-CVE-2026-120642
Red Hatenterprise_linux:8::appstreamperl-CGI0:4.38-3.el8_10RHSA-2026:99849
Red Hatenterprise_linux:9::appstreamperl-CGI0:4.51-5.el9_9.1RHSA-2026:99215
Red Hatenterprise_linux:10.3perl-CGI0:4.61-5.el10_3.1RHSA-2026:99212
Red Hatenterprise_linux_eus:10.2perl-CGI0:4.61-5.el10_2.1RHSA-2026:99214
Red Hatrhel_eus:9.8::appstreamperl-CGI0:4.51-5.el9_8.1RHSA-2026:99213
openSUSETumbleweedperl-CGI5.20.0-1.1openSUSE-SU-2026:12465-1
AlmaLinux8perl-CGI4.38-3.el8_10ALSA-2026:99849
AlmaLinux9perl-CGI4.51-5.el9_9.1ALSA-2026:99215
AlmaLinux10perl-CGI4.61-5.el10_3.1ALSA-2026:99212
Rocky Linux8perl-CGI0:4.38-3.el8_10RLSA-2026:99849
Rocky Linux9perl-CGI0:4.51-5.el9_9.1RLSA-2026:99215
Rocky Linux10perl-CGI0:4.61-5.el10_3.1RLSA-2026:99212
Azure Linux3perl-CGIno fix listedAZL-112771

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; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · openSUSE.

Red Hat

Red Hat rates this Important.

Red Hat's statement

Red Hat has evaluated this vulnerability as Important because it compromises Perl's core taint security boundary in environments where perl-CGI is deployed to handle untrusted web requests. While exploitation depends on scripts explicitly enforcing taint checks and passing affected parameter fields into privileged execution paths, this failure allows unauthenticated remote attackers to bypass trust restrictions. The perl-CGI component is not active by default in Red Hat Enterprise Linux and is limited to systems where legacy CGI scripts are configured.

Red Hat's mitigation

--- CME Mitigation Guidance (2026-11-04) ---

Disclaimer: The following mitigation solutions are provided as a courtesy, pending the application of an official patch. This content was generated utilizing AI tools in conjunction with data from https://cmetaxonomy.org. Customers are advised to independently evaluate and test these temporary mitigations within their own infrastructure.

The highest-value action is to enforce strict allowlist validation on all CGI request parameters and upload metadata before passing them into sensitive operations: upgrade to CGI 5.00 (or the fixed Perl Cgi builds), which append a tainted substring to request-derived hash keys and regex capture values before returning them, closing all 5 injection vectors (crafted upload filenames, crafted uploadInfo header values, crafted path_info or script_name values, crafted Accept header values, crafted url_param or cookie names). Until patched, this is a concern on applications running under Perl taint mode (-T) that rely on taint verification for CGI request metadata and parameter keys, so audit and explicitly untaint or validate all request metadata, file upload headers, and parameter names before passing them to sensitive functions like open or system. As a compensating measure, use direct process execution without shell invocation when passing CGI-derived values to process sinks, validate and sanitize upload filenames and uploadInfo headers against strict extension and content allowlists before processing, run SELinux in enforcing mode to confine the web server and CGI process domain, and apply enforcing AppArmor profiles to restrict file access and process execution for CGI scripts. These controls limit blast radius and contain exploitation, but they do not fix the underlying taint-check bypass defect — apply the upstream patch to fully remediate.

Highest-impact CME: CME-1315 Allowlist-Preferred Input Validation (Deny-by-Default Filtering) (high)

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10perl-CGI-0:4.61-5.el10_3.1Fixed 2026-11-11RHSA-2026:99212
Red Hat Enterprise Linux 10.2 Extended Update Supportperl-CGI-0:4.61-5.el10_2.1Fixed 2026-11-11RHSA-2026:99214
Red Hat Enterprise Linux 8perl-CGI-0:4.38-3.el8_10Fixed 2026-11-12RHSA-2026:99849
Red Hat Enterprise Linux 9perl-CGI-0:4.51-5.el9_9.1Fixed 2026-11-12RHSA-2026:99215
Red Hat Enterprise Linux 9.8 Extended Update Supportperl-CGI-0:4.51-5.el9_8.1Fixed 2026-11-12RHSA-2026:99213
Red Hat Enterprise Linux 7perl-CGIAffected

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

History

  1. Scored 9.1 critical

Changes since this site first stored the record. The same for every record: /api/public/changes.

References

Check your stackJSON