Skip to content
Noroxi
NVD / CVE Program· CNA redhat

CVE-2012-5526: 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…

MediumCVSS 5.0 · v2.0—No exploit Fix available

Noroxi assessment

Priority: Monitor (action score 21/100)

  • The sources we track (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) show no public exploit code or exploitation in the wild.
  • Probability of exploitation in the next 30 days: 3.2% (FIRST EPSS); higher than 88.5% of all records.
  • No special conditions are required; it is repeatable.
  • Fixed version: libcgi-pm-perl (Debian:12) 3.61-2; perl (Debian:12) 5.14.2-16; libcgi-pm-perl (Debian:6.0) 3.49-1squeeze2.

Low priority for now. Upgrade to libcgi-pm-perl (Debian:12) 3.61-2; perl (Debian:12) 5.14.2-16; libcgi-pm-perl (Debian:6.0) 3.49-1squeeze2 or later.

Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it

Primary sources: NVD · CVE.org · FIRST EPSS

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.

Published
Nov 21, 2012
Updated
Jun 16, 2026
EPSS
3.2% · 88th percentile

Report tools

JSON

Action score

21

Monitor

Low priority for now.

CVSS
20 / 40 · 5.0 / 10
CISA KEV
0 / 30 · Not listed
EPSS
1 / 30 · 3.2%

Get told when this record changes

  • Not in KEV: no record of exploitation in the wild
  • No public exploit code on record
  • A fix has been released

If any of these changes, we'll tell you in the daily email digest.

Follow CVE-2012-5526

When you'll hear from us

  • when it enters CISA KEV
  • when exploit code appears or is weaponized
  • when the record is updated (including a fixed version)
  • when EPSS rises 20 points in a week

One daily email digest (06:00 UTC); connect a webhook for KEV listings and weaponized exploits every 10 minutes on paid plans, on the hour on the free plan.

Your free account also gets you

  • CVE alerts: add the products and versions you run, get the new CVEs that affect them
  • Uptime monitoring: 1 site, instant email when it goes down
  • Add your domain: subdomains and takeover risk scanned every week (1 domain)
  • 10 scans an hour on the security tools, at most 30 a day (3 a day without an account), an API key and MCP
  • All your scans in one panel: findings, what changed in the last scan, a report per domain or per client (PDF, share link)
All free tools
Is your version affected? Check it

Noroxi analysis

What does it mean in your environment?

The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.

We use this product, ask for help

Affected systems

Is your version affected?

Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.

VendorProduct
andy armstrongcgi.pm

Affected versions

NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.

  • andy armstrong cgi.pmup to 3.62 inclusive

Package-level exposure

OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.

EcosystemPackageAffected rangeFix
Debian:12libcgi-pm-perlbefore 3.61-23.61-2
Debian:12perlbefore 5.14.2-165.14.2-16
Debian:6.0libcgi-pm-perlbefore 3.49-1squeeze23.49-1squeeze2
Debian:6.0perlbefore 5.10.1-17squeeze45.10.1-17squeeze4
Red Hat:enterprise_linux:5::serverperlbefore 4:5.8.8-40.el5_94:5.8.8-40.el5_9
Red Hat:enterprise_linux:5::serverperl-debuginfobefore 4:5.8.8-40.el5_94:5.8.8-40.el5_9
Red Hat:enterprise_linux:5::serverperl-suidperlbefore 4:5.8.8-40.el5_94:5.8.8-40.el5_9
Red Hat:enterprise_linux:6::clientperlbefore 4:5.10.1-130.el6_44:5.10.1-130.el6_4
Red Hat:enterprise_linux:6::clientperl-Archive-Extractbefore 1:0.38-130.el6_41:0.38-130.el6_4
Red Hat:enterprise_linux:6::clientperl-Archive-Tarbefore 0:1.58-130.el6_40:1.58-130.el6_4
Red Hat:enterprise_linux:6::clientperl-CGIbefore 0:3.51-130.el6_40:3.51-130.el6_4
Red Hat:enterprise_linux:6::clientperl-Compress-Raw-Bzip2before 0:2.020-130.el6_40:2.020-130.el6_4
Red Hat:enterprise_linux:6::clientperl-Compress-Raw-Zlibbefore 1:2.020-130.el6_41:2.020-130.el6_4
Red Hat:enterprise_linux:6::clientperl-Compress-Zlibbefore 0:2.020-130.el6_40:2.020-130.el6_4
Red Hat:enterprise_linux:6::clientperl-corebefore 0:5.10.1-130.el6_40:5.10.1-130.el6_4
Red Hat:enterprise_linux:6::clientperl-CPANbefore 0:1.9402-130.el6_40:1.9402-130.el6_4
Red Hat:enterprise_linux:6::clientperl-CPANPLUSbefore 0:0.88-130.el6_40:0.88-130.el6_4
Red Hat:enterprise_linux:6::clientperl-debuginfobefore 4:5.10.1-130.el6_44:5.10.1-130.el6_4
Red Hat:enterprise_linux:6::clientperl-develbefore 4:5.10.1-130.el6_44:5.10.1-130.el6_4
Red Hat:enterprise_linux:6::clientperl-Digest-SHAbefore 1:5.47-130.el6_41:5.47-130.el6_4
Red Hat:enterprise_linux:6::clientperl-ExtUtils-CBuilderbefore 1:0.27-130.el6_41:0.27-130.el6_4
Red Hat:enterprise_linux:6::clientperl-ExtUtils-Embedbefore 0:1.28-130.el6_40:1.28-130.el6_4
Red Hat:enterprise_linux:6::clientperl-ExtUtils-MakeMakerbefore 0:6.55-130.el6_40:6.55-130.el6_4
Red Hat:enterprise_linux:6::clientperl-ExtUtils-ParseXSbefore 1:2.2003.0-130.el6_41:2.2003.0-130.el6_4

+30

Other highest-scoring records for the same primary product.

  • CVE-2010-4411Unspecified vulnerability in CGI.pm 3.50 and earlier allows remote attackers to inject arbitrary HTTP headers and conduct HTTP response…
    18Monitor
  • CVE-2010-4410CRLF injection vulnerability in the header function in (1) CGI.pm before 3.50 and (2) Simple.pm in CGI::Simple 1.112 and earlier allows…
    18Monitor
  • CVE-2010-2761The multipart_init function in (1) CGI.pm before 3.50 and (2) Simple.pm in CGI::Simple 1.112 and earlier uses a hardcoded value of the MIME…
    18Monitor

Remediation

Which version to upgrade to

Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.

Product / packageFixed versionSource
debian:libcgi-pm-perl3.61-2 · Debian:12Package registry (OSV)
debian:perl5.14.2-16 · Debian:12Package registry (OSV)
red hat:perl4:5.8.8-40.el5_9 · Red Hat:enterprise_linux:5::serverPackage registry (OSV)
red hat:perl-Archive-Extract1:0.38-130.el6_4 · Red Hat:enterprise_linux:6::clientPackage registry (OSV)
red hat:perl-Archive-Tar0:1.58-130.el6_4 · Red Hat:enterprise_linux:6::clientPackage registry (OSV)
red hat:perl-CGI0:3.51-130.el6_4 · Red Hat:enterprise_linux:6::clientPackage registry (OSV)
red hat:perl-Compress-Raw-Bzip20:2.020-130.el6_4 · Red Hat:enterprise_linux:6::clientPackage registry (OSV)
red hat:perl-Compress-Raw-Zlib1:2.020-130.el6_4 · Red Hat:enterprise_linux:6::clientPackage registry (OSV)
red hat:perl-Compress-Zlib0:2.020-130.el6_4 · Red Hat:enterprise_linux:6::clientPackage registry (OSV)
red hat:perl-CPAN0:1.9402-130.el6_4 · Red Hat:enterprise_linux:6::clientPackage registry (OSV)
red hat:perl-CPANPLUS0:0.88-130.el6_4 · Red Hat:enterprise_linux:6::clientPackage registry (OSV)
red hat:perl-debuginfo4:5.8.8-40.el5_9 · Red Hat:enterprise_linux:5::serverPackage registry (OSV)
red hat:perl-Digest-SHA1:5.47-130.el6_4 · Red Hat:enterprise_linux:6::clientPackage registry (OSV)
red hat:perl-suidperl4:5.8.8-40.el5_9 · Red Hat:enterprise_linux:5::serverPackage registry (OSV)

Exploit status

No known public exploit

No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.

Research context

For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.

Timeline

From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.

No dated events beyond publication.

Patch and commit links

Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.

Not on record for this CVE: EPSS history · researcher credit · variant or chain candidate · public bounty program.

Technical details

Attack conditions

  • No special conditions are required; it is repeatable.

If successful

Confidentiality
none
Integrity
P · data or configuration can be modified
Availability
none
Attack complexity
Low
Confidentiality impact
None
Integrity impact
P
Availability impact
None

Weakness class (CWE)

CWE-16 · Configuration

CVSS vector

AV:N/AC:L/Au:N/C:N/I:P/A:N

nvd-primary

Attack context

MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.

MITRE has no CAPEC/ATT&CK mapping for this CWE.

References

All records