CVE-2012-5195 json
Heap-based buffer overflow in the Perl_repeatcpy function in util.c in Perl 5.12.x before 5.12.5, 5.14.x before 5.14.3, and 5.15.x before 1…
published 2012-12-18 13 y ago modified 2026-06-16 4 mo ago also EUVD-2012-5118
- cvss
- 7.5
- version 2.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 4.9%
- EPSS 4.9% chance of exploitation in 30 days, percentile 92%
- public exploits
- 0
- none known
Summary
Heap-based buffer overflow in the Perl_repeatcpy function in util.c in Perl 5.12.x before 5.12.5, 5.14.x before 5.14.3, and 5.15.x before 15.15.5 allows context-dependent attackers to cause a denial of service (memory consumption and crash) or possibly execute arbitrary code via the 'x' string repeat operator.
Patch / fix
- perl Debian 14, Debian 13, Debian 12 5.14.2-14
debian advisories DEBIAN-CVE-2012-5195
- 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
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-5195 updated cvss 5.1
perl: heap buffer overrun flaw may lead to arbitrary code execution
-
Red Hat Enterprise Linux 4 perlaffected: no fix planned “Will not fix”
-
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
4.88% chance of exploitation in the next 30 days, higher than 92% of all scored CVEs (FIRST EPSS, 2026-11-09).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 2.0 | 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Classification
- Weakness
-
- CWE-119 Improper Restriction of Operations within the Bounds of a Memory Buffer
References
-
perl5.git.perl.org
/perl.git/commit/2709980d5a193ce6f3a16f0d19879a6560dcde44
patch, vendor-advisory
-
mandriva.com
/security/advisories?name=MDVSA-2013:113
vendor-advisory
-
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
-
secunia.com
/advisories/51457
third-party-advisory, vendor-advisory
- oracle.com /technetwork/topics/security/ovmbulletinjul2016-3090546.html
-
nntp.perl.org
/group/perl.perl5.porters/2012/10/msg193886.html
mailing-list
- kb.juniper.net /InfoCenter/index?page=content&id=JSA10673
- wiki.mageia.org /en/Support/Advisories/MGASA-2012-0352
-
secunia.com
/advisories/55314
third-party-advisory
-
openwall.com
/lists/oss-security/2012/10/26/2
mailing-list
-
securityfocus.com
/bid/56287
vdb-entry
-
openwall.com
/lists/oss-security/2012/10/27/1
mailing-list
- kb.juniper.net /InfoCenter/index?page=content&id=JSA10705
- kb.juniper.net /InfoCenter/index?page=content&id=JSA10735
Sources
- CVE List CVE-2012-5195
- NVD CVE-2012-5195
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.