cve.bz

CVE-2018-25032 Out-of-bounds Write

7.5 highExploit referenceEPSS 52%Fix available

High (7.5). EPSS 52% estimated probability of exploitation activity in the next 30 days. Fixed in nokogiri 1.13.4.

On this page
zlib before 1.2.12 allows memory corruption when deflating (i.e., when compressing) if the input has many distant matches.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
52% (unchanged from 52% a week ago; 52% 30 days ago) estimated probability of exploitation activity in the next 30 days; 99th percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: yes · Technical impact: partial, assessed 2025-04-23. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-787 Out-of-bounds Write
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2018-25032 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2018-25032?via=ask-ai-copy and https://cve.bz/cve/CVE-2018-25032?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2018-25032 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Badge for a README or a site

CVE-2018-25032

An image that stays current: it is drawn from the data each time it is fetched (a host that proxies images, as GitHub does, may show its copy for a while). Markdown:

[![CVE-2018-25032](https://cve.bz/cve/badge/CVE-2018-25032.svg)](https://cve.bz/cve/CVE-2018-25032)

HTML:

<a href="https://cve.bz/cve/CVE-2018-25032"><img src="https://cve.bz/cve/badge/CVE-2018-25032.svg" alt="CVE-2018-25032"></a>

Affected

Versions

From the NVD's CPE matches.

ProductAffected
nokogiri:nokogiribefore 1.13.4
python:pythonfrom 3.7.0 before 3.7.14
python:pythonfrom 3.8.0 before 3.8.14
python:pythonfrom 3.9.0 before 3.9.13
python:pythonfrom 3.10.0 before 3.10.5
zlib:zlibfrom 1.2.2.2 before 1.2.12
debian:debian_linux9.0
debian:debian_linux10.0
debian:debian_linux11.0
fedoraproject:fedora34
fedoraproject:fedora35
fedoraproject:fedora36
apple:mac_os_xfrom 10.15 before 10.15.7
apple:mac_os_x10.15.7
apple:mac_os_x10.15.7:security_update_2020
apple:mac_os_x10.15.7:security_update_2020-001
apple:mac_os_x10.15.7:security_update_2020-005
apple:mac_os_x10.15.7:security_update_2020-007
apple:mac_os_x10.15.7:security_update_2021-001
apple:mac_os_x10.15.7:security_update_2021-002
apple:mac_os_x10.15.7:security_update_2021-003
apple:mac_os_x10.15.7:security_update_2021-006
apple:mac_os_x10.15.7:security_update_2021-007
apple:mac_os_x10.15.7:security_update_2021-008
apple:mac_os_x10.15.7:security_update_2022-001
apple:mac_os_x10.15.7:security_update_2022-002
apple:mac_os_x10.15.7:security_update_2022-003
apple:macosfrom 11.0 before 11.6.6
apple:macosfrom 12.0.0 before 12.4
mariadb:mariadbfrom 10.3.0 before 10.3.36
mariadb:mariadbfrom 10.4.0 before 10.4.26
mariadb:mariadbfrom 10.5.0 before 10.5.17
mariadb:mariadbfrom 10.6.0 before 10.6.9
mariadb:mariadbfrom 10.7.0 before 10.7.5
mariadb:mariadbfrom 10.8.0 before 10.8.4
mariadb:mariadbfrom 10.9.0 before 10.9.2
netapp:e-series_santricity_os_controllerfrom 11.0.0 through 11.70.2
siemens:scalance_sc622-2c_firmwarebefore 3.0
siemens:scalance_sc626-2c_firmwarebefore 3.0
siemens:scalance_sc632-2c_firmwarebefore 3.0
siemens:scalance_sc636-2c_firmwarebefore 3.0
siemens:scalance_sc642-2c_firmwarebefore 3.0
siemens:scalance_sc646-2c_firmwarebefore 3.0
azul:zulu6.45
azul:zulu7.52
azul:zulu8.60
azul:zulu11.54
azul:zulu13.46
azul:zulu15.38
azul:zulu17.32
goto:gotoassistbefore 11.9.18

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-jc36-42cf-vqwjRubyGemsnokogiri<1.13.41.13.4

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian9libz-mingw-w641.2.11+dfsg-1+deb9u1DLA-2993-1
Debian9zlib1:1.2.8.dfsg-5+deb9u1DLA-2968-1
Debian10zlib1:1.2.11.dfsg-1+deb10u1DSA-5111-1
Debian11zlib1:1.2.11.dfsg-2+deb11u1DSA-5111-1
Debian12, 13, 14libz-mingw-w641.2.11+dfsg-5DEBIAN-CVE-2018-25032
Debian12, 13, 14zlib1:1.2.11.dfsg-4DEBIAN-CVE-2018-25032
Ubuntu18.04:LTSrsync3.1.2-2.1ubuntu1.4UBUNTU-CVE-2018-25032 USN-5359-1
Ubuntu18.04:LTSzlib1:1.2.11.dfsg-0ubuntu2.1UBUNTU-CVE-2018-25032 USN-5355-1
Ubuntu20.04:LTSklibc2.0.7-1ubuntu5.2UBUNTU-CVE-2018-25032 USN-6736-1
Ubuntu20.04:LTSmariadb-10.31:10.3.37-0ubuntu0.20.04.1UBUNTU-CVE-2018-25032 USN-5739-1
Ubuntu20.04:LTSrsync3.1.3-8ubuntu0.3UBUNTU-CVE-2018-25032 USN-5359-1
Ubuntu20.04:LTSzlib1:1.2.11.dfsg-2ubuntu1.3UBUNTU-CVE-2018-25032 USN-5355-1
Ubuntu22.04:LTSklibc2.0.10-4ubuntu0.1UBUNTU-CVE-2018-25032 USN-6736-1
Ubuntu22.04:LTSmariadb-10.61:10.6.11-0ubuntu0.22.04.1UBUNTU-CVE-2018-25032 USN-5739-1
Ubuntu22.04:LTSzlib1:1.2.11.dfsg-2ubuntu9UBUNTU-CVE-2018-25032
Ubuntu24.04:LTSklibc2.0.13-4ubuntu0.1UBUNTU-CVE-2018-25032 USN-6736-2
UbuntuPro:14.04:LTSklibc2.0.3-0ubuntu1.14.04.3+esm3UBUNTU-CVE-2018-25032 USN-6736-1
UbuntuPro:14.04:LTSzlib1:1.2.8.dfsg-1ubuntu1.1+esm1UBUNTU-CVE-2018-25032 USN-5355-2
4 more for Ubuntu in the JSON and on Ubuntu's page.
Red Hatenterprise_linux:7::client, enterprise_linux:7::server, enterprise_linux:7::workstationzlib, minizip, zlib-devel and 3 more0:1.2.7-20.el7_9RHSA-2022:2213
Red Hatenterprise_linux:7::computenodeminizip, zlib-devel, zlib-static and 2 more0:1.2.7-20.el7_9RHSA-2022:2213
Red Hatenterprise_linux:7::hypervisorredhat-virtualization-host, redhat-virtualization-host-image-update0:4.3.23-20220622.0.el7_9RHSA-2022:5439
Red Hatenterprise_linux:8::baseosrsync, rsync-daemon, rsync-debuginfo and 1 more0:3.1.3-14.el8_6.2RHSA-2022:2201
Red Hatenterprise_linux:8::baseoszlib, zlib-devel, zlib-debuginfo and 1 more0:1.2.11-18.el8_5RHSA-2022:1642
Red Hatenterprise_linux:8::crbmingw-zlib, mingw32-zlib, mingw64-zlib and 4 more0:1.2.8-10.el8RHSA-2022:7813
Red Hatenterprise_linux:8::crbzlib-static, zlib-debuginfo, zlib-debugsource0:1.2.11-18.el8_5RHSA-2022:1642
Red Hatenterprise_linux:9::appstreamrsync-daemon0:3.2.3-9.el9_0.1RHSA-2022:4592
Red Hatenterprise_linux:9::appstreamzlib-devel, zlib-debuginfo, zlib-debugsource and 1 more0:1.2.11-31.el9_0.1RHSA-2022:4584
Red Hatenterprise_linux:9::baseosrsync, rsync-debuginfo, rsync-debugsource0:3.2.3-9.el9_0.1RHSA-2022:4592
Red Hatenterprise_linux:9::baseoszlib, zlib-debuginfo, zlib-debugsource and 1 more0:1.2.11-31.el9_0.1RHSA-2022:4584
Red Hatenterprise_linux:9::crbmingw-zlib, mingw32-zlib, mingw64-zlib and 4 more0:1.2.12-2.el9RHSA-2022:8420
14 more for Red Hat in the JSON and on Red Hat's page.
SUSEEnterprise Storage 6, Enterprise Storage 7, Linux Enterprise High Performance Computing 15 SP1-ESPOS and 21 morezlib1.2.11-150000.3.30.1SUSE-SU-2022:1061-1
SUSEEnterprise Storage 7, Linux Enterprise High Performance Computing 15 SP2-ESPOS, Linux Enterprise High Performance Computing 15 SP2-LTSS and 6 moremariadb10.4.26-150200.3.31.1SUSE-SU-2022:3225-1
SUSEHPE Helion OpenStack 8, Linux Enterprise Server 12 SP2-BCL, Linux Enterprise Server 12 SP3-BCL and 4 morezlib1.2.8-12.6.1SUSE-SU-2022:1043-1
SUSELinux Enterprise High Performance Computing 15 SP1-LTSS, Linux Enterprise Server 15 SP1-LTSS, Linux Enterprise Server for SAP Applications 15 SP1mariadb10410.4.30-150100.3.5.10SUSE-RU-2023:3956-1
SUSELinux Enterprise High Performance Computing 15 SP1-LTSS, Linux Enterprise Server 15 SP1-LTSS, Linux Enterprise Server for SAP Applications 15 SP1python-mysqlclient1.4.6-150100.3.3.7SUSE-RU-2023:3956-1
SUSELinux Enterprise Micro 5.2zlib1.2.11-150000.3.30.1SUSE-SU-2022:1061-2
SUSELinux Enterprise Point of Sale 11 SP3, Linux Enterprise Server 11 SP4-LTSSzlib1.2.7-0.17.3.1SUSE-SU-2022:14929-1
SUSELinux Enterprise Server 12 SP4-LTSS, Linux Enterprise Server for SAP Applications 12 SP4, OpenStack Cloud 9 and 1 morezlib1.2.11-3.6.1SUSE-SU-2022:1062-1
SUSELinux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5, Linux Enterprise Software Development Kit 12 SP5lz41.8.0-3.5.2SUSE-RU-2023:4991-1
SUSELinux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5, Linux Enterprise Software Development Kit 12 SP5mariadb-connector-c3.1.22-2.35.1SUSE-RU-2023:4991-1
SUSELinux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5, Linux Enterprise Software Development Kit 12 SP5mariadb10410.4.30-8.5.46SUSE-RU-2023:4991-1
SUSELinux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5, Linux Enterprise Software Development Kit 12 SP5python-mysqlclient1.3.14-8.9.2SUSE-RU-2023:4991-1
2 more for SUSE in the JSON and on SUSE's page.
openSUSELeap 15.3zlib1.2.11-150000.3.30.1openSUSE-SU-2022:1061-1
openSUSELeap 15.4mupdf1.20.3-bp154.2.3.1openSUSE-SU-2022:10126-1
openSUSETumbleweedfreetype22.12.1-1.1openSUSE-SU-2024:12042-1
openSUSETumbleweedghostscript10.02.1-1.1openSUSE-SU-2024:13629-1
openSUSETumbleweedmariadb10.9.3-1.1openSUSE-SU-2024:12360-1
openSUSETumbleweedmupdf1.19.1-1.1openSUSE-SU-2024:12021-1
openSUSETumbleweedperl-Compress-Raw-Zlib2.213-1.1openSUSE-SU-2025:14656-1
openSUSETumbleweedpython393.9.13-1.1openSUSE-SU-2024:12097-1
openSUSETumbleweedruby3.2-rubygem-nokogiri1.13.9-1.7openSUSE-SU-2024:13165-1
openSUSETumbleweedrubygem-nokogiri1.13.4-1.1openSUSE-SU-2024:11999-1
openSUSETumbleweedrubygem-nokogiri1.15.5-1.5openSUSE-SU-2024:14174-1
openSUSETumbleweedrubygem-nokogiri1.18.2-1.1openSUSE-SU-2025:14697-1
1 more for openSUSE in the JSON and on openSUSE's page.
AlmaLinux8mingw32-zlib, mingw64-zlib, mingw32-zlib-static and 1 more1.2.8-10.el8ALSA-2022:7813
AlmaLinux8rsync, rsync-daemon3.1.3-14.el8ALSA-2022:2201
AlmaLinux8zlib, zlib-devel, zlib-static1.2.11-18.el8_5ALSA-2022:1642
AlmaLinux9mingw32-zlib, mingw64-zlib, mingw32-zlib-static and 1 more1.2.12-2.el9ALSA-2022:8420
Rocky Linux8mingw-zlib0:1.2.8-10.el8RLSA-2022:7813
Rocky Linux8rsync0:3.1.3-14.el8_6.2RLSA-2022:2201
Rocky Linux8zlib0:1.2.11-18.el8_5RLSA-2022:1642
Alpinev3.12, v3.13, v3.14zlib1.2.12-r0ALPINE-CVE-2018-25032
Alpinev3.13, v3.14mariadb10.5.17-r0ALPINE-CVE-2018-25032
Alpinev3.15zlib, minizip1.2.12-r0ALPINE-CVE-2018-25032
Alpinev3.15, v3.16, v3.17 and 7 moremariadb10.6.9-r0ALPINE-CVE-2018-25032
Alpinev3.16, v3.17, v3.18 and 6 moreminizip1.2.12-r0ALPINE-CVE-2018-25032
Alpinev3.16, v3.17, v3.18 and 6 morezlib1.2.11-r4ALPINE-CVE-2018-25032
Azure Linux2boost1.76.0-3AZL-26135
Azure Linux2cloud-hypervisor-cvm38.0.72.2-1AZL-42715
Azure Linux2cluceneno fix listedAZL-43675
Azure Linux2fltkno fix listedAZL-43990
Azure Linux2gpsbabelno fix listedAZL-43678
Azure Linux2nmap7.93-1AZL-26156
Azure Linux2openjpeg2no fix listedAZL-43753
Azure Linux2tcl8.6.13-1AZL-26164
Azure Linux2zlib1.2.12-1AZL-9143
Azure Linux3cloud-hypervisor-cvm38.0.72.2-1AZL-42759
Azure Linux3cluceneno fix listedAZL-44181
Azure Linux3fltkno fix listedAZL-45231
3 more for Azure Linux in the JSON.

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This bug was introduced in zlib v1.2.2.2 through zlib v1.2.11, with the addition of the Z_FIXED option, which forces the use of fixed Huffman codes, rather than dynamic Huffman codes, allowing for a simpler decoder for special applications.

This bug is difficult to trigger, as Z_FIXED is usually only used in special circumstances.

Rsync does the compression in-transit using zlib. As rsync uses vulnerable zlib v1.2.8 package, which incorrectly handles memory when performing certain zlib compressing or deflating operations. This results in rsync to crash.

Note - The issue wasn't publicly labelled as security vulnerability until 2022, but the fix was public since 2018.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 6 Extended Lifecycle Supportzlib-0:1.2.3-31.el6_10Fixed 2022-05-11RHSA-2022:2214
Red Hat Enterprise Linux 7zlib-0:1.2.7-20.el7_9Fixed 2022-05-11RHSA-2022:2213
Red Hat Enterprise Linux 7.4 Advanced Update Supportzlib-0:1.2.7-17.el7_4.1Fixed 2023-02-28RHSA-2023:0976
Red Hat Enterprise Linux 7.6 Advanced Update Supportzlib-0:1.2.7-18.el7_6.1Fixed 2023-02-28RHSA-2023:0975
Red Hat Enterprise Linux 7.7 Advanced Update Supportzlib-0:1.2.7-18.el7_7.1Fixed 2023-02-28RHSA-2023:0943
Red Hat Enterprise Linux 7.7 Telco Extended Update Supportzlib-0:1.2.7-18.el7_7.1Fixed 2023-02-28RHSA-2023:0943
Red Hat Enterprise Linux 7.7 Update Services for SAP Solutionszlib-0:1.2.7-18.el7_7.1Fixed 2023-02-28RHSA-2023:0943
Red Hat Enterprise Linux 8mingw-zlib-0:1.2.8-10.el8Fixed 2022-11-08RHSA-2022:7813
Red Hat Enterprise Linux 8zlib-0:1.2.11-18.el8_5Fixed 2022-04-28RHSA-2022:1642
Red Hat Enterprise Linux 8rsync-0:3.1.3-14.el8_6.2Fixed 2022-05-11RHSA-2022:2201
Red Hat Enterprise Linux 8.1 Update Services for SAP Solutionszlib-0:1.2.11-11.el8_1.1Fixed 2022-04-26RHSA-2022:1591
Red Hat Enterprise Linux 8.1 Update Services for SAP Solutionsrsync-0:3.1.3-6.el8_1.1Fixed 2022-05-11RHSA-2022:2197
Red Hat Enterprise Linux 8.2 Extended Update Supportzlib-0:1.2.11-17.el8_2Fixed 2022-05-02RHSA-2022:1661
Red Hat Enterprise Linux 8.2 Extended Update Supportrsync-0:3.1.3-7.el8_2.1Fixed 2022-05-11RHSA-2022:2192
Red Hat Enterprise Linux 8.4 Extended Update Supportrsync-0:3.1.3-12.el8_4.1Fixed 2022-05-11RHSA-2022:2198
Red Hat Enterprise Linux 8.4 Extended Update Supportzlib-0:1.2.11-18.el8_4Fixed 2022-05-31RHSA-2022:4845
Red Hat Enterprise Linux 9zlib-0:1.2.11-31.el9_0.1Fixed 2022-05-17RHSA-2022:4584
Red Hat Enterprise Linux 9rsync-0:3.2.3-9.el9_0.1Fixed 2022-05-18RHSA-2022:4592
Red Hat Enterprise Linux 9mingw-zlib-0:1.2.12-2.el9Fixed 2022-11-15RHSA-2022:8420
Red Hat JBoss Core ServiceszlibFixed 2022-10-26RHSA-2022:7144
2 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2018-25032.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-26-202-06Siemens CADRA2026-07-14Chemical, Commercial Facilities, Communications, EnergyCADRA < V2511none listed
ICSA-23-348-10Siemens SIMATIC S7-15002023-12-12Critical Manufacturing, Transportation Systems, Energy, Healthcare and Public Health, Financial Services, Government Services and FacilitiesSIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0), SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0), SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) and 2 morenone listed
ICSA-23-166-12Siemens SINAMICS Medium Voltage Products2023-06-13MultipleSINAMICS PERFECT HARMONY GH180 6SR5none listed
ICSA-23-075-01Siemens SCALANCE, RUGGEDCOM Third-Party2023-03-14MultipleRUGGEDCOM RM1224 LTE(4G) EU (6GK6108-4AM00-2BA2), RUGGEDCOM RM1224 LTE(4G) NAM (6GK6108-4AM00-2DA2), SCALANCE M804PB (6GK5804-0AP00-2AA2) and 17 morenone listed
ICSA-23-080-07Siemens SCALANCE Third-Party2023-03-14MultipleSCALANCE WAM763-1 (6GK5763-1AL00-7DA0), SCALANCE WAM766-1 (EU) (6GK5766-1GE00-7DA0), SCALANCE WAM766-1 (US) (6GK5766-1GE00-7DB0) and 6 morenone listed
ICSA-22-349-18Siemens SCALANCE SC-600 Family2022-12-13MultipleSCALANCE SC622-2C (6GK5622-2GS00-2AC2), SCALANCE SC626-2C (6GK5626-2GS00-2AC2), SCALANCE SC632-2C (6GK5632-2GS00-2AC2) and 3 morenone listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

References

Check your stackJSON