Heap-based buffer overflow in gnulib - CVE-2018-17942
Published: January 17, 2025
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
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
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
- https://github.com/coreutils/gnulib/commit/278b4175c9d7dd47c1a3071554aac02add3b3c35
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/A5UQRNQE6XHMD5UYYHAU3VQWAYHIPMQS/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TMGHTVYH3KAFN34QXNSGEQDSTV7MCOQW/
- https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00107.html
- https://savannah.gnu.org/bugs/?func=detailitem&item_id=54686