Every CVE Search/ Get API key

CVE-2018-17942

The convert_to_decimal function in vasnprintf.c in Gnulib before 2018-09-23 has a heap-based...

8.8 HighFix available

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

2.49%Up 1.2 points since Apr 14, 2021
90%50%10%1%

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 HighCVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
CVSS 2.0
6.8 MediumAV: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 HighCVSS: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 HighCVSS: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 HighCVSS: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 HighCVSS: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 HighCVSS: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 HighCVSS: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 HighCVSS: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

Affected packages
PackageAffectedFixed
gnulib
Debian:12
before 20140202+stable-3.1
20140202+stable-3.1
gnulib
Debian:13
before 20140202+stable-3.1
20140202+stable-3.1
gnulib
Debian:14
before 20140202+stable-3.1
20140202+stable-3.1
gnulib
Debian:8
before 20140202+stable-2+deb8u1, plus listed versions
20140202+stable-2
20140202+stable-2+deb8u1
coreutils
Mageia:6
before 8.25-3.1.mga6
8.25-3.1.mga6
gnulib
openEuler:20.03-LTS-SP1
before 0-29.20180720git.oe1
0-29.20180720git.oe1
gnulib
openEuler:20.03-LTS-SP2
before 0-29.20180720git.oe1
0-29.20180720git.oe1
gnulib
openEuler:20.03-LTS-SP3
before 0-29.20180720git.oe1
0-29.20180720git.oe1
gnulib
openEuler:22.03-LTS
before 0-29.20180720git.oe2203
0-29.20180720git.oe2203
enscript
openEuler:22.03-LTS-SP3
before 1.6.6-22.oe2203sp3
1.6.6-22.oe2203sp3
Show 6 moreShow less
Affected packages
PackageAffectedFixed
enscript
openEuler:20.03-LTS-SP4
before 1.6.6-22.oe2003sp4
1.6.6-22.oe2003sp4
enscript
openEuler:24.03-LTS
before 1.6.6-22.oe2403sp1
1.6.6-22.oe2403sp1
enscript
openEuler:22.03-LTS-SP4
before 1.6.6-22.oe2203sp4
1.6.6-22.oe2203sp4
enscript
openEuler:24.03-LTS-SP1
before 1.6.6-22.oe2403sp1
1.6.6-22.oe2403sp1
gnulib
Ubuntu:16.04:LTS
before 20140202+stable-2+deb8u1build0.16.04.1, plus listed versions
20140202+stable-2
20140202+stable-2+deb8u1build0.16.04.1
gnulib
Ubuntu: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

History
RecordedChangedSources
aliasesEUVD
first indexedCVE 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

Show 14 moreShow less
MoveEnter Open