{"schemaVersion":4,"id":"CVE-2026-59340","aliases":[],"status":"published","duplicateOf":null,"title":"Denial of Service via crafted PDF in PagePdfDocumentReader","description":"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.","dates":{"published":"2026-11-23T10:23:21.629Z","modified":"2026-11-24T14:55:38.344Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":6.5,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00507,"percentile":0.44874,"severity":"low","asOf":"2026-12-04T00:00:00.000Z","change":{"pp":null,"baselineDate":null,"baselineScore":null},"history":[{"date":"2026-11-24T00:00:00.000Z","score":0.00411,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.00411,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.00411,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.00411,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.00411,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.00411,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.00411,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.00507,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.00507,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00507,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00507,"percentile":0.44874}],"last30":[{"date":"2026-11-24T00:00:00.000Z","score":0.00411,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.00411,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.00411,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.00411,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.00411,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.00411,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.00411,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.00507,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.00507,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00507,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00507,"percentile":0.44874}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-770","name":"Allocation of Resources Without Limits or Throttling","description":"The product allocates a reusable resource or group of resources on behalf of an actor without imposing any intended restrictions on the size or number of resources that can be allocated.","type":"weakness","status":"Incomplete","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/770.html"}],"affected":[{"vendor":"spring","product":"spring ai","name":"Spring AI","label":"spring ai","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 2.0.0, < 2.0.3","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"2.0.0","startInclusive":true,"end":"2.0.3","endInclusive":false}},{"text":"≥ 1.1.0, < 1.1.10","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"1.1.0","startInclusive":true,"end":"1.1.10","endInclusive":false}},{"text":"≥ 1.0.0, < 1.0.11","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"1.0.0","startInclusive":true,"end":"1.0.11","endInclusive":false}},{"text":"≥ 2.0.0, < 2.0.2.1","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"2.0.0","startInclusive":true,"end":"2.0.2.1","endInclusive":false}}],"versionsText":"≥ 2.0.0, < 2.0.3 | ≥ 1.1.0, < 1.1.10 | ≥ 1.0.0, < 1.0.11 | ≥ 2.0.0, < 2.0.2.1","eol":null,"hubHref":"/vendor/spring/spring_ai"}],"affectedCount":1,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://spring.io/security/cve-2026-59340","label":"spring.io/security/cve-2026-59340","hostname":"spring.io","tags":[]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2026-11-23T10:23:21.629Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-11-24T14:55:38.344Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"priority":{"label":"routine","tag":null,"reason":"Not severe (CVSS 6.5, network access); no exploitation reported by the 5 checked sources","nextStep":"Fix in the normal cadence","rank":[0,0,0,0,1,65],"checkedSources":["cisa","enisa","circl","shadowserver","cisa-adp"],"evidence":[{"type":"epss","source":"FIRST","date":"2026-12-04T00:00:00.000Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"value":0.00507,"stale":false,"promoted":null},{"type":"cvss","source":"cve.org","date":"2026-11-24T14:55:38.344Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","version":"3.1","headline":true},{"type":"cvss","source":"nvd","date":"2026-11-24T14:55:38.344Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","version":"3.1"},{"type":"adp","source":"cisa-adp","date":"2026-11-24T14:54:56.759Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"exploitation":"none"}],"epss":{"value":0.00507,"date":"2026-12-04T00:00:00.000Z","stale":false,"promoted":null},"sources":[{"id":"cisa","lastSuccessfulSync":"2026-12-05T03:02:07.274Z","state":"fresh"},{"id":"enisa","lastSuccessfulSync":"2026-12-05T03:02:07.824Z","state":"fresh"},{"id":"circl","lastSuccessfulSync":"2026-12-05T03:02:08.009Z","state":"fresh"},{"id":"shadowserver","lastSuccessfulSync":null,"state":"unavailable"},{"id":"cisa-adp","lastSuccessfulSync":"2026-12-05T03:00:58.365Z","state":"fresh"},{"id":"epss","lastSuccessfulSync":"2026-12-05T03:02:05.166Z","state":"fresh"},{"id":"osv","lastSuccessfulSync":"2026-12-05T03:02:04.195Z","state":"fresh"}],"feedEvent":null},"meta":{"dataAsOf":"2026-12-05T04:04:56.811Z","stale":false,"partial":false}}