CVE-2025-40927 CGI::Simple versions 1.281 and earlier for Perl has a HTTP response splitting flaw
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
- Technology
- UbuntuDebian
Description
CGI::Simple versions before 1.282 for Perl has a HTTP response splitting flaw
This vulnerability is a confirmed HTTP response splitting flaw in CGI::Simple that allows HTTP response header injection, which can be used for reflected XSS or open redirect under certain conditions.
Although some validation exists, it can be bypassed using URL-encoded values, allowing an attacker to inject untrusted content into the response via query parameters.
As a result, an attacker can inject a line break (e.g. %0A) into the parameter value, causing the server to split the HTTP response and inject arbitrary headers or even an HTML/JavaScript body, leading to reflected cross-site scripting (XSS), open redirect or other attacks.
The issue documented in CVE-2010-4410 https://www.cve.org/CVERecord?id=CVE-2010-4410 is related but the fix was incomplete.
Impact
By injecting %0A (newline) into a query string parameter, an attacker can:
-
Break the current HTTP header
-
Inject a new header or entire body
-
Deliver a script payload that is reflected in the server’s response
That can lead to the following attacks: -
reflected XSS
-
open redirect
-
cache poisoning
-
header manipulation
Upgrade path
7 packages: 4 fixed, 3 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| ubuntu/libcgi-simple-perl(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| ubuntu/libcgi-simple-perl(Ubuntu 24.04) | All versions | No fix listed | No fix yet |
| ubuntu/libcgi-simple-perl(Ubuntu 26.04) | All versions | No fix listed | No fix yet |
| debian/libcgi-simple-perl(Debian 12) | < 1.280-2+deb12u1; = 1.280-2 | 1.280-2+deb12u1 | Fixed |
| debian/libcgi-simple-perl(Debian 13) | < 1.282-1~deb13u1; = 1.281-1 | 1.282-1~deb13u1 | Fixed |
| debian/libcgi-simple-perl(Debian 14) | < 1.282-1; = 1.281-1; = 1.282-1~deb13u1 | 1.282-1 | Fixed |
| MANWAR CGI::Simple | < 1.282 | 1.282 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/libcgi-simple-perl(Debian:12) | < 1.280-2+deb12u1 | 1.280-2+deb12u1 |
| debian/libcgi-simple-perl(Debian:12) | = 1.280-2 | No fix listed |
| debian/libcgi-simple-perl(Debian:13) | < 1.282-1~deb13u1 | 1.282-1~deb13u1 |
| debian/libcgi-simple-perl(Debian:13) | = 1.281-1 | No fix listed |
| debian/libcgi-simple-perl(Debian:14) | < 1.282-1 | 1.282-1 |
| debian/libcgi-simple-perl(Debian:14) | = 1.281-1 | No fix listed |
| debian/libcgi-simple-perl(Debian:14) | = 1.282-1~deb13u1 | No fix listed |
| MANWAR CGI::Simple | < 1.282 | 1.282 |
| ubuntu/libcgi-simple-perl(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/libcgi-simple-perl(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/libcgi-simple-perl(Ubuntu:26.04) | All versions | No fix listed |
References
- Debian Security Tracker CVE-2025-40927 vendor-advisory
- metacpan.org related
- metacpan.org related
- owasp.org technical-description
- datatracker.ietf.org technical-description
- cve.mitre.org related
- rt.perl.org related
- Ubuntu CVE tracker vendor-advisory
- www.cve.org