CVEfocus › CVE database › CVE-2026-120633

CVE-2026-120633CGI versions before 5.00 for Perl trust the client X-Forwarded-Host header in url,…

CVSS 6.1 MediumEPSS 0.2% (higher than 4% of CVEs)Published 2026-11-03Updated 2026-11-09Assigner: CPANSec

CGI versions before 5.00 for Perl trust the client X-Forwarded-Host header in url, self_url, virtual_host and virtual_port. These take the host name and port from the X-Forwarded-Host request header when present, and otherwise from Host, without validating either. The URLs from url and self_url are the default redirect location and the start_html(-base=>1) base href, and the default start_form action when REQUEST_URI is not set. A client can poison shared caches, and URLs the application stores or sends, with redirects, links and scripts that point at a host it controls.

CWE-348CWE-601

What to do

Fixed builds are available from Debian: see the table below for the fixed version per release.

Debian, Red Hat, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

1Fixed
10Fix pending
3Under investigation

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10libcgi-pm-perlFix pendingUBUNTU-CVE-2026-120633
Ubuntu 26.04libcgi-pm-perlUnder investigationUBUNTU-CVE-2026-120633
Ubuntu 24.04libcgi-pm-perlUnder investigationUBUNTU-CVE-2026-120633
Ubuntu 22.04libcgi-pm-perlUnder investigationUBUNTU-CVE-2026-120633
Ubuntu 20.04libcgi-pm-perlFix pendingUBUNTU-CVE-2026-120633
Ubuntu 18.04libcgi-pm-perlFix pendingUBUNTU-CVE-2026-120633
Ubuntu 16.04libcgi-pm-perlFix pendingUBUNTU-CVE-2026-120633
Debian 14libcgi-pm-perlFixed5.02-1DEBIAN-CVE-2026-120633
Debian 13libcgi-pm-perlFix pendingDEBIAN-CVE-2026-120633
Debian 12libcgi-pm-perlFix pendingDEBIAN-CVE-2026-120633
Red Hat Enterprise Linux 10perl-CGIFix pending
Fix deferred
Red Hat Enterprise Linux 9perl-CGIFix pending
Fix deferred
Red Hat Enterprise Linux 8perl-CGIFix pending
Fix deferred
Red Hat Enterprise Linux 7perl-CGIFix pending
Fix deferred

What the vendor says

As published in the CVE record by CPANSec, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Solution: Upgrade to CGI 5.00 or later.

Workaround: For deployments that cannot upgrade, strip X-Forwarded-Host at the web server or proxy unless it sets the header itself, and validate Host.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.