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
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
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
- 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
Related Security Bulletins
- Remote code execution in Gnulib
- openEuler update for enscript
- Fedora 29 update for coreutils
- openEuler update for gnulib
- openEuler 22.03 LTS update for gnulib
- Fedora 30 update for gnulib
- Fedora 31 update for gnulib
- Fedora EPEL 8 update for gnulib
- Fedora EPEL 7 update for gnulib
- Debian update for gnulib