Description
pypdf is a free and open-source pure-python PDF library. Prior to version 6.4.0, an attacker who uses this vulnerability can craft a PDF which leads to a memory usage of up to 1 GB per stream. This requires parsing the content stream of a page using the LZWDecode filter. This issue has been patched in version 6.4.0.
Problem types
CWE-400: Uncontrolled Resource Consumption
CWE-409: Improper Handling of Highly Compressed Data (Data Amplification)
Product status
References
github.com/.../pypdf/security/advisories/GHSA-m449-cwjh-6pw7
github.com/...ommit/96186725e5e6f237129a58a97cd19204a9ce40b2
github.com/py-pdf/pypdf/releases/tag/6.4.0