2026-11-23 10:23CVE-2026-59340vmware
PUBLISHED5.2

Denial of Service via crafted PDF in PagePdfDocumentReader

PagePdfDocumentReader and ParagraphPdfDocumentReader are vulnerable to a denial of service when processing untrusted PDF input.

The underlying text extraction logic reconstructs layout from a PDF's glyph positions and limits how much memory can be allocated for any single computed gap, but does not limit the cumulative allocation across an entire page.

A specially crafted PDF can exploit this to force excessive memory allocation during processing, resulting in OutOfMemoryError.

Depending on JVM configuration, this can cause request failures with degraded service under repeated exploitation, or immediate JVM termination when ExitOnOutOfMemoryError options are used.

Any application that processes PDFs from untrusted sources (document upload, email attachment processing, RAG ingestion, web crawling) using either affected reader is impacted.

Affected products

Spring

Spring AI

< 2.0.3 - AFFECTED

< 1.1.10 - AFFECTED

< 1.0.11 - AFFECTED

< 2.0.2.1 - AFFECTED

References

JSON source

https://cveawg.mitre.org/api/cve/CVE-2026-59340
Click to expand
{
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "cveMetadata": {
    "cveId": "CVE-2026-59340",
    "assignerOrgId": "dcf2e128-44bd-42ed-91e8-88f912c1401d",
    "assignerShortName": "vmware",
    "dateUpdated": "2026-11-23T10:23:21.629Z",
    "dateReserved": "2026-07-04T18:14:34.672Z",
    "datePublished": "2026-11-23T10:23:21.629Z",
    "state": "PUBLISHED"
  },
  "containers": {
    "cna": {
      "providerMetadata": {
        "orgId": "dcf2e128-44bd-42ed-91e8-88f912c1401d",
        "shortName": "vmware",
        "dateUpdated": "2026-11-23T10:23:21.629Z"
      },
      "title": "Denial of Service via crafted PDF in PagePdfDocumentReader",
      "descriptions": [
        {
          "lang": "en",
          "value": "PagePdfDocumentReader and ParagraphPdfDocumentReader are vulnerable to a denial of service when processing untrusted PDF input.\n\n\n\n The underlying text extraction logic reconstructs layout from a PDF's glyph positions and limits how much memory can be allocated for any single computed gap, but does not limit the cumulative allocation across an entire page.\n\n\n\nA specially crafted PDF can exploit this to force excessive memory allocation during processing, resulting in OutOfMemoryError.\n\n\n\nDepending on JVM configuration, this can cause request failures with degraded service under repeated exploitation, or immediate JVM termination when ExitOnOutOfMemoryError options are used.\n\n\n\nAny application that processes PDFs from untrusted sources (document upload, email attachment processing, RAG ingestion, web crawling) using either affected reader is impacted.",
          "supportingMedia": [
            {
              "type": "text/html",
              "base64": false,
              "value": "<p>PagePdfDocumentReader and ParagraphPdfDocumentReader are vulnerable to a denial of service when processing untrusted PDF input.</p><p> The underlying text extraction logic reconstructs layout from a PDF's glyph positions and limits how much memory can be allocated for any single computed gap, but does not limit the cumulative allocation across an entire page.</p><p>A specially crafted PDF can exploit this to force excessive memory allocation during processing, resulting in OutOfMemoryError.</p><p>Depending on JVM configuration, this can cause request failures with degraded service under repeated exploitation, or immediate JVM termination when ExitOnOutOfMemoryError options are used.</p><p>Any application that processes PDFs from untrusted sources (document upload, email attachment processing, RAG ingestion, web crawling) using either affected reader is impacted.</p>"
            }
          ]
        }
      ],
      "affected": [
        {
          "vendor": "Spring",
          "product": "Spring AI",
          "versions": [
            {
              "version": "2.0.0",
              "status": "affected",
              "versionType": "oss",
              "lessThan": "2.0.3"
            },
            {
              "version": "1.1.0",
              "status": "affected",
              "versionType": "enterprise only",
              "lessThan": "1.1.10"
            },
            {
              "version": "1.0.0",
              "status": "affected",
              "versionType": "enterprise support only",
              "lessThan": "1.0.11"
            },
            {
              "version": "2.0.0",
              "status": "affected",
              "versionType": "enterprise only",
              "lessThan": "2.0.2.1"
            }
          ]
        }
      ],
      "references": [
        {
          "url": "https://spring.io/security/cve-2026-59340"
        }
      ],
      "metrics": [
        {
          "format": "CVSS",
          "scenarios": [
            {
              "lang": "en",
              "value": "GENERAL"
            }
          ],
          "cvssV3_1": {
            "version": "3.1",
            "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H",
            "attackVector": "NETWORK",
            "attackComplexity": "LOW",
            "privilegesRequired": "LOW",
            "userInteraction": "NONE",
            "scope": "UNCHANGED",
            "confidentialityImpact": "NONE",
            "integrityImpact": "NONE",
            "availabilityImpact": "HIGH",
            "baseScore": 6.5,
            "baseSeverity": "MEDIUM"
          }
        }
      ],
      "credits": [
        {
          "lang": "en",
          "value": "The issue was reported responsibly by Chae Jisung (Jisung Chae) – https://github.com/jisung-02",
          "type": "finder"
        }
      ]
    }
  }
}