Live threats

All CVEs / Ruby-lang

CVE-2018-8778Ruby-lang Ruby

High 7.5 No auth needed

Priority
61
CVSS 3.0
7.5
EPSS
7.5%
probability of exploitation in 30 days · percentile 95
Auth required
No
Published
Apr 3, 2018
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-134
Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Ruby.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected products (CPE)

VendorProductVersions
ruby-langruby≥ 2.2.0 < 2.2.10
ruby-langruby≥ 2.3.0 < 2.3.7
ruby-langruby≥ 2.4.0 < 2.4.4
ruby-langruby≥ 2.5.0 < 2.5.1
ruby-langruby2.6.0
canonicalubuntu_linux14.04
canonicalubuntu_linux16.04
canonicalubuntu_linux17.10
debiandebian_linux7.0
debiandebian_linux8.0
debiandebian_linux9.0
redhatenterprise_linux6.0
redhatenterprise_linux7.0
redhatenterprise_linux7.4
redhatenterprise_linux7.5
redhatenterprise_linux7.6

Official sources

References

Links published by the sources. Open them with care.