All reports
Medium

perl-cgi: perl-cgi: script injection via unvalidated request URI

Affected versions

Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2026-120636

Probability of exploitation in the next 30 days: 0.30%

FIRST EPSS · 2026-11-23

Description

CGI versions before 5.00 for Perl allow open redirects and script injection via URLs built from REQUEST_URI in url and start_form. url(-absolute=>1), url(-relative=>1) and the default start_form action are built from the client-supplied REQUEST_URI without validation. The result can be protocol-relative (//evil.example), absolute-form (http://evil.example/) or contain backslashes, and url(-relative=>1) can return a javascript: URL. Links and form posts built from these URLs can go to another host.

A flaw was found in perl-cgi. The component constructs target URLs and form actions from client-supplied request values without sufficient validation. A remote attacker can exploit this flaw by sending a specially crafted request URI (Uniform Resource Identifier) containing arbitrary domains or script schemes. This vulnerability may allow an attacker to execute arbitrary scripts in a victim's web browser or redirect users to malicious external websites.