CVE & CISA-KEV Catalog

CVE-2018-8778

HIGHEPSS 94th pctl
7.5
CVSS v3
NVD

Description

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.

How to fix

Remediation Available
libruby1.9.1Ubuntu
Fixed in:1.9.3.484-2ubuntu1.11USN-3626-1
libruby2.0Ubuntu
Fixed in:2.0.0.484-1ubuntu2.9USN-3626-1
libruby2.3Ubuntu
Fixed in:2.3.1-2~16.04.9USN-3626-1
ruby1.9.1Ubuntu
Fixed in:1.9.3.484-2ubuntu1.11USN-3626-1
ruby1.9.3Ubuntu
Fixed in:1.9.3.484-2ubuntu1.11USN-3626-1
ruby2.0Ubuntu
Fixed in:2.0.0.484-1ubuntu2.9USN-3626-1
ruby2.3Ubuntu
Fixed in:2.3.1-2~16.04.9USN-3626-1
Ruby 3.0Windows application
Affected:2.5.0 2.5.1Fixed in:2.5.1RubyInstaller Team
Affected:2.4.0 2.4.4Fixed in:2.4.4RubyInstaller Team
Affected:2.3.0 2.3.7Fixed in:2.3.7RubyInstaller Team
Affected:2.2.0 2.2.10Fixed in:2.2.10RubyInstaller Team
Ruby 3.1Windows application
Affected:2.3.0 2.3.7Fixed in:2.3.7RubyInstaller Team
Affected:2.2.0 2.2.10Fixed in:2.2.10RubyInstaller Team
Affected:2.4.0 2.4.4Fixed in:2.4.4RubyInstaller Team
Affected:2.5.0 2.5.1Fixed in:2.5.1RubyInstaller Team
Ruby 3.2Windows application
Affected:2.3.0 2.3.7Fixed in:2.3.7RubyInstaller Team
Affected:2.4.0 2.4.4Fixed in:2.4.4RubyInstaller Team
Affected:2.5.0 2.5.1Fixed in:2.5.1RubyInstaller Team
Affected:2.2.0 2.2.10Fixed in:2.2.10RubyInstaller Team
Ruby 3.2 with MSYS2Windows application
Affected:2.4.0 2.4.4Fixed in:2.4.4RubyInstaller Team
Affected:2.2.0 2.2.10Fixed in:2.2.10RubyInstaller Team
Affected:2.5.0 2.5.1Fixed in:2.5.1RubyInstaller Team
Affected:2.3.0 2.3.7Fixed in:2.3.7RubyInstaller Team
Ruby 3.3Windows application
Affected:2.5.0 2.5.1Fixed in:2.5.1RubyInstaller Team
Affected:2.4.0 2.4.4Fixed in:2.4.4RubyInstaller Team
Affected:2.3.0 2.3.7Fixed in:2.3.7RubyInstaller Team
Affected:2.2.0 2.2.10Fixed in:2.2.10RubyInstaller Team
Ruby 3.3 with MSYS2Windows application
Affected:2.2.0 2.2.10Fixed in:2.2.10RubyInstaller Team
Affected:2.5.0 2.5.1Fixed in:2.5.1RubyInstaller Team
Affected:2.4.0 2.4.4Fixed in:2.4.4RubyInstaller Team
Affected:2.3.0 2.3.7Fixed in:2.3.7RubyInstaller Team

TridentStack Control can deploy fixes like this automatically across your Windows, macOS, and Linux fleet. See how it works

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorNetwork
Attack ComplexityLow
Privileges RequiredNone
User InteractionNone
ScopeUnchanged

Impact

ConfidentialityHigh
IntegrityNone
AvailabilityNone

CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Exploit Intelligence

7.67%probability of exploitation in 30 days
94thpercentile

High risk: more likely to be exploited than 94% of all known CVEs.

References

Related Vulnerabilities

Other CWE-134 vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2020-13160Critical9.881%-Fix
CVE-2023-22374High8.573%--
CVE-2012-1851High10.066%--
CVE-2024-23113Critical9.862%KEV-
CVE-2012-3569High9.348%--
CVE-2019-1579High8.146%KEV + RansomFix

Common questions

How do I fix CVE-2018-8778?

Published advisories record a fix for 13 affected products. The "How to fix" section on this page lists the fixed version and source advisory for each one, so apply the entry matching what you actually run.

Is CVE-2018-8778 being actively exploited?

Not that we know of. CVE-2018-8778 is not in the CISA Known Exploited Vulnerabilities catalog. Its EPSS score of 7.7% is the estimated probability that it will be exploited in the next 30 days. That is higher than 94% of all scored CVEs.

How severe is CVE-2018-8778?

CVE-2018-8778 has a CVSS v3 base score of 7.5, rated high. CVSS rates the technical impact if the vulnerability is exploited, not how likely that is, so weigh it alongside the exploit-prediction score when you decide what to patch first.

What does CVE-2018-8778 affect?

Published advisories record a fix for libruby1.9.1 (Ubuntu), libruby2.0 (Ubuntu), libruby2.3 (Ubuntu), ruby1.9.1 (Ubuntu), and 9 more. Only products with a sourced advisory are listed, so treat this as what we can cite rather than a complete inventory.

Embed a live status badge for CVE-2018-8778
CVE-2018-8778 severity badge

Markdown

[![CVE-2018-8778](https://tridentstack.com/cve/badge/CVE-2018-8778.svg)](https://tridentstack.com/cve/CVE-2018-8778)

HTML

<a href="https://tridentstack.com/cve/CVE-2018-8778"><img src="https://tridentstack.com/cve/badge/CVE-2018-8778.svg" alt="CVE-2018-8778"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

See how it worksStart freeThis CVE lookup is free and always will be.

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2024-11-21.