CVE-2026-105749: Docling Unbounded Table Rowspan/colspan Vulnerability

MODERATE
Advisory Identifier: GHSA-cgc7-9qp3-86m3
CVSS 6.5
CWE-789 CWE-400
Published
Advisory Summary

CVE-2026-105749 is a MODERATE (CVSS 6.5) unbounded table rowspan/colspan vulnerability (CWE-789: Memory Allocation with Excessive Size Value) affecting Docling libraries in the PyPI ecosystem. The issue involves unbounded table rowspan/colspan in html, jats, ods and boxnote backends causes cpu/memory exhaustion. Remediation is available by upgrading affected packages to version 2.131.0.

CVE-2026-105749 at a Glance

CVE Identifier CVE-2026-105749
GHSA Identifier GHSA-cgc7-9qp3-86m3
Severity MODERATE
CVSS v3.1 Base Score 6.5
CWE Classification CWE-789: Memory Allocation with Excessive Size Value
Affected Product Docling
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 6.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity None (I:N)
Availability High (A:H)

How to Fix CVE-2026-105749

To remediate this vulnerability, upgrade all affected Docling dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

docling fixed: 2.131.0
pip install docling>=2.131.0
docling-slim fixed: 2.131.0
pip install docling-slim>=2.131.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show docling

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2026-105749, inspect your installed packages using pip:

pip show docling

Analyze the terminal output to locate any version of Docling in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.131.0), your application is affected.

Note: The pip show docling command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-789: Memory Allocation with Excessive Size Value, where the product allocates memory based on an untrusted, large size value, but it does not ensure that the size is within expected limits, allowing arbitrary amounts of memory to be allocated. In Docling, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Summary The HTML, JATS, ODS (OpenDocument spreadsheet) and BoxNote backends accept table `rowspan` / `colspan` values without an upper bound. A few bytes of input, such as `<td rowspan="100000000">`, make docling run loops proportional to the declared span and allocate a table grid of the declared size. The result is CPU and memory exhaustion. ### Details - `docling/backend/html_backend.py` (`_get_cell_spans`) parses span attributes with no upper limit. The cell-filling loop then iterates `row_span × col_span` times. - `docling/backend/jats_backend.py` and `docling/backend/boxnote_backend.py` fill their tables the same way. - The OpenDocument spreadsheet path scans the declared span range. - Export (for example `export_to_markdown()`) materialises the full grid through `TableData.grid` in docling-core. `document_timeout` does not bound this. It is checked between pipeline stages, and these backends convert the whole document in a single call. `max_file_size` and `max_num_pages` do not help because the payload is tiny. Measured on 2.130.0: a 54-byte HTML file with `rowspan="1e8"` takes about 4.4 s of CPU, and the time grows linearly with the value. A 52-byte file with `colspan="3000000"` takes about 23 s and reaches 4.5 GB peak memory during Markdown export. ### Impact Denial of service of the converting process from a very small input document. Confidentiality and integrity are not affected. ### Proof of concept ```html <table><tr><td colspan="3000000">x</td></tr></table> ``` ```python from docling.document_converter import DocumentConverter DocumentConverter().convert("span.html").document.export_to_markdown() ``` ### Patches Fixed in docling 2.131.0 by [#4414](https://github.com/docling-project/docling/pull/4414). Table spans are clamped to the HTML limits (colspan 1000, rowspan 65534) and to the actual size of the table in the HTML, JATS, BoxNote and OpenDocument spreadsheet backends, so conversion time and memory grow with the real table only. ### Workarounds Upgrade to 2.131.0. For older versions: Run conversions of untrusted documents in a separate process with memory and CPU-time limits, or restrict `allowed_formats` to formats that are not affected.

CVE-2026-105749 Affected Docling Versions

2 component(s)
Fixed Versions:
2.131.0
Product / Package Ecosystem Affected Versions Fixed Version
docling
PyPI
≥ 2.0.0
< 2.131.0
2.131.0
docling-slim
PyPI
≥ 2.92.0
< 2.131.0
2.131.0

References

Frequently Asked Questions

