Skip to main content
No exploitation reportedFix available

CVE-2018-17942

No exploitation reported by the sources we read.

  • Published2018-10-03
  • Fixed in2018-09-23
  • WeaknessCWE-787

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

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.

Timeline

dates in UTC
  1. 2018-10-0308:29CVE publishedNVD

Versions per branch

NVD
Gnu gnulib
BranchAffectedFixed in
2018.x< 2018-09-232018-09-23

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • coreutilsMageia:6all versions · fixed in 8.25-3.1.mga6
  • enscriptopenEuler:24.03-LTS-SP1all versions · fixed in 1.6.6-22.oe2403sp1
  • enscriptopenEuler:24.03-LTSall versions · fixed in 1.6.6-22.oe2403sp1
  • enscriptopenEuler:22.03-LTS-SP4all versions · fixed in 1.6.6-22.oe2203sp4
  • enscriptopenEuler:22.03-LTS-SP3all versions · fixed in 1.6.6-22.oe2203sp3
  • enscriptopenEuler:20.03-LTS-SP4all versions · fixed in 1.6.6-22.oe2003sp4
  • gnulibUbuntu:18.04:LTSall versions · fixed in 20140202+stable-2+deb8u1build0.18.04.1
  • gnulibUbuntu:16.04:LTSall versions · fixed in 20140202+stable-2+deb8u1build0.16.04.1

8 more package ranges on OSV.dev

Vendor advisories

  • CVE-2018-17942 Red Hat Product Security6 known affected

    gnulib: heap-based buffer overflow in convert_to_decimal function in vasnprintf.c

    nagios-plugins as a component of Red Hat Storage 3 · nagios-plugins-dummy as a component of Red Hat Storage 3 · nagios-plugins-ide_smart as a component of Red Hat Storage 3 · +3 more

Full record on NVD

Fix

  1. Update Gnu gnulib to 2018-09-23
  2. No fix available, says the vendor Red Hat Product Security CVE-2018-17942 · 6 productsFix deferred

Advisories and patches

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

Identifiers

  • EUVD-2018-9683same flawENISA EUVD · LicenseRef-ENISA-legal-notice
  • GHSA-xwh4-p62h-wq65same flawGitHub Advisory Database · CC-BY-4.0
  • DLA-1543-1advisory covering several CVEsDebian · LicenseRef-unstated
  • MGASA-2019-0022advisory covering several CVEsMageia · LicenseRef-unstated
  • OESA-2022-1558advisory covering several CVEsopenEuler · LicenseRef-unstated
  • OESA-2022-2089advisory covering several CVEsopenEuler · LicenseRef-unstated
  • OESA-2025-1051advisory covering several CVEsopenEuler · LicenseRef-unstated

Technical details

CVSS v3 vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Published
2018-10-03
Last modified
2026-06-17
NVD status
Modified
GitHub advisory
GHSA-xwh4-p62h-wq65

Frequently asked questions

What is CVE-2018-17942?

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.

Is CVE-2018-17942 actively exploited?

Active exploitation of CVE-2018-17942 has not been confirmed. Its EPSS score was 2.9% on 2026-12-03, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2018-17942?

CVE-2018-17942 has a CVSS v3 base score of 8.8 (High severity), with vector string CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H.

Running gnulib? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website checks · 250 API requests/month

Sources for this record