#VU32067 Heap-based buffer overflow in Perl - CVE-2017-12837


| Updated: 2022-12-21

Vulnerability identifier: #VU32067

Vulnerability risk: High

CVSSv4.0: 8.1 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Amber]

CVE-ID: CVE-2017-12837

CWE-ID: CWE-122

Exploitation vector: Network

Exploit availability: No

Vulnerable software:
Perl
Universal components / Libraries / Scripting languages

Vendor: Perl

Description

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists due to a boundary error in the S_regatom function in regcomp.c in Perl 5 before 5.24.3-RC1 and 5.26.x before 5.26.1-RC1. A remote attacker can use a regular expression with a to trigger heap-based buffer overflow and execute arbitrary code on the target system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.

Mitigation
Install update from vendor's website.

Vulnerable software versions

Perl: 0.5 - 0.95, 1.45, 2.5.0 - 2.5.1, 2.6.5, 2.8.5, 2.10.5 - 2.15.1, 5.003, 5.4 - 5.4.5, 5.005, 5.5 - 5.5.3, 5.6 - 5.6.2, 5.8.0 - 5.8.10, 5.9.2, 5.10 - 5.10.1, 5.11.0 - 5.11.5, 5.12.0 - 5.12.3, 5.13.0 - 5.13.11, 5.14.0 - 5.14.1, 5.15, 5.16, 5.18.4, 5.22.2-1, 5.23.0 - 5.23.9, 5.24.0 - 5.24.1, 5.26.0 - 5.26.2, 5.28.0 - 5.28.1, 5.30.0 - 5.30.3


External links
https://www.debian.org/security/2017/dsa-3982
https://www.securityfocus.com/bid/100860
https://bugzilla.redhat.com/show_bug.cgi?id=1492091
https://perl5.git.perl.org/perl.git/commitdiff/96c83ed78aeea1a0496dd2b2d935869a822dc8a5
https://perl5.git.perl.org/perl.git/log/refs/tags/v5.24.3-RC1
https://perl5.git.perl.org/perl.git/log/refs/tags/v5.26.1-RC1
https://rt.perl.org/Public/Bug/Display.html?id=131582
https://security.netapp.com/advisory/ntap-20180426-0001/
https://www.oracle.com/security-alerts/cpujul2020.html


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.


Latest bulletins with this vulnerability