Unscored severity · published Dec 18, 2012
CVE-2012-5195
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…
–
CVSS
4.9%
EPSS
No
On KEV
Description
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.
Exploitation
Is it being used?
Exploit prediction (EPSS)4.9% · higher than 92% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
PE
Perl · Perl
5.12.0; 5.12.0; 5.12.0; 5.12.0; 5.12.0; 5.12.0; +17 more · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2012-5195
CVE.org
https://www.cve.org/CVERecord?id=CVE-2012-5195
kb.juniper.net
http://kb.juniper.net/InfoCenter/index?page=content&id=JSA10673
kb.juniper.net
http://kb.juniper.net/InfoCenter/index?page=content&id=JSA10705
kb.juniper.net
http://kb.juniper.net/InfoCenter/index?page=content&id=JSA10735
Patch
http://perl5.git.perl.org/perl.git/commit/2709980d5a193ce6f3a16f0d19879a6560dcde44
rhn.redhat.com
http://rhn.redhat.com/errata/RHSA-2013-0685.html
Vendor Advisory
http://secunia.com/advisories/51457
More from Perl
9.8
CVE-2026-8376
Perl versions before 5.40.5-RC1, from 5.41.0 before 5.42.3-RC1, from 5.43.0 before 5.43.11 have a heap buffer overflow when compiling regular expressions with a repeated fixed string on 32-bit builds
9.8
CVE-2026-4176
Perl versions from 5.9.4 before 5.40.4-RC1, from 5.41.0 before 5.42.2-RC1, from 5.43.0 before 5.43.9 contain a vulnerable version of Compress::Raw::Zlib
9.8
CVE-2022-48522
In Perl 5.34.0, function S_find_uninit_var in sv.c has a stack-based crash that can lead to remote code execution or local privilege escalation
9.8
CVE-2018-18314
Perl before 5.26.3 has a buffer overflow via a crafted regular expression that triggers invalid write operations
9.8
CVE-2018-18311
Perl before 5.26.3 and 5.28.x before 5.28.1 has a buffer overflow via a crafted regular expression that triggers invalid write operations
