{"id":"CVE-2021-31812","published":"2021-06-12T09:45:11Z","modified":"2024-08-03T23:10:30Z","title":"A carefully crafted PDF file can trigger an infinite loop while loading the file","vendor":"Apache","product":"Apache PDFBox","tier":"tail","description":{"text":"In Apache PDFBox, a carefully crafted PDF file can trigger an infinite loop 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.03054,"percentile":0.87896,"provenance":"source"},"cwes":[{"id":"CWE-834","name":"Excessive Iteration"}],"references":[{"url":"https://lists.apache.org/thread.html/ra2ab0ce69ce8aaff0773b8c1036438387ce004c2afc6f066626e205e%40%3Cusers.pdfbox.apache.org%3E","tags":["x_refsource_MISC"]},{"url":"https://lists.apache.org/thread.html/rf251f6c358087107f8c23473468b279d59d50a75db6b4768165c78d3%40%3Cannounce.apache.org%3E","tags":["mailing-list","x_refsource_MLIST"]},{"url":"http://www.openwall.com/lists/oss-security/2021/06/12/1","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/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.6,"factors":[{"name":"EPSS percentile","points":17.58}]},"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-7grw-6pjh-jpc9"],"provenance":"source"},{"ecosystem":"Maven","package":"org.apache.pdfbox:pdfbox-parent","vulnerableRanges":[">=2.0.0, <2.0.24"],"patched":["2.0.24"],"from":["GHSA-7grw-6pjh-jpc9"],"provenance":"source"}],"summary":{"text":"Apache PDFBox, the Java library for handling PDF documents, contains a flaw in which a carefully crafted PDF file can trigger an infinite loop while the file is being loaded. An attacker can exploit this by supplying a malicious PDF to an application that loads it with PDFBox, with no special network position, authentication, or user configuration described in the available details.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:28:31Z"},"euvd":{"id":"EUVD-2021-1279","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2021-27807","published":"2021-03-19","fixed":"2.0.23","kev":false,"link":{"from":"CVE-2021-27807","to":"CVE-2021-31812","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"}}