Search criteria
1 vulnerability by MANWAR
CVE-2025-40927 (GCVE-0-2025-40927)
Vulnerability from cvelistv5 – Published: 2025-08-29 00:10 – Updated: 2025-08-29 13:18
VLAI?
Summary
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
Severity ?
7.3 (High)
CWE
- CWE-113 - Improper Neutralization of CRLF Sequences in HTTP Headers ('HTTP Request/Response Splitting')
Assigner
References
| URL | Tags | |||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
||||||||||||||||||||
Impacted products
| Vendor | Product | Version | ||
|---|---|---|---|---|
| MANWAR | CGI::Simple |
Affected:
0 , < 1.282
(custom)
|
Credits
Maxim Kosenko
{
"containers": {
"adp": [
{
"metrics": [
{
"cvssV3_1": {
"attackComplexity": "LOW",
"attackVector": "NETWORK",
"availabilityImpact": "LOW",
"baseScore": 7.3,
"baseSeverity": "HIGH",
"confidentialityImpact": "LOW",
"integrityImpact": "LOW",
"privilegesRequired": "NONE",
"scope": "UNCHANGED",
"userInteraction": "NONE",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L",
"version": "3.1"
}
},
{
"other": {
"content": {
"id": "CVE-2025-40927",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"role": "CISA Coordinator",
"timestamp": "2025-08-29T13:18:01.758812Z",
"version": "2.0.3"
},
"type": "ssvc"
}
}
],
"providerMetadata": {
"dateUpdated": "2025-08-29T13:18:32.704Z",
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP"
},
"title": "CISA ADP Vulnrichment"
}
],
"cna": {
"affected": [
{
"collectionURL": "https://cpan.org/modules",
"defaultStatus": "unaffected",
"packageName": "CGI-Simple",
"product": "CGI::Simple",
"programFiles": [
"lib/CGI/Simple.pm"
],
"repo": "https://github.com/manwar/CGI--Simple",
"vendor": "MANWAR",
"versions": [
{
"lessThan": "1.282",
"status": "affected",
"version": "0",
"versionType": "custom"
}
]
}
],
"credits": [
{
"lang": "en",
"type": "finder",
"value": "Maxim Kosenko"
}
],
"descriptions": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "CGI::Simple versions before 1.282 for Perl has a HTTP response splitting flaw\u003cbr\u003e\u003cp\u003eThis vulnerability is a \u003cstrong\u003econfirmed HTTP response splitting\u003c/strong\u003e\u0026nbsp;flaw in \u003ccode\u003eCGI::Simple\u003c/code\u003e\u0026nbsp;\u003cspan style=\"background-color: rgb(255, 255, 255);\"\u003ethat allows HTTP response header injection, which can be used for reflected XSS or open redirect under certain conditions\u003c/span\u003e.\u003c/p\u003e\u003cp\u003eAlthough some validation exists, it can be bypassed using URL-encoded values, allowing an attacker to inject untrusted content into the response via query parameters.\u003c/p\u003e\u003cp\u003e\u003c/p\u003e\u003cp\u003eAs a result, an attacker can inject a line break (e.g. \u003ccode\u003e%0A\u003c/code\u003e) 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.\u003c/p\u003e\u003cp\u003eThe issue documented in\u0026nbsp;\u003ca target=\"_blank\" rel=\"nofollow\" href=\"https://www.cve.org/CVERecord?id=CVE-2010-4410\"\u003eCVE-2010-4410\u003c/a\u003e\u003cspan style=\"background-color: rgb(255, 255, 255);\"\u003e\u0026nbsp;is related but the fix was incomplete.\u003c/span\u003e\u0026nbsp;\u003c/p\u003e\u003cp\u003e\u003cstrong\u003eImpact\u003c/strong\u003e\u003c/p\u003e\u003cp\u003eBy injecting \u003ccode\u003e%0A\u003c/code\u003e\u0026nbsp;(newline) into a query string parameter, an attacker can:\u003c/p\u003e\u003col\u003e\u003cli\u003eBreak the current HTTP header\u003c/li\u003e\u003cli\u003eInject a new header or entire body\u003c/li\u003e\u003cli\u003eDeliver a script payload that is reflected in the server\u2019s response\u003c/li\u003e\u003c/ol\u003e\u003cp\u003eThat can lead to the following attacks:\u003c/p\u003e\u003cul\u003e\u003cli\u003ereflected XSS\u003c/li\u003e\u003cli\u003eopen redirect\u003c/li\u003e\u003cli\u003ecache poisoning\u003c/li\u003e\u003cli\u003eheader manipulation\u003c/li\u003e\u003c/ul\u003e\u003cbr\u003e"
}
],
"value": "CGI::Simple versions before 1.282 for Perl has a HTTP response splitting flaw\nThis vulnerability is a confirmed HTTP response splitting\u00a0flaw in CGI::Simple\u00a0that allows HTTP response header injection, which can be used for reflected XSS or open redirect under certain conditions.\n\nAlthough some validation exists, it can be bypassed using URL-encoded values, allowing an attacker to inject untrusted content into the response via query parameters.\n\n\n\nAs 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.\n\nThe issue documented in CVE-2010-4410 https://www.cve.org/CVERecord?id=CVE-2010-4410 is related but the fix was incomplete.\n\nImpact\n\nBy injecting %0A\u00a0(newline) into a query string parameter, an attacker can:\n\n * Break the current HTTP header\n * Inject a new header or entire body\n * Deliver a script payload that is reflected in the server\u2019s response\nThat can lead to the following attacks:\n\n * reflected XSS\n * open redirect\n * cache poisoning\n * header manipulation"
}
],
"impacts": [
{
"capecId": "CAPEC-34",
"descriptions": [
{
"lang": "en",
"value": "CAPEC-34 HTTP Response Splitting"
}
]
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-113",
"description": "CWE-113 Improper Neutralization of CRLF Sequences in HTTP Headers (\u0027HTTP Request/Response Splitting\u0027)",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2025-08-29T00:10:07.161Z",
"orgId": "9b29abf9-4ab0-4765-b253-1875cd9b441e",
"shortName": "CPANSec"
},
"references": [
{
"tags": [
"related"
],
"url": "https://metacpan.org/release/MANWAR/CGI-Simple-1.281/source/lib/CGI/Simple.pm#L1031-1035"
},
{
"tags": [
"related"
],
"url": "https://metacpan.org/release/MANWAR/CGI-Simple-1.281/diff/MANWAR/CGI-Simple-1.282/lib/CGI/Simple.pm"
},
{
"tags": [
"technical-description"
],
"url": "https://owasp.org/www-community/attacks/HTTP_Response_Splitting"
},
{
"tags": [
"technical-description"
],
"url": "https://datatracker.ietf.org/doc/html/rfc7230#section-3"
},
{
"tags": [
"related"
],
"url": "https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2004-2320"
},
{
"tags": [
"related"
],
"url": "https://rt.perl.org/Public/Bug/Display.html?id=21951"
}
],
"solutions": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "Upgrade CGI::Simple to version 1.282 or higher"
}
],
"value": "Upgrade CGI::Simple to version 1.282 or higher"
}
],
"source": {
"discovery": "EXTERNAL"
},
"title": "CGI::Simple versions 1.281 and earlier for Perl has a HTTP response splitting flaw",
"x_generator": {
"engine": "Vulnogram 0.2.0"
}
}
},
"cveMetadata": {
"assignerOrgId": "9b29abf9-4ab0-4765-b253-1875cd9b441e",
"assignerShortName": "CPANSec",
"cveId": "CVE-2025-40927",
"datePublished": "2025-08-29T00:10:07.161Z",
"dateReserved": "2025-04-16T09:05:34.362Z",
"dateUpdated": "2025-08-29T13:18:32.704Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.1"
}