CVE-2012-5526 json
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 attacke…
published 2012-11-21 13 y ago modified 2026-06-16 4 mo ago also EUVD-2012-5418
- cvss
- 5.0
- version 2.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 3.3%
- EPSS 3.3% chance of exploitation in 30 days, percentile 88%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- perl Debian 14, Debian 13, Debian 12 5.14.2-16
- libcgi-pm-perl Debian 14, Debian 13, Debian 12 3.61-2
debian advisories DEBIAN-CVE-2012-5526
- perl RHEL 5 4:5.8.8-40.el5_9
- perl RHEL 6 4:5.10.1-130.el6_4
- perl-CGI RHEL 6 3.51-130.el6_4
- perl-core RHEL 6 5.10.1-130.el6_4
- perl-CPAN RHEL 6 1.9402-130.el6_4
- perl-libs RHEL 6 4:5.10.1-130.el6_4
- perl-parent RHEL 6 1:0.221-130.el6_4
- perl-IO-Zlib RHEL 6 1:1.09-130.el6_4
red hat advisories RHSA-2013:0685
- github.com/markstos/CGI.pm#23 pull request
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2012-5526 updated cvss 2.6
perl-CGI: Newline injection due to improper CRLF escaping in Set-Cookie and P3P headers
-
Red Hat Enterprise Linux (v. 5 server) perl 5.8.8-40.el5_9, perl-suidperl 5.8.8-40.el5_9 Red Hat Enterprise Linux Desktop (v. 6) perl 5.10.1-130.el6_4, perl-CGI 3.51-130.el6_4, perl-core 5.10.1-130.el6_4, perl-CPAN 1.9402-130.el6_4, perl-libs 5.10.1-130.el6_4, perl-IO-Zlib 1.09-130.el6_4, +39 more Red Hat Enterprise Linux HPC Node (v. 6) perl 5.10.1-130.el6_4, perl-CGI 3.51-130.el6_4, perl-core 5.10.1-130.el6_4, perl-CPAN 1.9402-130.el6_4, perl-libs 5.10.1-130.el6_4, perl-IO-Zlib 1.09-130.el6_4, +39 more Red Hat Enterprise Linux Server (v. 6) perl 5.10.1-130.el6_4, perl-CGI 3.51-130.el6_4, perl-core 5.10.1-130.el6_4, perl-CPAN 1.9402-130.el6_4, perl-libs 5.10.1-130.el6_4, perl-IO-Zlib 1.09-130.el6_4, +39 more Red Hat Enterprise Linux Workstation (v. 6) perl 5.10.1-130.el6_4, perl-CGI 3.51-130.el6_4, perl-core 5.10.1-130.el6_4, perl-CPAN 1.9402-130.el6_4, perl-libs 5.10.1-130.el6_4, perl-IO-Zlib 1.09-130.el6_4, +39 morefixed: vendor fix RHSA-2013:0685
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
3.26% chance of exploitation in the next 30 days, higher than 88% of all scored CVEs (FIRST EPSS, 2026-11-09).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 2.0 | 5.0 | AV:N/AC:L/Au:N/C:N/I:P/A:N |
Classification
- Weakness
-
- CWE-16 Configuration
References
- github.com /markstos/CGI.pm/pull/23
-
ubuntu.com
/usn/USN-1643-1
vendor-advisory
-
debian.org
/security/2012/dsa-2586
vendor-advisory
-
rhn.redhat.com
/errata/RHSA-2013-0685.html
vendor-advisory
- oracle.com /technetwork/topics/security/ovmbulletinjul2016-3090546.html
-
exchange.xforce.ibmcloud.com
/vulnerabilities/80098
vdb-entry
-
secunia.com
/advisories/55314
third-party-advisory
-
securityfocus.com
/bid/56562
vdb-entry
- cpansearch.perl.org /src/MARKSTOS/CGI.pm-3.63/Changes
-
securitytracker.com
/id?1027780
vdb-entry
- kb.juniper.net /InfoCenter/index?page=content&id=JSA10705
-
openwall.com
/lists/oss-security/2012/11/15/6
mailing-list
-
secunia.com
/advisories/51457
third-party-advisory
- kb.juniper.net /InfoCenter/index?page=content&id=JSA10735
Sources
- CVE List CVE-2012-5526
- NVD CVE-2012-5526
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.