Heap-based buffer overflow in gnulib - CVE-2018-17942

 

Heap-based buffer overflow in gnulib - CVE-2018-17942

Published: January 17, 2025


Vulnerability identifier: #VU102962
CSH Severity: High
CVSS v4: 8.6 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2018-17942
CWE-ID: CWE-122
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

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

The vulnerability exists due to a boundary error within the convert_to_decimal function in vasnprintf.c. A remote attacker can trigger a 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.


Affected software

gnulib
Fedora
openEuler
gnulib-devel
gnulib-debuginfo
gnulib-help
gnulib-debugsource
gnulib
enscript-help
enscript-debugsource
enscript-debuginfo
enscript
coreutils

How to mitigate CVE-2018-17942

Install update from vendor's website.

gnulib-devel - update to 0-29.20180720git
gnulib-debuginfo - update to 0-29.20180720git
gnulib-help - update to 0-29.20180720git
gnulib-debugsource - update to 0-29.20180720git
gnulib - update to 0-29.20180720git
gnulib - addressed in versions 0-31.20200107git.el7, 0-31.20200107git.el8, 0-31.20200107git.fc30, 0-31.20200107git.fc31
enscript-help - update to 1.6.6-22
enscript-debugsource - update to 1.6.6-22
enscript-debuginfo - update to 1.6.6-22
enscript - update to 1.6.6-22
coreutils - update to 8.30-5.fc29

External References

Related Security Bulletins