# Uncontrolled Memory Allocation in Apache PDFBox

Advisory record · `GHSA-6vqp-h455-42mr`

- **Identifiers:** `GHSA-6vqp-h455-42mr` · `CVE-2021-27906`
- **State:** Confirmed
- **Severity:** CVSS 5.5 Medium
- **Critical:** No
- **Weakness (CWE):** [CWE-789](https://cwe.mitre.org/data/definitions/789.html)
- **Tags:** [Denial of service](https://agentprime.io/advisories/tag/dos.md)
- **Published:** 13 May 2021
- **Updated:** 15 Mar 2024
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 13 May 2021, 22:30 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. A user or application that loads a specially crafted PDF file can trigger an OutOfMemory exception during loading. Upgrade to PDFBox 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.033, the 88th 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-6vqp-h455-42mr)

## Sources

- [GitHub Advisory Database: GHSA-6vqp-h455-42mr](https://github.com/advisories/GHSA-6vqp-h455-42mr)
- [OSV: GHSA-6vqp-h455-42mr](https://osv.dev/vulnerability/GHSA-6vqp-h455-42mr)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-27906>
- <https://github.com/apache/pdfbox/commit/8c47be1011c11dc47300faecffd8ab32fba3646f>
- <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://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/rf35026148ccc0e1af133501c0d003d052883fcc65107b3ff5d3b61cd@%3Cusers.pdfbox.apache.org%3E>
- <https://lists.apache.org/thread.html/rf35026148ccc0e1af133501c0d003d052883fcc65107b3ff5d3b61cd%40%3Cusers.pdfbox.apache.org%3E>
- <https://lists.apache.org/thread.html/re1e35881482e07dc2be6058d9b44483457f36133cac67956686ad9b9@%3Cnotifications.ofbiz.apache.org%3E>
- <https://lists.apache.org/thread.html/rdf78aef4793362e778e21e34328b0456e302bde4b7e74f229df0ee04@%3Cannounce.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-6vqp-h455-42mr>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-6vqp-h455-42mr/>. Everything for agents: <https://agentprime.io/llms.txt>.
