CVE-2012-5195
Status: ModifiedHigh (7.5)—
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.
CVSS
- Version: 2.0
- Vector: AV:N/AC:L/Au:N/C:P/I:P/A:P
- Base score: 7.5
Exploitation probability (EPSS)
- Probability of exploitation in the next 30 days: 4.88%
- Percentile among all scored CVEs: 92
- Score date: 10/7/2026
EPSS (Exploit Prediction Scoring System, FIRST) estimates how likely a vulnerability is to be exploited in the wild within 30 days. It complements CVSS (impact) and CISA KEV (confirmed exploitation).
Affected technologies (1)
CWEs
- CWE-119
References
- http://kb.juniper.net/InfoCenter/index?page=content&id=JSA10673
- http://kb.juniper.net/InfoCenter/index?page=content&id=JSA10705
- http://kb.juniper.net/InfoCenter/index?page=content&id=JSA10735
- http://perl5.git.perl.org/perl.git/commit/2709980d5a193ce6f3a16f0d19879a6560dcde44
- http://rhn.redhat.com/errata/RHSA-2013-0685.html
- http://secunia.com/advisories/51457
- http://secunia.com/advisories/55314
- http://www.debian.org/security/2012/dsa-2586
- http://www.mandriva.com/security/advisories?name=MDVSA-2013:113
- http://www.nntp.perl.org/group/perl.perl5.porters/2012/10/msg193886.html
- http://www.openwall.com/lists/oss-security/2012/10/26/2
- http://www.openwall.com/lists/oss-security/2012/10/27/1
- http://www.oracle.com/technetwork/topics/security/ovmbulletinjul2016-3090546.html
- http://www.securityfocus.com/bid/56287
- http://www.ubuntu.com/usn/USN-1643-1
- https://wiki.mageia.org/en/Support/Advisories/MGASA-2012-0352
- http://kb.juniper.net/InfoCenter/index?page=content&id=JSA10673
- http://kb.juniper.net/InfoCenter/index?page=content&id=JSA10705
- http://kb.juniper.net/InfoCenter/index?page=content&id=JSA10735
- http://perl5.git.perl.org/perl.git/commit/2709980d5a193ce6f3a16f0d19879a6560dcde44
- http://rhn.redhat.com/errata/RHSA-2013-0685.html
- http://secunia.com/advisories/51457
- http://secunia.com/advisories/55314
- http://www.debian.org/security/2012/dsa-2586
- http://www.mandriva.com/security/advisories?name=MDVSA-2013:113
- http://www.nntp.perl.org/group/perl.perl5.porters/2012/10/msg193886.html
- http://www.openwall.com/lists/oss-security/2012/10/26/2
- http://www.openwall.com/lists/oss-security/2012/10/27/1
- http://www.oracle.com/technetwork/topics/security/ovmbulletinjul2016-3090546.html
- http://www.securityfocus.com/bid/56287
- http://www.ubuntu.com/usn/USN-1643-1
- https://wiki.mageia.org/en/Support/Advisories/MGASA-2012-0352
Raw JSON (NVD)
Show
{
"id": "CVE-2012-5195",
"cveTags": [],
"metrics": {
"cvssMetricV2": [
{
"type": "Primary",
"source": "nvd@nist.gov",
"cvssData": {
"version": "2.0",
"baseScore": 7.5,
"accessVector": "NETWORK",
"vectorString": "AV:N/AC:L/Au:N/C:P/I:P/A:P",
"authentication": "NONE",
"integrityImpact": "PARTIAL",
"accessComplexity": "LOW",
"availabilityImpact": "PARTIAL",
"confidentialityImpact": "PARTIAL"
},
"acInsufInfo": false,
"impactScore": 6.4,
"baseSeverity": "HIGH",
"obtainAllPrivilege": false,
"exploitabilityScore": 10,
"obtainUserPrivilege": false,
"obtainOtherPrivilege": false,
"userInteractionRequired": false
}
]
},
"affected": [
{
"source": "cve@mitre.org",
"affectedData": [
{
"vendor": "n/a",
"product": "n/a",
"versions": [
{
"status": "affected",
"version": "n/a"
}
]
}
]
}
],
"published": "2012-12-18T00:55:01.587",
"references": [
{
"url": "http://kb.juniper.net/InfoCenter/index?page=content&id=JSA10673",
"source": "cve@mitre.org"
},
{
"url": "http://kb.juniper.net/InfoCenter/index?page=content&id=JSA10705",
"source": "cve@mitre.org"
},
{
"url": "http://kb.juniper.net/InfoCenter/index?page=content&id=JSA10735",
"source": "cve@mitre.org"
},
{
"url": "http://perl5.git.perl.org/perl.git/commit/2709980d5a193ce6f3a16f0d19879a6560dcde44",
"tags": [
"Patch",
"Vendor Advisory"
],
"source": "cve@mitre.org"
},
{
"url": "http://rhn.redhat.com/errata/RHSA-2013-0685.html",
"source": "cve@mitre.org"
},
{
"url": "http://secunia.com/advisories/51457",
"tags": [
"Vendor Advisory"
],
"source": "cve@mitre.org"
},
{
"url": "http://secunia.com/advisories/55314",
"source": "cve@mitre.org"
},
{
"url": "http://www.debian.org/security/2012/dsa-2586",
"source": "cve@mitre.org"
},
{
"url": "http://www.mandriva.com/security/advisories?name=MDVSA-2013:113",
"source": "cve@mitre.org"
},
{
"url": "http://www.nntp.perl.org/group/perl.perl5.porters/2012/10/msg193886.html",
"source": "cve@mitre.org"
},
{
"url": "http://www.openwall.com/lists/oss-security/2012/10/26/2",
"source": "cve@mitre.org"
},
{
"url": "http://www.openwall.com/lists/oss-security/2012/10/27/1",
"source": "cve@mitre.org"
},
{
"url": "http://www.oracle.com/technetwork/topics/security/ovmbulletinjul2016-3090546.html",
"source": "cve@mitre.org"
},
{
"url": "http://www.securityfocus.com/bid/56287",
"source": "cve@mitre.org"
},
{
"url": "http://www.ubuntu.com/usn/USN-1643-1",
"source": "cve@mitre.org"
},
{
"url": "https://wiki.mageia.org/en/Support/Advisories/MGASA-2012-0352",
"source": "cve@mitre.org"
},
{
"url": "http://kb.juniper.net/InfoCenter/index?page=content&id=JSA10673",
"source": "af854a3a-2127-422b-91ae-364da2661108"
},
{
"url": "http://kb.juniper.net/InfoCenter/index?page=content&id=JSA10705",
"source": "af854a3a-2127-422b-91ae-364da2661108"
},
{
"url": "http://kb.juniper.net/InfoCenter/index?page=content&id=JSA10735",
"source": "af854a3a-2127-422b-91ae-364da2661108"
},
{
"url": "http://perl5.git.perl.org/perl.git/commit/2709980d5a193ce6f3a16f0d19879a6560dcde44",
"tags": [
"Patch",
"Vendor Advisory"
],
"source": "af854a3a-2127-422b-91ae-364da2661108"
},
{
"url": "http://rhn.redhat.com/errata/RHSA-2013-0685.html",
"source": "af854a3a-2127-422b-91ae-364da2661108"
},
{
"url": "http://secunia.com/advisories/51457",
"tags": [
"Vendor Advisory"
],
"source": "af854a3a-2127-422b-91ae-364da2661108"
},
{
"url": "http://secunia.com/advisories/55314",
"source": "af854a3a-2127-422b-91ae-364da2661108"
},
{
"url": "http://www.debian.org/security/2012/dsa-2586",
"source": "af854a3a-2127-422b-91ae-364da2661108"
},
{
"url": "http://www.mandriva.com/security/advisories?name=MDVSA-2013:113",
"source": "af854a3a-2127-422b-91ae-364da2661108"
},
{
"url": "http://www.nntp.perl.org/group/perl.perl5.porters/2012/10/msg193886.html",
"source": "af854a3a-2127-422b-91ae-364da2661108"
},
{
"url": "http://www.openwall.com/lists/oss-security/2012/10/26/2",
"source": "af854a3a-2127-422b-91ae-364da2661108"
},
{
"url": "http://www.openwall.com/lists/oss-security/2012/10/27/1",
"source": "af854a3a-2127-422b-91ae-364da2661108"
},
{
"url": "http://www.oracle.com/technetwork/topics/security/ovmbulletinjul2016-3090546.html",
"source": "af854a3a-2127-422b-91ae-364da2661108"
},
{
"url": "http://www.securityfocus.com/bid/56287",
"source": "af854a3a-2127-422b-91ae-364da2661108"
},
{
"url": "http://www.ubuntu.com/usn/USN-1643-1",
"source": "af854a3a-2127-422b-91ae-364da2661108"
},
{
"url": "https://wiki.mageia.org/en/Support/Advisories/MGASA-2012-0352",
"source": "af854a3a-2127-422b-91ae-364da2661108"
}
],
"vulnStatus": "Modified",
"weaknesses": [
{
"type": "Primary",
"source": "nvd@nist.gov",
"description": [
{
"lang": "en",
"value": "CWE-119"
}
]
}
],
"descriptions": [
{
"lang": "en",
"value": "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."
},
{
"lang": "es",
"value": "Desbordamiento de bufer en memoria dinámica en la función Perl_repeatcpy en util.c en Perl v5.12.x antes de v5.12.5, v5.14.x antes de v5.14.3, y v5.15.x antes de v5.15.5 permite a atacantes dependientes de contexto provocar una denegación de servicio (consumo de memoria y caída) o posiblemente ejecutar código arbitrario mediante el operador 'x' string repeat."
}
],
"lastModified": "2026-06-16T23:46:25.057",
"configurations": [
{
"nodes": [
{
"negate": false,
"cpeMatch": [
{
"criteria": "cpe:2.3:a:perl:perl:5.12.0:*:*:*:*:*:*:*",
"vulnerable": true,
"matchCriteriaId": "9BC3F8EA-BE60-4EAB-A9B9-DB1368B5430C"
},
{
"criteria": "cpe:2.3:a:perl:perl:5.12.0:rc0:*:*:*:*:*:*",
"vulnerable": true,
"matchCriteriaId": "C0D13359-AC5F-40CB-B906-8E03526CE045"
},
{
"criteria": "cpe:2.3:a:perl:perl:5.12.0:rc1:*:*:*:*:*:*",
"vulnerable": true,
"matchCriteriaId": "A5E92FB2-7C21-4F06-AE3F-562551A758AF"
},
{
"criteria": "cpe:2.3:a:perl:perl:5.12.0:rc2:*:*:*:*:*:*",
"vulnerable": true,
"matchCriteriaId": "D213529E-33EF-43D1-A673-3C94191427D8"
},
{
"criteria": "cpe:2.3:a:perl:perl:5.12.0:rc3:*:*:*:*:*:*",
"vulnerable": true,
"matchCriteriaId": "E6539E09-4DC5-4C53-AFF1-70D06BBA9E7F"
},
{
"criteria": "cpe:2.3:a:perl:perl:5.12.0:rc4:*:*:*:*:*:*",
"vulnerable": true,
"matchCriteriaId": "52D8DF08-AE73-4529-B212-CA31F02A719E"
},
{
"criteria": "cpe:2.3:a:perl:perl:5.12.0:rc5:*:*:*:*:*:*",
"vulnerable": true,
"matchCriteriaId": "EA054FCE-FABC-4EB5-9759-F77C6F250B44"
},
{
"criteria": "cpe:2.3:a:perl:perl:5.12.1:*:*:*:*:*:*:*",
"vulnerable": true,
"matchCriteriaId": "BB5DDFC6-4EDF-452A-B561-C9115D91FB3E"
},
{
"criteria": "cpe:2.3:a:perl:perl:5.12.1:rc1:*:*:*:*:*:*",
"vulnerable": true,
"matchCriteriaId": "B1DBAB61-4BFB-4664-98CF-77C617F982A5"
},
{
"criteria": "cpe:2.3:a:perl:perl:5.12.1:rc2:*:*:*:*:*:*",
"vulnerable": true,
"matchCriteriaId": "8A7580C2-44DE-48E5-AC26-A221537C95D8"
},
{
"criteria": "cpe:2.3:a:perl:perl:5.12.2:*:*:*:*:*:*:*",
"vulnerable": true,
"matchCriteriaId": "54E04A5E-BE90-4A31-8C1D-09A91DD3E7DF"
},
{
"criteria": "cpe:2.3:a:perl:perl:5.12.2:rc1:*:*:*:*:*:*",
"vulnerable": true,
"matchCriteriaId": "1A52ADD6-05DE-4A16-9745-D92CD5F46502"
},
{
"criteria": "cpe:2.3:a:perl:perl:5.12.3:*:*:*:*:*:*:*",
"vulnerable": true,
"matchCriteriaId": "CFF99954-5B94-4092-83B9-7D17EEDB30A5"
},
{
"criteria": "cpe:2.3:a:perl:perl:5.12.3:rc1:*:*:*:*:*:*",
"vulnerable": true,
"matchCriteriaId": "38A25AC3-1C81-4234-8B7E-0D59EA1F103B"
},
{
"criteria": "cpe:2.3:a:perl:perl:5.12.3:rc2:*:*:*:*:*:*",
"vulnerable": true,
"matchCriteriaId": "93E670B7-6956-4A13-A2A8-F675C0B093FC"
},
{
"criteria": "cpe:2.3:a:perl:perl:5.12.3:rc3:*:*:*:*:*:*",
"vulnerable": true,
"matchCriteriaId": "23F1C64E-1446-409D-9F53-1C03724A10E1"
},
{
"criteria": "cpe:2.3:a:perl:perl:5.12.4:*:*:*:*:*:*:*",
"vulnerable": true,
"matchCriteriaId": "7A8E8FCF-4358-42D9-8C04-EBF78CC21583"
},
{
"criteria": "cpe:2.3:a:perl:perl:5.14.0:*:*:*:*:*:*:*",
"vulnerable": true,
"matchCriteriaId": "8A968B30-8456-49C2-A9B0-6CF55CB3C7B4"
},
{
"criteria": "cpe:2.3:a:perl:perl:5.14.0:rc1:*:*:*:*:*:*",
"vulnerable": true,
"matchCriteriaId": "66BF9787-C734-43DA-B8BF-FF6D6F4E802A"
},
{
"criteria": "cpe:2.3:a:perl:perl:5.14.0:rc2:*:*:*:*:*:*",
"vulnerable": true,
"matchCriteriaId": "D94BF151-572F-4C50-8E47-9B8BCDD16A77"
},
{
"criteria": "cpe:2.3:a:perl:perl:5.14.0:rc3:*:*:*:*:*:*",
"vulnerable": true,
"matchCriteriaId": "5114F054-E5AF-4905-83DD-459E1D56B5DE"
},
{
"criteria": "cpe:2.3:a:perl:perl:5.14.1:*:*:*:*:*:*:*",
"vulnerable": true,
"matchCriteriaId": "91B91435-67DA-49E1-A37F-7839728F17BC"
},
{
"criteria": "cpe:2.3:a:perl:perl:5.14.2:*:*:*:*:*:*:*",
"vulnerable": true,
"matchCriteriaId": "851028B9-65A4-4A4F-9C40-930B0B9A8797"
}
],
"operator": "OR"
}
]
}
],
"sourceIdentifier": "cve@mitre.org"
}