{"id":"GHSA-26gg-9gv2-v27j","summary":"Spring AI Vulnerable to OOM by attacker-controlled PDF","details":"In Spring AI, a malicious PDF file can be crafted that triggers the allocation of unreasonable amounts of memory when handled by `ForkPDFLayoutTextStripper`.\n\nAffected versions:\nSpring AI: 1.0.0 - 1.0.5 (fixed in 1.0.6), 1.1.0 - 1.1.4 (fixed in 1.1.5)","aliases":["CVE-2026-40980"],"modified":"2026-05-06T20:11:26.342603Z","published":"2026-04-28T09:34:13Z","database_specific":{"nvd_published_at":"2026-04-28T09:16:16Z","cwe_ids":["CWE-400"],"severity":"MODERATE","github_reviewed":true,"github_reviewed_at":"2026-05-06T19:51:54Z"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-40980"},{"type":"PACKAGE","url":"https://github.com/spring-projects/spring-ai"},{"type":"WEB","url":"https://spring.io/security/cve-2026-40980"}],"affected":[{"package":{"name":"org.springframework.ai:spring-ai-pdf-document-reader","ecosystem":"Maven","purl":"pkg:maven/org.springframework.ai/spring-ai-pdf-document-reader"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.0.0"},{"fixed":"1.0.6"}]}],"versions":["1.0.0","1.0.1","1.0.2","1.0.3","1.0.4","1.0.5"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-26gg-9gv2-v27j/GHSA-26gg-9gv2-v27j.json"}},{"package":{"name":"org.springframework.ai:spring-ai-pdf-document-reader","ecosystem":"Maven","purl":"pkg:maven/org.springframework.ai/spring-ai-pdf-document-reader"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.1.0"},{"fixed":"1.1.5"}]}],"versions":["1.1.0","1.1.1","1.1.2","1.1.3","1.1.4"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-26gg-9gv2-v27j/GHSA-26gg-9gv2-v27j.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"}]}