CVE-2012-5526: CGI.pm module before 3.63 for Perl does not properly escape newlines in (1) Set-Cookie or (2) P3P headers, whi
CVE-2012-5526 is a medium-severity flaw (CVSS 5.0) affecting cgi.pm. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
CGI.pm module before 3.63 for Perl does not properly escape newlines in (1) Set-Cookie or (2) P3P headers, which might allow remote attackers to inject arbitrary headers into responses from applications that use CGI.pm.
Why this priority
- No elevated risk signals yet
A fixed release or distro patch exists.
Risk facts
| CVSS score | 5.0 (Medium) |
| EPSS exploit chance | 3.3% (top 12%) |
| CISA exploited list | No |
| Weakness | CWE-16 |
| Published | 2012-11-21 |
| Last modified | 2026-06-16 |
Last updated 2026-06-16 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2012-5526?
cgi.pm: upgrade to newer than 3.62. Exact commands for each OS are on this page.
Is CVE-2012-5526 being exploited?
CVE-2012-5526 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2012-5526 affect?
CVE-2012-5526 affects cgi.pm. Severity is medium (CVSS 5.0). CGI.pm module before 3.63 for Perl does not properly escape newlines in (1) Set-Cookie or (2) P3P headers, which might allow remote attackers to inject arbitrary headers into responses from applications that use CGI.pm.
How urgent is CVE-2012-5526?
Priority 40/100. No elevated risk signals yet.