CVE-2018-17942
The convert_to_decimal function in vasnprintf.c in Gnulib before 2018-09-23 has a heap-based...
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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- Required
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
8.8
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.
- Record
CVE-2018-17942- CVSS 3.0
- 8.8 High
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - CVSS 2.0
- 6.8 Medium
AV:N/AC:M/Au:N/C:P/I:P/A:P - Weakness
- CWE-787
- Updated
- 2026-11-02
CVE List No score
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.
- Record
CVE-2018-17942- Updated
- 2026-11-02
EUVDEUVD-2018-9683 No score
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.
- Record
EUVD-2018-9683- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-xwh4-p62h-wq65
8.8
The convert_to_decimal function in vasnprintf.c in Gnulib before 2018-09-23 has a heap-based...
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.
- Record
GHSA-xwh4-p62h-wq65- CVSS 3.0
- 8.8 High
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Weakness
- CWE-787
- Updated
- 2026-11-02
OSV
8.8
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.
- Record
CVE-2018-17942- CVSS 3.0
- 8.8 High
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVDEBIAN-CVE-2018-17942
8.8
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.
- Record
DEBIAN-CVE-2018-17942- CVSS 3.0
- 8.8 High
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
Show 5 moreShow less
OSVOESA-2022-1558
8.8
gnulib security update
Gnulib is a central location for common GNU code, intended to be shared among GNU packages. It can be used to improve portability and other functionality in your programs.
Security Fix(es):
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.(CVE-2018-17942)
- Record
OESA-2022-1558- CVSS 3.1
- 8.8 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVOESA-2022-2089
8.8
gnulib security update
Gnulib is a central location for common GNU code, intended to be shared among GNU packages. It can be used to improve portability and other functionality in your programs.
Security Fix(es):
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.(CVE-2018-17942)
- Record
OESA-2022-2089- CVSS 3.1
- 8.8 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVOESA-2025-1051
8.8
enscript security update
GNU enscript is a computer program that converts text files to PostScript, RTF, or HTML formats. If no input files are given, enscript processes standard input. Enscript can be extended to handle different output media and it has many options which can be used to customize print-outs.
Security Fix(es):
(CVE-2018-17942)
- Record
OESA-2025-1051- CVSS 3.1
- 8.8 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVUBUNTU-CVE-2018-17942
8.8
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.
- Record
UBUNTU-CVE-2018-17942- CVSS 3.0
- 8.8 High
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVMGASA-2019-0022 No score
Updated coreutils packages fix security vulnerabilities
A flaw was found in GNU Coreutils through 8.29 in chown-core.c. The functions chown and chgrp do not prevent replacement of a plain file with a symlink during use of the POSIX "-R -L" options, which allows local users to modify the ownership of arbitrary files by leveraging a race condition (CVE-2017-18018).
A flaw was found in Gnulib before 2018-09-23. The convert_to_decimal function in vasnprintf.c has a heap-based buffer overflow because memory is not allocated for a trailing '\0' character during %f processing (CVE-2018-17942).
- Record
MGASA-2019-0022- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
gnulibDebian:12 |
before 20140202+stable-3.1 | 20140202+stable-3.1 |
gnulibDebian:13 |
before 20140202+stable-3.1 | 20140202+stable-3.1 |
gnulibDebian:14 |
before 20140202+stable-3.1 | 20140202+stable-3.1 |
gnulibDebian:8 |
before 20140202+stable-2+deb8u1, plus listed versions 20140202+stable-2 |
20140202+stable-2+deb8u1 |
coreutilsMageia:6 |
before 8.25-3.1.mga6 | 8.25-3.1.mga6 |
gnulibopenEuler:20.03-LTS-SP1 |
before 0-29.20180720git.oe1 | 0-29.20180720git.oe1 |
gnulibopenEuler:20.03-LTS-SP2 |
before 0-29.20180720git.oe1 | 0-29.20180720git.oe1 |
gnulibopenEuler:20.03-LTS-SP3 |
before 0-29.20180720git.oe1 | 0-29.20180720git.oe1 |
gnulibopenEuler:22.03-LTS |
before 0-29.20180720git.oe2203 | 0-29.20180720git.oe2203 |
enscriptopenEuler:22.03-LTS-SP3 |
before 1.6.6-22.oe2203sp3 | 1.6.6-22.oe2203sp3 |
Show 6 moreShow less
| Package | Affected | Fixed |
|---|---|---|
enscriptopenEuler:20.03-LTS-SP4 |
before 1.6.6-22.oe2003sp4 | 1.6.6-22.oe2003sp4 |
enscriptopenEuler:24.03-LTS |
before 1.6.6-22.oe2403sp1 | 1.6.6-22.oe2403sp1 |
enscriptopenEuler:22.03-LTS-SP4 |
before 1.6.6-22.oe2203sp4 | 1.6.6-22.oe2203sp4 |
enscriptopenEuler:24.03-LTS-SP1 |
before 1.6.6-22.oe2403sp1 | 1.6.6-22.oe2403sp1 |
gnulibUbuntu:16.04:LTS |
before 20140202+stable-2+deb8u1build0.16.04.1, plus listed versions 20140202+stable-2 |
20140202+stable-2+deb8u1build0.16.04.1 |
gnulibUbuntu:18.04:LTS |
before 20140202+stable-2+deb8u1build0.18.04.1, plus listed versions 20140202+stable-220140202+stable-2build1 |
20140202+stable-2+deb8u1build0.18.04.1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2018-17942 is a high vulnerability (CVSS 8.8) in Gnu Gnulib, published October 3, 2018. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 2.49%, the 84th percentile. Fixed in gnulib 20140202+stable-3.1.
References
github.com/coreutils/gnulib/commit/278b4175c9d7dd47c1a3071554aac02add3b3c35
savannah.gnu.org/bugs?func=detailitem&item_id=54686
lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00107.html
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/A5UQRNQE6XHMD5UYYHAU3VQWAYHIPMQS
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TMGHTVYH3KAFN34QXNSGEQDSTV7MCOQW
nvd.nist.gov/vuln/detail/CVE-2018-17942
Show 14 moreShow less
lists.fedoraproject.org/archives/list/[email protected]/message/A5UQRNQE6XHMD5UYYHAU3VQWAYHIPMQS
lists.fedoraproject.org/archives/list/[email protected]/message/TMGHTVYH3KAFN34QXNSGEQDSTV7MCOQW
github.com/advisories/GHSA-xwh4-p62h-wq65
security-tracker.debian.org/tracker/CVE-2018-17942
advisories.mageia.org/MGASA-2019-0022.html
bugs.mageia.org/show_bug.cgi?id=23825
lists.fedoraproject.org/archives/list/[email protected]/thread/JK2ISMPYUEU3JS3L7AVXEHWCI56INCJJ
lists.fedoraproject.org/archives/list/[email protected]/thread/4ZP6L5HXDOVKYTM5ELLYE64H75MT4LZR
bugs.mageia.org/show_bug.cgi?id=22495
openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2022-1558
openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2022-2089
openeuler.org/zh/security/security-bulletins/detail?id=openEuler-SA-2025-1051
ubuntu.com/security/CVE-2018-17942
cve.org/CVERecord?id=CVE-2018-17942