~ / search / GHSA-3crg-w4f6-42mx

GHSA-3crg-w4f6-42mx

pypdf: Manipulated XMP metadata entity declarations can exhaust RAM

Source: GitHub Advisory Database (reviewed) Moderate CVE-2026-40260

Packages

EcosystemPackageAffectedFixed in
PyPI pypdf < 6.10.0 6.10.0

Details

As written in the advisory (Markdown source, shown as plain text).

### Impact An attacker who uses this vulnerability can craft a PDF which leads to large memory usage. This requires parsing the XMP metadata. ### Patches This has been fixed in [pypdf==6.10.0](https://github.com/py-pdf/pypdf/releases/tag/6.10.0). ### Workarounds If you cannot upgrade yet, consider applying the changes from PR [#3724](https://github.com/py-pdf/pypdf/pull/3724).

References

External links from the advisory. They lead to third-party sites.