Heap-based buffer overflow in Perl - CVE-2018-6797
Published: April 16, 2018 / Updated: April 16, 2018
Vulnerability identifier: #VU11833
CSH Severity: Low
CVSS v4: 8.5 [CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2018-6797
CWE-ID: CWE-122
Exploitation vector: Local access
Exploit availability:
No public exploit available
Vulnerability details
The vulnerability allows a local attacker to cause DoS condition or execute arbitrary code on the target system.
The weakness exists in S_regatom() in 'regcomp.c' due to heap-based buffer overflow. A local attacker can exploit a specially crafted regular expression, trigger memory corruption and cause the service to crash or run Perl code.
Successful exploitation of the vulnerability may result in system compromise.
The weakness exists in S_regatom() in 'regcomp.c' due to heap-based buffer overflow. A local attacker can exploit a specially crafted regular expression, trigger memory corruption and cause the service to crash or run Perl code.
Successful exploitation of the vulnerability may result in system compromise.
Affected software
Perl
Debian Linux
Gentoo Linux
Red Hat Enterprise Linux for x86_64
macOS
Ubuntu
Fedora
perl (Alpine package)
perl (Ubuntu package)
perl
perl-Module-CoreList
Debian Linux
Gentoo Linux
Red Hat Enterprise Linux for x86_64
macOS
Ubuntu
Fedora
perl (Alpine package)
perl (Ubuntu package)
perl
perl-Module-CoreList
How to mitigate CVE-2018-6797
Update to version 5.26.2.
perl (Alpine package) - update to 5.24.4-r0
perl (Ubuntu package) - addressed in versions 5.18.2-2ubuntu1.4, 5.22.1-9ubuntu0.3, 5.26.0-8ubuntu1.1
perl - addressed in versions 5.24.4-397.fc26, 5.26.2-404.fc27, 5.26.2-410.fc28
perl-Module-CoreList - addressed in versions 5.20180414-1.fc26, 5.20180414-1.fc27
perl (Ubuntu package) - addressed in versions 5.18.2-2ubuntu1.4, 5.22.1-9ubuntu0.3, 5.26.0-8ubuntu1.1
perl - addressed in versions 5.24.4-397.fc26, 5.26.2-404.fc27, 5.26.2-410.fc28
perl-Module-CoreList - addressed in versions 5.20180414-1.fc26, 5.20180414-1.fc27
External References
Related Security Bulletins
- Debian update for perl
- Red Hat update for perl
- Multiple vulnerabilities in Apple MacOS
- Gentoo update for Perl
- Heap-based buffer overflow in perl (Alpine package)
- Fedora 28 update for perl
- Fedora 27 update for perl, perl-Module-CoreList
- Fedora 26 update for perl, perl-Module-CoreList
- Ubuntu update for perl