cve.bz

CVE-2026-120641 Path traversal

8.8 highEPSS 0.6%

High (8.8). EPSS 0.6% estimated probability of exploitation activity in the next 30 days.

On this page
CGI versions before 5.00 for Perl return upload filenames with any client-supplied path, including ../ and Windows paths. The name returned for an uploaded file is the filename parameter of the part's Content-Disposition header, unchanged. An application that saves the upload under this name can be made to write outside the intended directory.

Severity

CVSS 3.1

8.8 high
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
0.6% (unchanged from 0.5% a week ago) estimated probability of exploitation activity in the next 30 days; 42nd percentile. Scored 2026-11-25. 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-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-22 Improper Limitation of a Pathname to a Restricted Directory (Path traversal)
OWASP Top 10
A01:2025 Broken Access Control
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-120641 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-120641?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-120641?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-120641 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-120641
Debian14libcgi-pm-perl5.02-1DEBIAN-CVE-2026-120641
Ubuntu16.04:LTS, 18.04:LTS, 20.04:LTS and 4 morelibcgi-pm-perlno fix listedUBUNTU-CVE-2026-120641
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-112777

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

This vulnerability is rated as Important severity because unauthenticated remote attackers can overwrite arbitrary files with the privileges of the web server process when applications accept file uploads. In Red Hat Enterprise Linux environments, perl-CGI functions as a library rather than an exposed standalone service, meaning exposure is limited to scripts configured to handle multipart form data. Successful attacks require downstream code to directly persist files using the untrusted client-provided filename without independent sanitization or unique name generation.

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 sanitize client-supplied upload filenames or canonicalize destination paths before saving files in applications using CGI.pm: upgrade to CGI 5.00+ (or the fixed Perl Cgi builds), which strip control characters and directory segments separated by forward slashes and backslashes from upload filenames, defaulting to 'upload' if no usable name remains, closing all 3 injection vectors (multipart Content-Disposition filenames with relative directory traversal sequences, multipart Content-Disposition filenames with absolute path segments, multipart Content-Disposition filenames with Windows path separators). Until patched, this is a concern on Applications on any platform using CGI.pm to handle multipart/form-data file uploads that save files under the returned filename, so Implement independent path sanitization or canonicalization in application code to ensure destination paths remain strictly confined to designated upload directories before saving files. As a compensating measure, Inspect HTTP multipart/form-data payloads with a web application firewall to detect and block traversal sequences inside the Content-Disposition filename parameter, Log kernel-level filesystem write events using auditd to provide forensic visibility when files are created outside the intended upload directory, Monitor file-system write operations with Falco or eBPF runtime security to alert on unexpected file creation outside standard upload directories by the web process, and Deploy file integrity monitoring such as AIDE to detect unauthorized creation or modification of critical system files resulting from traversal writes. These controls limit blast radius and contain exploitation, but they do not fix the underlying path traversal vulnerability — apply the upstream patch to fully remediate.

Highest-impact CME: CME-1301 Path Traversal Prevention (Canonicalization) (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-120641.

Attack patterns (CAPEC)

  • CAPEC-64 Using Slashes and URL Encoding Combined to Bypass Validation Logic Likelihood: High · Severity: High
  • CAPEC-76 Manipulating Web Input to File System Calls Likelihood: High · Severity: Very High
  • CAPEC-78 Using Escaped Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-79 Using Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-126 Path Traversal Likelihood: High · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

History

  1. Scored 8.8 high

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

References

Check your stackJSON