What is CVE-2026-105749?
CVE-2026-105749 is a security vulnerability in Docling involving Unbounded table rowspan/colspan in HTML, JATS, ODS and BoxNote backends causes CPU/memory exhaustion under CWE-789: Memory Allocation with Excessive Size Value.
Which Docling versions are affected?
Affected versions include releases prior to 2.131.0 across affected packages: docling, docling-slim.
What version fixes CVE-2026-105749?
Upgrading to 2.131.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is docling affected?
Yes, docling is affected in releases prior to 2.131.0. Upgrade your dependency to 2.131.0 or later.
Is docling-slim affected?
Yes, docling-slim is affected in releases prior to 2.131.0. Upgrade your dependency to 2.131.0 or later.
What is the CVSS score of CVE-2026-105749?
CVE-2026-105749 has a CVSS v3.1 base score of 6.5 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H.
What CWE is associated with CVE-2026-105749?
CVE-2026-105749 is classified under CWE-789: Memory Allocation with Excessive Size Value (The product allocates memory based on an untrusted, large size value, but it does not ensure that the size is within expected limits, allowing arbitrary amounts of memory to be allocated.).
How can I check PyPI dependencies for CVE-2026-105749?
Run the dependency tree command: 'pip show docling'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-cgc7-9qp3-86m3",
  "modified" : "2026-10-07T20:41:02Z",
  "published" : "2026-10-07T20:41:02Z",
  "aliases" : [ "CVE-2026-105749" ],
  "summary" : "Docling: Unbounded table rowspan/colspan in HTML, JATS, ODS and BoxNote backends causes CPU/memory exhaustion",
  "details" : "### Summary\n\nThe HTML, JATS, ODS (OpenDocument spreadsheet) and BoxNote backends accept table `rowspan` / `colspan` values without an upper bound. A few bytes of input, such as `<td rowspan=\"100000000\">`, make docling run loops proportional to the declared span and allocate a table grid of the declared size. The result is CPU and memory exhaustion.\n\n### Details\n\n- `docling/backend/html_backend.py` (`_get_cell_spans`) parses span attributes with no upper limit. The cell-filling loop then iterates `row_span × col_span` times.\n- `docling/backend/jats_backend.py` and `docling/backend/boxnote_backend.py` fill their tables the same way.\n- The OpenDocument spreadsheet path scans the declared span range.\n- Export (for example `export_to_markdown()`) materialises the full grid through `TableData.grid` in docling-core.\n\n`document_timeout` does not bound this. It is checked between pipeline stages, and these backends convert the whole document in a single call. `max_file_size` and `max_num_pages` do not help because the payload is tiny.\n\nMeasured on 2.130.0: a 54-byte HTML file with `rowspan=\"1e8\"` takes about 4.4 s of CPU, and the time grows linearly with the value. A 52-byte file with `colspan=\"3000000\"` takes about 23 s and reaches 4.5 GB peak memory during Markdown export.\n\n### Impact\n\nDenial of service of the converting process from a very small input document. Confidentiality and integrity are not affected.\n\n### Proof of concept\n\n```html\n<table><tr><td colspan=\"3000000\">x</td></tr></table>\n```\n\n```python\nfrom docling.document_converter import DocumentConverter\nDocumentConverter().convert(\"span.html\").document.export_to_markdown()\n```\n\n### Patches\n\nFixed in docling 2.131.0 by [#4414](https://github.com/docling-project/docling/pull/4414). Table spans are clamped to the HTML limits (colspan 1000, rowspan 65534) and to the actual size of the table in the HTML, JATS, BoxNote and OpenDocument spreadsheet backends, so conversion time and memory grow with the real table only.\n\n### Workarounds\n\nUpgrade to 2.131.0. For older versions:\n\nRun conversions of untrusted documents in a separate process with memory and CPU-time limits, or restrict `allowed_formats` to formats that are not affected.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "docling"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.0.0"
      }, {
        "fixed" : "2.131.0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "docling-slim"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.92.0"
      }, {
        "fixed" : "2.131.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/docling-project/docling/security/advisories/GHSA-cgc7-9qp3-86m3"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-105749"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/docling-project/docling/pull/4414"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/docling-project/docling/commit/c5b4429cc6500a344c13edeb22e67610c2159b09"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/docling-project/docling"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/docling-project/docling/releases/tag/v2.131.0"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-400", "CWE-789" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-10-07T20:41:02Z",
    "nvd_published_at" : "2026-10-05T22:16:57Z"
  }
}