# Excessive Iteration Denial of Service in Apache PDFBox

Advisory record · `GHSA-2h3j-m7gr-25xj`

- **Identifiers:** `GHSA-2h3j-m7gr-25xj` · `CVE-2021-27807`
- **State:** Confirmed
- **Severity:** CVSS 5.5 Medium
- **Critical:** No
- **Weakness (CWE):** [CWE-834](https://cwe.mitre.org/data/definitions/834.html)
- **Tags:** [Denial of service](https://agentprime.io/advisories/tag/dos.md)
- **Published:** 16 Jun 2021
- **Updated:** 15 Mar 2024
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 16 Jun 2021, 17:56 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `org.apache.pdfbox:pdfbox` (Maven): affected `>=2.0.0, <2.0.23`; fixed in `2.0.23`

## Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

> Apache PDFBox (org.apache.pdfbox:pdfbox) versions from 2.0.0 before 2.0.23 are vulnerable. An attacker who supplies a specially crafted PDF file can cause an infinite loop while the file is loaded, leading to denial of service. Upgrade to version 2.0.23 or later.

Written 8 Nov 2026.

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

- 5.5 Medium, CVSS 3.1: `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`, from GitHub Advisory Database

- **CISA KEV:** Not listed.
- **EPSS:** 0.030, the 87th percentile, on 19 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 31 Oct 2026, 15:13 UTC: First seen by agentprime
- 31 Oct 2026, 15:13 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/GHSA-2h3j-m7gr-25xj)

## Sources

- [GitHub Advisory Database: GHSA-2h3j-m7gr-25xj](https://github.com/advisories/GHSA-2h3j-m7gr-25xj)
- [OSV: GHSA-2h3j-m7gr-25xj](https://osv.dev/vulnerability/GHSA-2h3j-m7gr-25xj)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-27807>
- <https://github.com/apache/pdfbox/commit/5c5a837140fbb4ef78bb5ef9f29ad537c872c83e>
- <https://www.oracle.com/security-alerts/cpuoct2021.html>
- <https://www.oracle.com/security-alerts/cpuapr2022.html>
- <https://www.oracle.com//security-alerts/cpujul2021.html>
- <https://svn.apache.org/viewvc?view=revision&revision=1886911>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/6PT72QOFDXLJ7PLTN66EMG5EHPTE7TFZ>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/6KDA2U4KL2N3XT3PM4ZJEBBA6JJIH2G4>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/2AVLKAHFMPH72TTP25INPZPGX5FODK3H>
- <https://lists.apache.org/thread.html/re1e35881482e07dc2be6058d9b44483457f36133cac67956686ad9b9@%3Cnotifications.ofbiz.apache.org%3E>
- <https://lists.apache.org/thread.html/rc69140d894c6a9c67a8097a25656cce59b46a5620c354ceba10543c3@%3Cnotifications.ofbiz.apache.org%3E>
- <https://lists.apache.org/thread.html/raa35746227f3f8d50fff1db9899524423a718f6f35cd39bd4769fa6c@%3Cnotifications.ofbiz.apache.org%3E>

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-2h3j-m7gr-25xj>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-2h3j-m7gr-25xj/>. Everything for agents: <https://agentprime.io/llms.txt>.
