Heap-based buffer overflow in perl (Alpine package)



| Updated: 2022-12-21
Risk Medium
Patch available YES
Number of vulnerabilities 1
CVE-ID CVE-2017-12837
CWE-ID CWE-122
Exploitation vector Network
Public exploit N/A
Vulnerable software
perl (Alpine package)
Operating systems & Components / Operating system package or component

Vendor Alpine Linux Development Team

Security Bulletin

This security bulletin contains one medium risk vulnerability.

1) Heap-based buffer overflow

EUVDB-ID: #VU32067

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 - Heap-based Buffer Overflow

Exploit availability: No

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 (Alpine package): 5.10.1-r0 - 5.22.2-r0

CPE2.3 External links

https://git.alpinelinux.org/aports/commit/?id=912943c6a0b3e2801e81ecfc708bfa61d882caeb
https://git.alpinelinux.org/aports/commit/?id=b016cc93af3bf95f617ec73a5e75228aed3235fc
https://git.alpinelinux.org/aports/commit/?id=bbc6185fa840cf1ceda1ac42aeae5bef8eb65357
https://git.alpinelinux.org/aports/commit/?id=cd0cf727fceef7bea9e79276c4511ec704e6143b
https://git.alpinelinux.org/aports/commit/?id=219509798de8a60027c708a1f8884a6885e73471
https://git.alpinelinux.org/aports/commit/?id=c088ac63d28d02d8ccd2a846809f5e00515fce81


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.



###SIDEBAR###