What’s Vulnerable › Vulnerabilities
CVE-2018-17942
- Severity: high (CVSS 8.8 v3.0)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 2.5% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2018-10-03 · updated 2026-06-17
- Weakness: CWE-787
Description
The convert_to_decimal function in vasnprintf.c in Gnulib before 2018-09-23 has a heap-based buffer overflow because memory is not allocated for a trailing '\0' character during %f processing.
Affected products
- Gnulib: before 2018-09-23 — fixed in 2018-09-23
How to fix
Upgrade to a fixed version: Gnulib 2018-09-23. Check the vendor advisory for mitigations.
References
- https://github.com/coreutils/gnulib/commit/278b4175c9d7dd47c1a3071554aac02add3b3c35
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/A5UQRNQE6XHMD5UYYHAU3VQWAYHIPMQS/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.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
- https://github.com/coreutils/gnulib/commit/278b4175c9d7dd47c1a3071554aac02add3b3c35
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/A5UQRNQE6XHMD5UYYHAU3VQWAYHIPMQS/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.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
Get alerted when CVE-2018-17942 or the next vulnerability affects your stack