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
Debian Linux
openEuler
gnulib (Debian package)
gnulib
gnulib-debugsource
gnulib-help
gnulib-debuginfo
gnulib-devel
enscript-debuginfo
enscript-help
enscript-debugsource
enscript
coreutils

How to mitigate CVE-2018-17942

Install update from vendor's website.

gnulib (Debian package) - update to 20140202+stable-2+deb8u1
gnulib - update to 0-29.20180720git
gnulib-debugsource - update to 0-29.20180720git
gnulib-help - update to 0-29.20180720git
gnulib-debuginfo - update to 0-29.20180720git
gnulib-devel - 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-debuginfo - update to 1.6.6-22
enscript-help - update to 1.6.6-22
enscript-debugsource - 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