Free and open · new CVEs checked every 20 minutesStatusRSSOpen dataContact

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

40
This month
MEDIUM 5.0UPGRADE

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 score5.0 (Medium)
EPSS exploit chance3.3% (top 12%)
CISA exploited listNo
WeaknessCWE-16
Published2012-11-21
Last modified2026-06-16
Publisher (CNA): Red Hat, Inc. · Vendor: andy armstrong

Share: LinkedIn · X · Reddit

Last updated 2026-06-16 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score

Am I affected?

Timeline

andy armstrong cgi.pm UPGRADE
Affected: <= 3.62
Fixed in: newer than 3.62
Safe to downgrade to: no unaffected older release
1. Check installed version
apt-cache policy cgi.pm || rpm -q cgi.pm || cgi.pm --version
2. UPGRADE to newer than 3.62 (Debian / Ubuntu)
sudo apt update && sudo apt install --only-upgrade cgi.pm
2. UPGRADE (RHEL / Amazon Linux / Fedora)
sudo dnf upgrade cgi.pm
Note
Distros often backport fixes without changing the version number. Confirm with the distro advisory or changelog.
Verify at the official source NVD · CVE Program · Report a problem with this page
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.

Software pages

Perl vulnerabilities

References

← Back to latest CVEs

Get the weekly exploited-CVE digest by emailThe CVEs being attacked this week and how to fix them. No spam, unsubscribe any time.