🛡️ GHSA-v6gp-9mmm-c6p5 — nokogiri (CVE-2018-25032)

🟠 CVSS 8.0 — High ✅ No Known Exploit CWE-787 OSV
8.0
CVSS Score
0 Low4 Medium7 High9 Critical10

Description

Out-of-bounds Write in zlib affects Nokogiri

Summary

Nokogiri v1.13.4 updates the vendored zlib from 1.2.11 to 1.2.12, which addresses [CVE-2018-25032](https://nvd.nist.gov/vuln/detail/CVE-2018-25032). That CVE is scored as CVSS 7.4 "High" on the NVD record as of 2022-04-05.

Please note that this advisory only applies to the CRuby implementation of Nokogiri < 1.13.4, and only if the packaged version of zlib is being used. Please see [this document](https://nokogiri.org/LICENSE-DEPENDENCIES.html#default-platform-release-ruby) for a complete description of which platform gems vendor zlib. If you've overridden defaults at installation time to use system libraries instead of packaged libraries, you should instead pay attention to your distro's zlib release announcements.

Mitigation

Upgrade to Nokogiri >= v1.13.4.

Impact

[CVE-2018-25032](https://nvd.nist.gov/vuln/detail/CVE-2018-25032) in zlib

  • Severity: High
  • Type: [CWE-787](https://cwe.mitre.org/data/definitions/787.html) Out of bounds write
  • Description: zlib before 1.2.12 allows memory corruption when deflating (i.e., when compressing) if the input has many distant matches.

How this vulnerability can be exploited

This issue can be reached over the network, attack complexity is low, an attacker needs no privileges on the target. No user interaction is required. The scope is unchanged, so the impact stays within the vulnerable component. Rated impact: confidentiality none, integrity none, availability high.

Weakness class

GHSA-v6gp-9mmm-c6p5 is classified as CWE-787: Out-of-bounds Write. Data is written past the end or before the start of a buffer, corrupting whatever is stored there.

Affected software

GHSA-v6gp-9mmm-c6p5 is recorded against 1 package.

  • nokogiri (fixed in 1.13.4)

Timeline and source

Published on 11 April 2022 and last revised on 5 December 2024. No public exploit is currently recorded for this entry. Record sourced from OSV.

References

github.com (Web)
nvd.nist.gov (Advisory)
github.com (Advisory)
github.com (Package)
github.com (Web)
groups.google.com (Web)

Details

Severity HIGH
CVSS Score 8.0
CVSS Vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CWE CWE-787
Public Exploit ✅ No
Source OSV
Published 2022-04-11
Updated 2026-08-12
Modified 2024-12-05
Fix URL N/A

Affected Packages

Software From version Fixed in
nokogiri 1.13.4

Similar Threats

Site Security Check

Is nokogiri part of your stack?

GHSA-v6gp-9mmm-c6p5 is rated CVSS 8.0 High. BotEraser scans your installation against known CVE records and tells you whether this vulnerability applies to the versions you actually run.

Scan My Site Free →

No credit card required  ·  Results in minutes

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.

Browse related advisories

All advisoriesGitHub AdvisoryGitHub Advisory Undated