Skip to content
Noroxi
CVE-2012-5526· NVD / CVE Program· CNA redhat

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 attacker

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.

MediumCVSS 5.0 · v2.0—No exploit Fix available
Published
Nov 21, 2012
Updated
Jun 16, 2026
EPSS
3.3% · 88th percentile
Follow this CVE

Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.

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.3%

Affected systems

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 spli
    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 remo
    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.

EPSS, last 120 days

FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).

Patch and commit links

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

Finders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.

No credits in the CNA record.

Variant candidates

Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.

No nightly-computed relations.

Chain candidates

An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.

—

Bug bounty scope

No known public program.

Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).

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.

Noroxi analysis

No Noroxi analysis for this record yet

We don't hand-write analysis for all 385,000+ vulnerabilities; that wouldn't be honest. For notable, high-impact vulnerabilities our team writes the mechanism, detection and remediation steps.

We use this product, ask for help

Change log

  1. Fix✗ → ✓

For records you follow, these changes also arrive as notifications. →

References

All records