CVE-2026-120641
CGI versions before 5.00 for Perl return upload filenames with any client-supplied path, including ../ and Windows paths
No exploitation reported by the sources we read.
- Published2026-11-04
- WeaknessCWE-22
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « affected ».With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.
Description
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.
Timeline
dates in UTC- 2026-11-0323:40CVE publishedCNA
Versions per branch
Products declared by the CNA1 product
As CPANSec, the CNA that assigned this CVE, declared them in the CVE record; versions as written.
- CGIother versions: not affectedAffected
- < 5.00fixed in 5.00custom
Source: the CNA record (CVE Program), © The MITRE Corporation,CVE Terms of UseCVE recordupdated 2026-11-03
Distribution builds and vendor advisories
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Packages
- libcgi-pm-perlUbuntu:26.10all versions · no fixed version listed
- libcgi-pm-perlUbuntu:26.04:LTSall versions · no fixed version listed
- libcgi-pm-perlUbuntu:24.04:LTSall versions · no fixed version listed
- libcgi-pm-perlUbuntu:22.04:LTSall versions · no fixed version listed
- libcgi-pm-perlUbuntu:20.04:LTSall versions · no fixed version listed
- libcgi-pm-perlUbuntu:18.04:LTSall versions · no fixed version listed
- libcgi-pm-perlUbuntu:16.04:LTSall versions · no fixed version listed
- libcgi-pm-perlDebian:14all versions · no fixed version listed
4 more package ranges on OSV.dev
Vendor advisories
perl-cgi: perl-cgi: arbitrary file write via unsanitized upload filenames
perl-CGI.src as a component of Red Hat Enterprise Linux 10 · perl-CGI.src as a component of Red Hat Enterprise Linux 7 · perl-CGI.src as a component of Red Hat Enterprise Linux 8 · +1 more
Fix
- Workaround from the vendor Red Hat Product Security CVE-2026-120641 · 4 products--- 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 indepen…
- No fix available, says the vendor Red Hat Product Security CVE-2026-120641 · 4 productsAffected
Detection
- Nuclei template
- none so far ProjectDiscovery
- Exploit-DB
- no entry Exploit-DB
- Proof of concept
- PoC-in-GitHubno public repository identifiedread 2026-11-08
- Metasploit modules
- none listed Metasploit Framework
Sources
- NVDCVE recordread 2026-11-09
- CISA-ADPSSVC decisionnone2026-11-09
- CISA-ADPCVSS 3.18.82026-11-09
- CNAweakness (CWE)CWE-222026-11-03
- FIRST EPSSEPSS score0.2 %2026-11-08
- OSVaffected packages—
- GitHub Advisoriesadvisory—
Identifiers
- AZL-112777same flawAzure Linux · MIT
- EUVD-2026-116608same flawENISA EUVD · LicenseRef-ENISA-legal-notice
- GHSA-3hqq-f8xf-6qwxsame flawGitHub Advisory Database · CC-BY-4.0
- openSUSE-SU-2026:12465-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
Technical details
- CVSS v3 Vector
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Published
- 2026-11-04
- Last Modified
- 2026-11-09
- NVD status
- Deferred
- GitHub Advisory
- GHSA-3hqq-f8xf-6qwx
Frequently asked questions
What is CVE-2026-120641?
Is CVE-2026-120641 actively exploited?
What is the CVSS score for CVE-2026-120641?
Running perl-cgi? Hear about its next vulnerability
Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».
No credit card required · No monthly cap on website lookups · 250 API requests/month
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
- CVE-2026-120645same productCGI versions before 5.00 for Perl allow denial of service via submitted values used as a regex for optgroup selection in scrolling_list
- CVE-2026-120631same productCGI::Cookie versions from 4.67 before 5.00 for Perl allow denial of service via the client cookie expires value used as a regex in parse
- CVE-2026-120639same productCGI versions before 5.00 for Perl allow HTTP header injection via entity decoding after the newline check in header and unchecked values in multipart_start and do_push
- CVE-2026-120636same productCGI versions before 5.00 for Perl allow open redirects and script injection via URLs built from REQUEST_URI in url and start_form
- CVE-2026-120648same productCGI versions before 5.00 for Perl allow HTML injection via text containing --> in comment
- CVE-2026-120643same productCGI versions from 4.62 before 5.00 for Perl allow cross-site scripting via a raw apostrophe in URLs returned by url and self_url
- CVE-2026-120647same productCGI versions before 5.00 for Perl allow Content-Disposition parameter injection via unescaped double quotes in the header attachment filename
- CVE-2026-120644same productCGI::Cookie versions before 5.00 for Perl allow cookie attribute injection via unvalidated path, domain and expires values
Sources for this record
- CVE Program · CVE Program Terms of Use
- ENISA EU Vulnerability Database · ENISA legal notice §1.2 (reproduction authorised, provided the source is acknowledged)
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- GitHub Advisory Database · CC-BY-4.0 · GHSA-3hqq-f8xf-6qwx
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OpenCVE · OpenCVE terms of service · terms restrict redistribution
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- Red Hat Product Security (CSAF and VEX) · CC-BY-4.0
- CISA Vulnrichment · CC0-1.0