VDB

CVE-2018-8778

CVE-2018-8778 PUBLISHED

Reported by mitre · Published April 3, 2018

In Ruby before 2.2.10, 2.3.x before 2.3.7, 2.4.x before 2.4.4, 2.5.x before 2.5.1, and 2.6.0-preview1, an attacker controlling the unpacking format (similar to format string vulnerabilities) can trigger a buffer under-read in the String#unpack method, resulting in a massive and controlled information disclosure.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
rubygem-io-consoleAmazon Linux0.4.2-36.amzn2.0.1
rubyAmazon Linux2.0.0.648-36.amzn2.0.1
ruby-develAmazon Linux2.0.0.648-36.amzn2.0.1
rubygem-psychAmazon Linux2.0.0-36.amzn2.0.1
rubygem-rakeAmazon Linux0.9.6-36.amzn2.0.1
ruby-tcltkAmazon Linux2.0.0.648-36.amzn2.0.1
rubygem-bigdecimalAmazon Linux1.2.0-36.amzn2.0.1
ruby-irbAmazon Linux2.0.0.648-36.amzn2.0.1
ruby-libsAmazon Linux2.0.0.648-36.amzn2.0.1
ruby-docAmazon Linux2.0.0.648-36.amzn2.0.1
rubygem-rdocAmazon Linux4.0.0-36.amzn2.0.1
rubygemsAmazon Linux2.0.14.1-36.amzn2.0.1

8 more packages have a fixed version. See every fix in Lookup.

Affected products

VendorProductVersions
n/an/an/a
amazon:2rubygem-io-console0
amazon:2ruby0
amazon:2ruby-devel0
amazon:2rubygem-psych0
amazon:2rubygem-rake0
amazon:2ruby-tcltk0
amazon:2rubygem-bigdecimal0
amazon:2ruby-irb0
amazon:2ruby-libs0
amazon:2ruby-doc0
amazon:2rubygem-rdoc0
amazon:2rubygems0
amazon:2rubygems-devel0
amazon:2rubygem-json0
alpineruby0, 0, 0
amazon:2rubygem-minitest0
n/an/a*

Timeline

  • Mar 30, 2018 PoC Published
  • Apr 3, 2018 CVE Published
  • Apr 14, 2021 EPSS Score (30 in total, the first dated here)
  • Mar 6, 2026 Distribution Patch (17 in total, the first dated here)
  • Mar 6, 2026 Security Advisory (19 in total, the first dated here)
  • Sep 18, 2026 Coalition ESS Score

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2018-8778
vulnetix vdb fixes CVE-2018-8778

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2018-8778/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›