CVE-2022-24859
MEDIUM6.2EPSS 0.13%pypdf2 - security update
發布日:2022/4/22修改日:2026/4/28
描述
PyPDF2 is an open source python PDF library capable of splitting, merging, cropping, and transforming the pages of PDF files. In versions prior to 1.27.5 an attacker who uses this vulnerability can craft a PDF which leads to an infinite loop if the PyPDF2 if the code attempts to get the content stream. The reason is that the last while-loop in `ContentStream._readInlineImage` only terminates when it finds the `EI` token, but never actually checks if the stream has already ended. This issue has been resolved in version `1.27.5`. Users unable to upgrade should validate and PDFs prior to iterating over their content stream.
受影響套件(5)
- Debian/pypdf2from 0, < 1.26.0-4+deb11u1
- Debian/pypdf2from 0, < 1.26.0-2+deb9u1
- Debian/pypdf2from 0, < 1.26.0-2+deb10u1
- PyPI/pypdf2from 0, < 1.27.5
- PyPI/pypdf2from 0, < 1.27.5
CVSS 分數
| 來源 | 版本 | 嚴重程度 | 向量 |
|---|---|---|---|
| osv | CVSS 4.0 | — | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N |
| osv | CVSS 3.1 | MEDIUM6.2 | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
參考連結(10)
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2022-24859
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2022-24859
- PATCHhttps://github.com/py-pdf/PyPDF2
- WEBhttps://github.com/pypa/advisory-database/tree/main/vulns/pypdf2/PYSEC-2022-194.yaml
- WEBhttps://github.com/py-pdf/PyPDF2/issues/329
- WEBhttps://github.com/py-pdf/PyPDF2/pull/740
- WEBhttps://github.com/py-pdf/PyPDF2/releases/tag/1.27.5
- WEBhttps://github.com/py-pdf/PyPDF2/security/advisories/GHSA-xcjx-m2pj-8g79
- WEBhttps://lists.debian.org/debian-lts-announce/2022/06/msg00001.html
- WEBhttps://lists.debian.org/debian-lts-announce/2023/06/msg00013.html