Loading...
Skip to main content

CVE-2018-25032

HIGH

Nokogiri affected by zlib's Out-of-bounds Write vulnerability

Published March 26, 2022Updated February 4, 2026Source: osv

Summary

zlib 1.2.11 allows memory corruption when deflating (i.e., when compressing) if the input has many distant matches.

Remediation

Upgrade to the fixed version using your package manager.

Bundler
Update nokogiri to 1.13.4 or later
gem install nokogiri -v 1.13.4

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (1)

PackageEcosystemAffectedFixed In
nokogiri
rubygems
1.0.0, 1.0.1, 1.0.2, 1.0.3 (+139 more)1.13.4

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

  • CWE-787
    Out-of-bounds WriteMITRE

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 7.5 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

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

References

Frequently Asked Questions

What is CVE-2018-25032?
Nokogiri affected by zlib's Out-of-bounds Write vulnerability This vulnerability has been assigned a severity rating of HIGH (CVSS score: 7.5/10).
How do I check if my project is affected by CVE-2018-25032?
CVE-2018-25032 affects nokogiri. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2018-25032 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
7.5

High exploitability or significant impact. Prioritize remediation within days.

Also Known As

GHSA-jc36-42cf-vqwj
PSF-2022-3

Related CVEs

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies