All vulnerabilities
CVE-2026-105747GHSA-3cr3-8m4c-fpxwPYSEC-2026-4194PYSEC-2026-4209

Docling: METS-GBS archive member limit enforced after full member enumeration (memory exhaustion during format detection)

docling-project doclingpipLibraries & packages
CVSS
4.3Medium
ExploitationNo known exploitationNot in CISA KEV, which does not prove it is unexploitedCISA KEV
Exploit odds (EPSS)0.23%Chance of exploitation activity in the next 30 days, higher than 13% of CVEs. Scored 23 Oct 2026FIRST EPSS
Fixed in2.131.0Fixed versionGitHub
Published5 Oct 2026Updated 15 Oct 2026CVE List

What fixes it

  • 2.131.0docling, pipGitHub
  • 2.131.0docling-slim, pipGitHub
  • 2.131.0docling, PyPIOSVpip install "docling>=2.131.0"
  • 2.131.0docling-slim, PyPIOSVpip install "docling-slim>=2.131.0"

A fixed version on one release line is not the upgrade target for every line. Check your exact version and any vendor backports.

Description

Summary

When docling detects the input format of a gzip-compressed tar archive (METS-GBS), and later when the METS-GBS backend opens it, it calls tarfile.TarFile.getmembers(). That builds the full member list in memory before the max_member_count limit is checked. A small archive with a very large number of empty members therefore makes docling allocate memory in proportion to the member count, and the limit has no effect.

Details

docling/datamodel/document.py (format detection) and docling/backend/mets_gbs_backend.py both iterate tar.getmembers() and count members inside the loop. getmembers() reads every header up front.

Measured on Python 3.12: an archive of 1,000,000 empty members compresses to about 6.2 MB and makes getmembers() hold about 408 MB (about 66 times the input size). Format detection runs for any application/gzip input before allowed_formats is applied, so the allocation happens even when METS-GBS is not an allowed format.

This check was introduced by the fix for CVE-2026-44018 (GHSA-r3xg-rg9j-67fv) in 2.91.0. The eager enumeration it relies on has been there since METS-GBS detection was added in 2.45.0.

Impact

Memory exhaustion of the converting process, proportional to the size of the input archive. Confidentiality and integrity are not affected.

Patches

Fixed in docling 2.131.0 by #4412. Format detection and the METS-GBS backend now read archive members one at a time and stop as soon as max_member_count is exceeded, including when looking up page files.

Workarounds

Upgrade to 2.131.0. For older versions:

Reject gzip or tar inputs before they reach docling when METS-GBS support is not needed, and run conversions of untrusted input with memory limits.

Text from GitHub Advisory Database

Affected versions 102

  • docling, pip>= 2.45.0, < 2.131.0GitHub
  • docling-slim, pip>= 2.92.0, < 2.131.0GitHub
  • doclingaffected: >= 2.45.0, < 2.131.0CVE List
  • docling-slimaffected: >= 2.45.0, < 2.131.0CVE List
  • docling, PyPIfrom 2.45.0, fixed in 2.131.0OSV
  • docling, PyPI2.100.0OSV
  • docling, PyPI2.101.0OSV
  • docling, PyPI2.102.0OSV
  • docling, PyPI2.102.1OSV
  • docling, PyPI2.102.2OSV
  • docling, PyPI2.103.0OSV
  • docling, PyPI2.104.0OSV
  • docling, PyPI2.105.0OSV
  • docling, PyPI2.106.0OSV
  • docling, PyPI2.107.0OSV
  • docling, PyPI2.108.0OSV
  • docling, PyPI2.109.0OSV
  • docling, PyPI2.110.0OSV
  • docling, PyPI2.111.0OSV
  • docling, PyPI2.112.0OSV
  • docling, PyPI2.113.0OSV
  • docling, PyPI2.114.0OSV
  • docling, PyPI2.115.0OSV
  • docling, PyPI2.116.0OSV
  • docling, PyPI2.117.0OSV
  • docling, PyPI2.118.0OSV
  • docling, PyPI2.118.1OSV
  • docling, PyPI2.119.0OSV
  • docling, PyPI2.120.1OSV
  • docling, PyPI2.120.2OSV
  • docling, PyPI2.120.3OSV
  • docling, PyPI2.121.0OSV
  • docling, PyPI2.122.0OSV
  • docling, PyPI2.123.0OSV
  • docling, PyPI2.123.1OSV
  • docling, PyPI2.124.0OSV
  • docling, PyPI2.125.0OSV
  • docling, PyPI2.126.0OSV
  • docling, PyPI2.127.0OSV
  • docling, PyPI2.128.0OSV
  • docling, PyPI2.129.0OSV
  • docling, PyPI2.130.0OSV
  • docling, PyPI2.45.0OSV
  • docling, PyPI2.46.0OSV
  • docling, PyPI2.47.0OSV
  • docling, PyPI2.47.1OSV
  • docling, PyPI2.48.0OSV
  • docling, PyPI2.49.0OSV
  • docling, PyPI2.50.0OSV
  • docling, PyPI2.51.0OSV
  • docling, PyPI2.52.0OSV
  • docling, PyPI2.53.0OSV
  • docling, PyPI2.54.0OSV
  • docling, PyPI2.55.0OSV
  • docling, PyPI2.55.1OSV
  • docling-slim, PyPIfrom 2.92.0, fixed in 2.131.0OSV
  • docling-slim, PyPI2.100.0OSV
  • docling-slim, PyPI2.101.0OSV
  • docling-slim, PyPI2.102.0OSV
  • docling-slim, PyPI2.102.1OSV
  • docling-slim, PyPI2.102.2OSV
  • docling-slim, PyPI2.103.0OSV
  • docling-slim, PyPI2.104.0OSV
  • docling-slim, PyPI2.105.0OSV
  • docling-slim, PyPI2.106.0OSV
  • docling-slim, PyPI2.107.0OSV
  • docling-slim, PyPI2.108.0OSV
  • docling-slim, PyPI2.109.0OSV
  • docling-slim, PyPI2.110.0OSV
  • docling-slim, PyPI2.111.0OSV
  • docling-slim, PyPI2.112.0OSV
  • docling-slim, PyPI2.113.0OSV
  • docling-slim, PyPI2.114.0OSV
  • docling-slim, PyPI2.115.0OSV
  • docling-slim, PyPI2.116.0OSV
  • docling-slim, PyPI2.117.0OSV
  • docling-slim, PyPI2.118.0OSV
  • docling-slim, PyPI2.118.1OSV
  • docling-slim, PyPI2.119.0OSV
  • docling-slim, PyPI2.120.1OSV
  • docling-slim, PyPI2.120.2OSV
  • docling-slim, PyPI2.120.3OSV
  • docling-slim, PyPI2.121.0OSV
  • docling-slim, PyPI2.122.0OSV
  • docling-slim, PyPI2.123.0OSV
  • docling-slim, PyPI2.123.1OSV
  • docling-slim, PyPI2.124.0OSV
  • docling-slim, PyPI2.125.0OSV
  • docling-slim, PyPI2.126.0OSV
  • docling-slim, PyPI2.127.0OSV
  • docling-slim, PyPI2.128.0OSV
  • docling-slim, PyPI2.129.0OSV
  • docling-slim, PyPI2.130.0OSV
  • docling-slim, PyPI2.92.0OSV
  • docling-slim, PyPI2.93.0OSV
  • docling-slim, PyPI2.94.0OSV
  • docling-slim, PyPI2.95.0OSV
  • docling-slim, PyPI2.96.0OSV
  • docling-slim, PyPI2.96.1OSV
  • docling-slim, PyPI2.97.0OSV
  • docling-slim, PyPI2.98.0OSV
  • docling-slim, PyPI2.99.0OSV

References 6