{"id":"CVE-2021-31811","published":"2021-06-12T09:45:11Z","modified":"2024-08-03T23:10:30Z","title":"A carefully crafted PDF file can trigger an OutOfMemory-Exception while loading a tiny file","vendor":"Apache","product":"Apache PDFBox","tier":"tail","description":{"text":"In Apache PDFBox, a carefully crafted PDF file can trigger an OutOfMemory-Exception while loading the file. This issue affects Apache PDFBox version 2.0.23 and prior 2.0.x versions.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.03572,"percentile":0.89641,"provenance":"source"},"cwes":[{"id":"CWE-789","name":"Memory Allocation with Excessive Size Value"}],"references":[{"url":"https://lists.apache.org/thread.html/re3bd16f0cc8f1fbda46b06a4b8241cd417f71402809baa81548fc20e%40%3Cusers.pdfbox.apache.org%3E","tags":["x_refsource_MISC"]},{"url":"https://lists.apache.org/thread.html/rf937c2236e6c79cdb99f76a70690dd345e53dbe0707cb506a202e43e%40%3Cannounce.apache.org%3E","tags":["mailing-list","x_refsource_MLIST"]},{"url":"http://www.openwall.com/lists/oss-security/2021/06/12/2","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://lists.apache.org/thread.html/rfe26bcaba564deb505c32711ba68df7ec589797dcd96ff3389a8aaba%40%3Cnotifications.ofbiz.apache.org%3E","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://lists.apache.org/thread.html/rd4b6db6c3b8ab3c70f1c3bbd725a40920896453ffc2744ade6afd9fb%40%3Cnotifications.ofbiz.apache.org%3E","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://lists.apache.org/thread.html/r143fd8445e0e778f4a85187bd79438630b96b8040e9401751fdb8aea%40%3Ccommits.ofbiz.apache.org%3E","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://lists.apache.org/thread.html/r179cc3b6822c167702ab35fe36093d5da4c99af44238c8a754c6860f%40%3Ccommits.ofbiz.apache.org%3E","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://lists.apache.org/thread.html/r2090789e4dcc2c87aacbd87d5f18e2d64dcb9f6eb7c47f5cf7d293cb%40%3Cnotifications.ofbiz.apache.org%3E","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://lists.apache.org/thread.html/r132e9dbbe0ebdc08b39583d8be0a575fdba573d60a42d940228bceff%40%3Cnotifications.ofbiz.apache.org%3E","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://lists.apache.org/thread.html/re0cacd3fb337cdf8469853913ed2b4ddd8f8bfc52ff0ddbe61c1dfba%40%3Ccommits.ofbiz.apache.org%3E","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/7HHWJRFXZ3PTKLJCOM7WJEYZFKFWMNSV/","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MDJKJQOMVFDFIDS27OQJXNOYHV2O273D/","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"https://www.oracle.com//security-alerts/cpujul2021.html","tags":["x_refsource_MISC"]},{"url":"https://www.oracle.com/security-alerts/cpuoct2021.html","tags":["x_refsource_MISC"]},{"url":"https://www.oracle.com/security-alerts/cpujan2022.html","tags":["x_refsource_MISC"]},{"url":"https://www.oracle.com/security-alerts/cpuapr2022.html","tags":["x_refsource_MISC"]},{"url":"https://www.oracle.com/security-alerts/cpujul2022.html","tags":["x_refsource_MISC"]}],"priority":{"score":17.9,"factors":[{"name":"EPSS percentile","points":17.93}]},"vendorSlug":"apache","affectedVersions":[{"vendor":"Apache Software Foundation","product":"Apache PDFBox","versions":[">= Apache PDFBox, < 2.0.24"]}],"workarounds":{"items":["This issue was fixed in 2.0.24. All users are recommended to upgrade to Apache PDFBox 2.0.24"],"from":"CVE.org CNA","provenance":"source"},"affected":[{"ecosystem":"Maven","package":"org.apache.pdfbox:pdfbox","vulnerableRanges":[">=2.0.0, <2.0.24"],"patched":["2.0.24"],"from":["GHSA-fg3j-q579-v8x4"],"provenance":"source"},{"ecosystem":"Maven","package":"org.apache.pdfbox:pdfbox-parent","vulnerableRanges":[">=2.0.0, <2.0.24"],"patched":["2.0.24"],"from":["GHSA-fg3j-q579-v8x4"],"provenance":"source"}],"summary":{"text":"Apache PDFBox, a Java library for handling PDF documents, contains a flaw where loading a specially crafted PDF file can exhaust memory and throw an OutOfMemory exception, and the issue is described as affecting version 2.0.23 and earlier 2.0.x releases.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:26:30Z"},"euvd":{"id":"EUVD-2021-1315","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2019-0228","published":"2019-04-17","fixed":"2.0.15","kev":false},{"cve":"CVE-2021-27807","published":"2021-03-19","fixed":"2.0.23","kev":false,"link":{"from":"CVE-2021-27807","to":"CVE-2021-31811","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Maven:org.apache.pdfbox:pdfbox","fromFixed":"2.0.23","toFixed":"2.0.24","daysApart":85}]}},{"cve":"CVE-2021-27906","published":"2021-03-19","fixed":"2.0.23","kev":false},{"cve":"CVE-2021-31811","published":"2021-06-12","fixed":"2.0.24","kev":false},{"cve":"CVE-2021-31812","published":"2021-06-12","fixed":"2.0.24","kev":false}],"package":"Maven:org.apache.pdfbox:pdfbox"}}