pypdf is a free and open-source pure-python PDF library. Prior to 6.12.0, an attacker who uses this vulnerability can craft a PDF which leads to large memory usage. This requires extracting text in layout mode with large character offsets. This vulnerability is fixed in 6.12.0.
PUBLISHED5.2CWE-400
pypdf: Possible large memory usage for large offsets for layout mode text
Problem type
Affected products
py-pdf
pypdf
< 6.12.0 - AFFECTED
References
https://github.com/py-pdf/pypdf/security/advisories/GHSA-cj93-chg6-vgv8
https://github.com/py-pdf/pypdf/security/advisories/GHSA-cj93-chg6-vgv8
https://github.com/py-pdf/pypdf/pull/3790
https://github.com/py-pdf/pypdf/pull/3790
https://github.com/py-pdf/pypdf/releases/tag/6.12.0
https://github.com/py-pdf/pypdf/releases/tag/6.12.0
JSON source
https://cveawg.mitre.org/api/cve/CVE-2026-48155Click to expand
{
"dataType": "CVE_RECORD",
"dataVersion": "5.2",
"cveMetadata": {
"cveId": "CVE-2026-48155",
"assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"assignerShortName": "GitHub_M",
"dateUpdated": "2026-05-28T15:57:54.367Z",
"dateReserved": "2026-05-20T23:12:43.031Z",
"datePublished": "2026-05-28T14:51:49.411Z",
"state": "PUBLISHED"
},
"containers": {
"cna": {
"providerMetadata": {
"orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"shortName": "GitHub_M",
"dateUpdated": "2026-05-28T14:51:49.411Z"
},
"title": "pypdf: Possible large memory usage for large offsets for layout mode text",
"descriptions": [
{
"lang": "en",
"value": "pypdf is a free and open-source pure-python PDF library. Prior to 6.12.0, an attacker who uses this vulnerability can craft a PDF which leads to large memory usage. This requires extracting text in layout mode with large character offsets. This vulnerability is fixed in 6.12.0."
}
],
"affected": [
{
"vendor": "py-pdf",
"product": "pypdf",
"versions": [
{
"version": "< 6.12.0",
"status": "affected"
}
]
}
],
"problemTypes": [
{
"descriptions": [
{
"lang": "en",
"description": "CWE-400: Uncontrolled Resource Consumption",
"cweId": "CWE-400",
"type": "CWE"
}
]
}
],
"references": [
{
"url": "https://github.com/py-pdf/pypdf/security/advisories/GHSA-cj93-chg6-vgv8",
"name": "https://github.com/py-pdf/pypdf/security/advisories/GHSA-cj93-chg6-vgv8",
"tags": [
"x_refsource_CONFIRM"
]
},
{
"url": "https://github.com/py-pdf/pypdf/pull/3790",
"name": "https://github.com/py-pdf/pypdf/pull/3790",
"tags": [
"x_refsource_MISC"
]
},
{
"url": "https://github.com/py-pdf/pypdf/releases/tag/6.12.0",
"name": "https://github.com/py-pdf/pypdf/releases/tag/6.12.0",
"tags": [
"x_refsource_MISC"
]
}
],
"metrics": [
{}
]
},
"adp": [
{
"providerMetadata": {
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP",
"dateUpdated": "2026-05-28T15:57:54.367Z"
},
"title": "CISA ADP Vulnrichment",
"metrics": [
{}
]
}
]
}
}