Security Advisory

CVE-2022-37434: zlib inflate Gzip Header Overflow

Last updated:
  • CVE-2022-37434

CVE-2022-37434 is a heap buffer overflow in zlib's inflate(): a gzip header extra field larger than the buffer a program passed to inflateGetHeader() can overflow that buffer. It affects zlib through 1.2.12, only in programs that call inflateGetHeader(), is fixed in zlib 1.2.13, and NVD scores it 9.8.

Vulnerability summary

CVSS base score

9.8

Critical severity

EPSS score (FIRST)

19.2%

Probability of exploitation in the wild in the next 30 days

CISA KEV catalog

No

Not listed

Published

Vulnerability ID: CVE-2022-37434 · Source: NVD

Affected components

ComponentCPEVersion range
zlib (inflate, inflateGetHeader)cpe:2.3:a:zlib:zlib:*:*:*:*:*:*:*:*up to and including 1.2.12 (fixed in 1.2.13, 13 October 2022)
Siemens RUGGEDCOM ROX MX5000, RX1400, RX1500 series and RX5000—before V2.17.0 (fixed in V2.17.0, per SSA-202008)
Siemens SIMATIC MV540, MV550 and MV560 code readers—before V3.3.4 (fixed in V3.3.4, per SSA-561322)

What does this mean for affected devices?

CVE-2022-37434 is a heap-based buffer overflow (NVD lists CWE-787 and CWE-120) in zlib's decompression code. NVD describes "a heap-based buffer over-read or buffer overflow in inflate in inflate.c via a large gzip header extra field" in zlib through 1.2.12, and adds: "only applications that call inflateGetHeader are affected". NVD's Primary CVSS 3.1 score is 9.8, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H (NVD).

The upstream fix of 30 July 2022 states the condition precisely: if the extra field "was larger than the space the user provided with inflateGetHeader(), and if multiple calls of inflate() delivered the extra header data, then there could be a buffer overflow of the provided space". That fix introduced a NULL pointer dereference, corrected on 8 August 2022 by a follow-up commit, so a backport needs both changes. zlib 1.2.13 (13 October 2022) carries them; its ChangeLog lists "Fix a bug when getting a gzip header extra field with inflate()".

Siemens ProductCERT names industrial devices that ship the vulnerable library and scores the CVE 9.8. SSA-202008 covers RUGGEDCOM ROX devices (MX5000, MX5000RE, RX1400, RX1500, RX1501, RX1510, RX1511, RX1512, RX1524, RX1536 and RX5000) before V2.17.0, fixed in V2.17.0. SSA-561322 covers SIMATIC MV540, MV550 and MV560 code readers before V3.3.4, fixed in V3.3.4.

The inflateGetHeader() condition decides real exposure. Most programs inflate gzip streams without asking for the header, and NVD notes that "some common applications bundle the affected zlib source code but may be unable to call inflateGetHeader". In a firmware image, check which binaries import inflateGetHeader (from libz.so or a static copy) and whether any of them parse gzip data from the network or from uploaded files. A device whose programs never import the function carries the code but does not reach it. Backports again keep old version numbers: the Debian tracker marks bullseye fixed in 1:1.2.11.dfsg-2+deb11u2 (DSA-5218-1).

This CVE is not in the CISA KEV catalog as of 2026-11-16 (catalog version 2026.11.13, CISA KEV). FIRST EPSS gives it 0.192, the 97.4th percentile, in its 2026-11-15 dataset (FIRST EPSS).

The fix is zlib 1.2.13 or later, or both upstream commits backported. Our zlib, Expat and libxml2 vulnerabilities in embedded firmware guide works through this exact check, recording CVE-2022-37434 as not affected when no program imports inflateGetHeader, and the memory corruption fix guide covers confirming a bounds fix in the shipped binary. The compression-side zlib bug is covered in CVE-2018-25032.

How to fix this class of issueThis advisory's weakness class is Memory corruption. Our practical guide covers how to detect, fix, verify and disclose it: How to fix memory corruption in embedded firmware.

Evidence

  • Heap-based buffer over-read or overflow in inflate via a large gzip header extra field, zlib through 1.2.12; only applications that call inflateGetHeader are affected; NVD Primary CVSS 3.1 9.8; CWE-787, CWE-120. — NVD
  • Fix commit 2022-07-30: overflow when the extra field exceeds the space given to inflateGetHeader() and arrives over multiple inflate() calls. — zlib commit eff308a
  • Follow-up commit 2022-08-08 fixes a NULL state->head dereference introduced by the first fix. — zlib commit 1eb7682
  • zlib 1.2.13 (13 Oct 2022): "Fix a bug when getting a gzip header extra field with inflate()". — zlib ChangeLog
  • RUGGEDCOM ROX MX5000/MX5000RE/RX1400/RX1500/RX1501/RX1510/RX1511/RX1512/RX1524/RX1536/RX5000 before V2.17.0 affected, fix V2.17.0; Siemens CVSS 9.8. — Siemens SSA-202008
  • SIMATIC MV540 H/S, MV550 H/S, MV560 U/X before V3.3.4 affected, fix V3.3.4. — Siemens SSA-561322
  • Debian bullseye fixed in 1:1.2.11.dfsg-2+deb11u2 (DSA-5218-1). — Debian Security Tracker
  • Not in the CISA KEV catalog version 2026.11.13 as of 2026-11-16. — CISA KEV
  • EPSS 0.19243, percentile 0.97379, dataset 2026-11-15. — FIRST EPSS

Related advisories

Sources

  1. NVD
  2. zlib commit eff308a: fix gzip header extra field with inflate()
  3. zlib commit 1eb7682: fix NULL state->head dereference
  4. zlib ChangeLog (1.2.13)
  5. Siemens SSA-202008 (RUGGEDCOM ROX before V2.17.0)
  6. Siemens SSA-561322 (SIMATIC MV500 before V3.3.4)
  7. Debian Security Tracker
  8. CISA KEV
  9. CISA KEV data (catalog JSON)
  10. FIRST EPSS

Frequently asked questions

Is every device with zlib 1.2.12 or older exploitable through CVE-2022-37434?

No. NVD states that only applications that call inflateGetHeader are affected. A firmware image whose programs never import that function carries the code but does not reach it (per NVD and the zlib fix commit).

Which industrial devices are affected by CVE-2022-37434?

Siemens SSA-202008 lists RUGGEDCOM ROX devices before V2.17.0, and SSA-561322 lists SIMATIC MV540, MV550 and MV560 code readers before V3.3.4 (per Siemens ProductCERT).

Is backporting the first zlib commit enough to fix CVE-2022-37434?

No. The fix of 30 July 2022 introduced a NULL pointer dereference that a second commit fixed on 8 August 2022; a backport needs both, and zlib 1.2.13 contains both (per the zlib commits).

Is CVE-2022-37434 in the CISA KEV catalog?

No, it is absent from catalog version 2026.11.13 as of 2026-11-16. FIRST EPSS gives it 0.192, the 97.4th percentile, in the 2026-11-15 dataset (per CISA KEV and FIRST EPSS).