Home / Nokogiri / Nokogiri / CVE-2018-25032
CVE-2018-25032: is it exploited, and which versions of Nokogiri are affected and fixed?
CVE-2018-25032 is an out-of-bounds write (memory corruption) vulnerability in Nokogiri. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 09:08 UTC). Affected: nokogiri before 1.13.4 (GitHub advisory GHSA-jc36-42cf-vqwj). Fixed in 1.13.4 (GitHub advisory GHSA-jc36-42cf-vqwj). Severity: High (7.5, CVSS 3.1, from CISA-ADP).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 09:08 UTC, CVE record November 19, 2026, 07:17 UTC and NVD November 19, 2026, 07:49 UTC.
What is CVE-2018-25032?
zlib before 1.2.12 allows memory corruption when deflating (i.e., when compressing) if the input has many distant matches.
From the CVE record by mitre, last updated October 14, 2026, 06:35 UTC.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| RubyGems | nokogiri | < 1.13.4 | 1.13.4 | GHSA-jc36-42cf-vqwj |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated June 23, 2023. Summary: Nokogiri affected by zlib's Out-of-bounds Write vulnerability.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| nokogiri | nokogiri | before 1.13.4 | application |
| python | python | from 3.7.0 before 3.7.14 | application |
| python | python | from 3.8.0 before 3.8.14 | application |
| python | python | from 3.9.0 before 3.9.13 | application |
| python | python | from 3.10.0 before 3.10.5 | application |
| zlib | zlib | from 1.2.2.2 before 1.2.12 | application |
| debian | debian linux | 9.0 | operating system |
| debian | debian linux | 10.0 | operating system |
| debian | debian linux | 11.0 | operating system |
| fedoraproject | fedora | 34 | operating system |
| fedoraproject | fedora | 35 | operating system |
| fedoraproject | fedora | 36 | operating system |
| apple | mac os x | from 10.15 before 10.15.7 | operating system |
| apple | mac os x | 10.15.7 | operating system |
| apple | macos | from 11.0 before 11.6.6 | operating system |
| apple | macos | from 12.0.0 before 12.4 | operating system |
| mariadb | mariadb | from 10.3.0 before 10.3.36 | application |
| mariadb | mariadb | from 10.4.0 before 10.4.26 | application |
| mariadb | mariadb | from 10.5.0 before 10.5.17 | application |
| mariadb | mariadb | from 10.6.0 before 10.6.9 | application |
| mariadb | mariadb | from 10.7.0 before 10.7.5 | application |
| mariadb | mariadb | from 10.8.0 before 10.8.4 | application |
| mariadb | mariadb | from 10.9.0 before 10.9.2 | application |
| netapp | active iq unified manager | all versions | application |
| netapp | e-series santricity os controller | from 11.0.0 through 11.70.2 | application |
NVD analysis (status Modified), last modified October 14, 2026, 07:16 UTC.
How severe is CVE-2018-25032?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 7.5 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H | CISA-ADP |
| High 7.5 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H | NVD |
| Medium 5.0 | CVSS 2.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2018-25032 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: poc; automatable: yes; technical impact: partial (CISA ADP, April 23, 2025)
- EPSS
- 51.7% probability of exploitation activity in the next 30 days, percentile 99.0 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-787 Out-of-bounds Write
Where are the vendor advisories and references?
- https://www.openwall.com/lists/oss-security/2022/03/24/1
- https://github.com/madler/zlib/commit/5c44459c3b28a9bd3283aaceab7c615f8020c531
- [oss-security] 20220325 Re: zlib memory corruption on deflate (i.e. compress) mailing-list
- [oss-security] 20220326 Re: zlib memory corruption on deflate (i.e. compress) mailing-list
- DSA-5111 vendor-advisory
- [debian-lts-announce] 20220402 [SECURITY] [DLA 2968-1] zlib security update mailing-list
- FEDORA-2022-413a80a102 vendor-advisory
- FEDORA-2022-dbd2935e44 vendor-advisory
- FEDORA-2022-12b89e2aad vendor-advisory
- [debian-lts-announce] 20220507 [SECURITY] [DLA 2993-1] libz-mingw-w64 security update mailing-list
- 20220516 APPLE-SA-2022-05-16-4 Security Update 2022-004 Catalina mailing-list
- 20220516 APPLE-SA-2022-05-16-3 macOS Big Sur 11.6.6 mailing-list
- 20220516 APPLE-SA-2022-05-16-2 macOS Monterey 12.4 mailing-list
- FEDORA-2022-61cf1c64f6 vendor-advisory
- https://www.oracle.com/security-alerts/cpujul2022.html
- https://www.openwall.com/lists/oss-security/2022/03/28/3
- https://www.openwall.com/lists/oss-security/2022/03/28/1
- https://github.com/madler/zlib/compare/v1.2.11...v1.2.12
- https://github.com/madler/zlib/issues/605
- https://support.apple.com/kb/HT213257
- https://support.apple.com/kb/HT213256
- https://support.apple.com/kb/HT213255
- https://security.netapp.com/advisory/ntap-20220526-0009/
- https://security.netapp.com/advisory/ntap-20220729-0004/
- FEDORA-2022-3a92250fd5 vendor-advisory
- FEDORA-2022-b58a85e167 vendor-advisory
- [debian-lts-announce] 20220916 [SECURITY] [DLA 3114-1] mariadb-10.3 security update mailing-list
- GLSA-202210-42 vendor-advisory
- https://cert-portal.siemens.com/productcert/pdf/ssa-333517.pdf
- https://cert-portal.siemens.com/productcert/html/ssa-333517.html
- https://cert-portal.siemens.com/productcert/html/ssa-419740.html
- https://cert-portal.siemens.com/productcert/html/ssa-565386.html
- https://cert-portal.siemens.com/productcert/html/ssa-942865.html
- https://cert-portal.siemens.com/productcert/html/ssa-398330.html
- https://cert-portal.siemens.com/productcert/html/ssa-470355.html
When was it published, and where is the official record?
- Reserved
- March 25, 2022
- Published
- March 25, 2022, 00:00 UTC
- CVE record updated
- October 14, 2026, 06:35 UTC by mitre
- NVD
- Modified, last modified October 14, 2026, 07:16 UTC
- Last checked
- CVE list November 19, 2026, 07:17 UTC; NVD November 19, 2026, 07:49 UTC; KEV December 3, 2026, 09:08 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect Nokogiri?
- Feb 19, 2020CVE-2012-6685 Nokogiri: XML entity expansion (billion laughs)
Questions about CVE-2018-25032
Is CVE-2018-25032 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 09:08 UTC. FIRST's EPSS gives it a 51.7% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of Nokogiri are affected by CVE-2018-25032?
nokogiri before 1.13.4, per the GitHub advisory GHSA-jc36-42cf-vqwj. The tables above give every range the sources list.
Which version fixes CVE-2018-25032?
1.13.4, per the GitHub advisory GHSA-jc36-42cf-vqwj. Check the vendor's advisory before you rely on it.
How severe is CVE-2018-25032?
High (7.5, CVSS 3.1, from CISA-ADP). The severity table above shows each score with its source.
Where is the official record of CVE-2018-25032?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.