CVE-2026-59340
Last modified
CVE-2026-59340 is a medium-severity vulnerability rated 6.5/10 on the CVSS scale. 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.. EPSS estimates a 0.41% chance of exploitation in the next 30 days.
Description
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.
Metrics
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| Spring | Spring AI | >= 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 |
References
Timeline
- Published
- Last Modified
- Status
- Awaiting Analysis
Frequently Asked Questions
What is CVE-2026-59340?
How severe is CVE-2026-59340?
How do I fix CVE-2026-59340?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-59324When an IntegrationFlow uses .fluxTransform() with an asynch…8.2
- CVE-2026-59326The Spring Boot language server logs the raw value of the ht…3.3
- CVE-2026-59327Spring Tools for Eclipse stores the Spring Boot DevTools rem…4.4
- CVE-2026-59328Spring Tools for Eclipse renders Spring Boot starter wizard …5.4
- CVE-2026-59335Improper handling of case sensitivity (CWE-178) in the ident…8.7
- CVE-2026-5934The WP Rocket plugin for WordPress is vulnerable to Stored C…7.2
- CVE-2026-59341A security vulnerability exists in the Sealed Secrets contro…4.2
- CVE-2026-59346VMware Workstation and Fusion contain an integer-overflow vu…9.3
- CVE-2026-59347VMware Workstation and Fusion contain a stack-based buffer-o…8.1
- CVE-2026-5935IBM Total Storage Service Console (TSSC) / TS4500 IMC 9.2, 9…9.8
- CVE-2026-59354In versions of Spring Security's OAuth2 Authorization Server…8.8
- CVE-2026-59355In versions of Spring Authorization Server 1.5.0 through 1.5…6.1
Are you affected by CVE-2026-59340?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
