Skip to content
Fencer Intel
high 7.5

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 perl
    affected: 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 more
    fixed: 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

Sources

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.