Skip to content
Heist/ feed
Back to feed
Medium

pypdf, pypdf2 and 1 more products — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2026-54530

pypdf is a free and open-source pure-python PDF library. Prior to 6.13.0, an attacker who uses this vulnerability can craft a PDF which leads to an infinite loop. This requires extracting the text in layout mode. This vulnerability is fixed in 6.13.0.

Products
pypdf, pypdf2, python-pypdf
Affected versions
1.23+git20141008-1, 1.25.1-1, 1.25.1-1ubuntu0.1~esm1, 1.25.1-1ubuntu0.1~esm2, 1.26.0-2, 1.26.0-2ubuntu0.1~esm1, 1.26.0-2ubuntu0.1~esm2, 1.26.0-3ubuntu1, 1.26.0-3ubuntu1.20.04.1, 1.26.0-3ubuntu1.20.04.2, 1.26.0-4, 1.26.0-4ubuntu0.22.04.1, 1.26.0-4ubuntu0.22.04.2, 1:1.13-3, 2.12.1-3, 2.12.1-4, 3.17.4-1, 3.4.1-1, 4.0.0-1, 4.0.1-1, 4.0.2-1, 4.3.1-1, 5.4.0-1, 6.9.2-1, 6.9.2-2
Fixed versions
Not specified
CVEs
CVE-2026-54530
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 02:46 UTC · Revision 1

Source evidence

UBUNTU-CVE-2026-54530

core-osv · Original source

Published 22 Jun 2026, 21:16 UTC

pypdf is a free and open-source pure-python PDF library. Prior to 6.13.0, an attacker who uses this vulnerability can craft a PDF which leads to an infinite loop. This requires extracting the text in layout mode. This vulnerability is fixed in 6.13.0.

osv:UBUNTU-CVE-2026-54530

pypdf2

Fixed versions: Not specified

python-pypdf

Fixed versions: Not specified

pypdf2

Fixed versions: Not specified

pypdf2

Fixed versions: Not specified

pypdf2

Fixed versions: Not specified

pypdf

Fixed versions: Not specified

pypdf2

Fixed versions: Not specified

pypdf

Fixed versions: Not specified

pypdf

Fixed versions: Not specified

pypdf

Fixed versions: Not specified

Complete source record
{
  "id": "37451c2c325e458c193c4ee176cc621f82b03ed239d9f3746969f7dae1795511",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-54530",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2026-54530",
    "summary": "pypdf is a free and open-source pure-python PDF library. Prior to 6.13.0, an attacker who uses this vulnerability can craft a PDF which leads to an infinite loop. This requires extracting the text in layout mode. This vulnerability is fixed in 6.13.0.",
    "evidence": "osv:UBUNTU-CVE-2026-54530",
    "products": [
      {
        "name": {
          "value": "pypdf2",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.23+git20141008-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.25.1-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.25.1-1ubuntu0.1~esm1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.25.1-1ubuntu0.1~esm2",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "python-pypdf",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1:1.13-3",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "pypdf2",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.26.0-2",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "1.26.0-2ubuntu0.1~esm1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "1.26.0-2ubuntu0.1~esm2",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "pypdf2",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.26.0-2",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "1.26.0-3ubuntu1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "1.26.0-3ubuntu1.20.04.1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "1.26.0-3ubuntu1.20.04.2",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "pypdf2",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.26.0-4",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "1.26.0-4ubuntu0.22.04.1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "1.26.0-4ubuntu0.22.04.2",
            "evidence": "/affected/4/versions"
          }
        ]
      },
      {
        "name": {
          "value": "pypdf",
          "evidence": "/affected/5/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "3.4.1-1",
            "evidence": "/affected/5/versions"
          },
          {
            "value": "3.17.4-1",
            "evidence": "/affected/5/versions"
          },
          {
            "value": "4.0.0-1",
            "evidence": "/affected/5/versions"
          },
          {
            "value": "4.0.1-1",
            "evidence": "/affected/5/versions"
          },
          {
            "value": "4.0.2-1",
            "evidence": "/affected/5/versions"
          }
        ]
      },
      {
        "name": {
          "value": "pypdf2",
          "evidence": "/affected/6/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.12.1-3",
            "evidence": "/affected/6/versions"
          },
          {
            "value": "2.12.1-4",
            "evidence": "/affected/6/versions"
          }
        ]
      },
      {
        "name": {
          "value": "pypdf",
          "evidence": "/affected/7/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "4.3.1-1",
            "evidence": "/affected/7/versions"
          },
          {
            "value": "5.4.0-1",
            "evidence": "/affected/7/versions"
          }
        ]
      },
      {
        "name": {
          "value": "pypdf",
          "evidence": "/affected/8/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "6.9.2-1",
            "evidence": "/affected/8/versions"
          },
          {
            "value": "6.9.2-2",
            "evidence": "/affected/8/versions"
          }
        ]
      },
      {
        "name": {
          "value": "pypdf",
          "evidence": "/affected/9/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "5.4.0-1",
            "evidence": "/affected/9/versions"
          },
          {
            "value": "6.9.2-1",
            "evidence": "/affected/9/versions"
          }
        ]
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "UBUNTU-CVE-2026-54530",
      "aliases": [
        "UBUNTU-CVE-2026-54530"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N"
        },
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "pypdf2",
            "purl": "pkg:deb/ubuntu/pypdf2?arch=source&distro=esm-apps%2Fxenial",
            "ecosystem": "Ubuntu:Pro:16.04:LTS"
          },
          "versions": [
            "1.23+git20141008-1",
            "1.25.1-1",
            "1.25.1-1ubuntu0.1~esm1",
            "1.25.1-1ubuntu0.1~esm2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-54530.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python-pypdf2",
                "binary_version": "1.25.1-1ubuntu0.1~esm2"
              },
              {
                "binary_name": "python3-pypdf2",
                "binary_version": "1.25.1-1ubuntu0.1~esm2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "python-pypdf",
            "purl": "pkg:deb/ubuntu/python-pypdf?arch=source&distro=xenial",
            "ecosystem": "Ubuntu:16.04:LTS"
          },
          "versions": [
            "1:1.13-3"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-54530.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python-pypdf",
                "binary_version": "1:1.13-3"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "pypdf2",
            "purl": "pkg:deb/ubuntu/pypdf2?arch=source&distro=esm-apps%2Fbionic",
            "ecosystem": "Ubuntu:Pro:18.04:LTS"
          },
          "versions": [
            "1.26.0-2",
            "1.26.0-2ubuntu0.1~esm1",
            "1.26.0-2ubuntu0.1~esm2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-54530.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python-pypdf2",
                "binary_version": "1.26.0-2ubuntu0.1~esm2"
              },
              {
                "binary_name": "python3-pypdf2",
                "binary_version": "1.26.0-2ubuntu0.1~esm2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "pypdf2",
            "purl": "pkg:deb/ubuntu/pypdf2?arch=source&distro=focal",
            "ecosystem": "Ubuntu:20.04:LTS"
          },
          "versions": [
            "1.26.0-2",
            "1.26.0-3ubuntu1",
            "1.26.0-3ubuntu1.20.04.1",
            "1.26.0-3ubuntu1.20.04.2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-54530.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python-pypdf2",
                "binary_version": "1.26.0-3ubuntu1.20.04.2"
              },
              {
                "binary_name": "python3-pypdf2",
                "binary_version": "1.26.0-3ubuntu1.20.04.2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "pypdf2",
            "purl": "pkg:deb/ubuntu/pypdf2?arch=source&distro=jammy",
            "ecosystem": "Ubuntu:22.04:LTS"
          },
          "versions": [
            "1.26.0-4",
            "1.26.0-4ubuntu0.22.04.1",
            "1.26.0-4ubuntu0.22.04.2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-54530.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-pypdf2",
                "binary_version": "1.26.0-4ubuntu0.22.04.2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "pypdf",
            "purl": "pkg:deb/ubuntu/pypdf?arch=source&distro=noble",
            "ecosystem": "Ubuntu:24.04:LTS"
          },
          "versions": [
            "3.4.1-1",
            "3.17.4-1",
            "4.0.0-1",
            "4.0.1-1",
            "4.0.2-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-54530.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-pypdf",
                "binary_version": "4.0.2-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "pypdf2",
            "purl": "pkg:deb/ubuntu/pypdf2?arch=source&distro=noble",
            "ecosystem": "Ubuntu:24.04:LTS"
          },
          "versions": [
            "2.12.1-3",
            "2.12.1-4"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-54530.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-pypdf2",
                "binary_version": "2.12.1-4"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "pypdf",
            "purl": "pkg:deb/ubuntu/pypdf?arch=source&distro=questing",
            "ecosystem": "Ubuntu:25.10"
          },
          "versions": [
            "4.3.1-1",
            "5.4.0-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-54530.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-pypdf",
                "binary_version": "5.4.0-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "pypdf",
            "purl": "pkg:deb/ubuntu/pypdf?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "6.9.2-1",
            "6.9.2-2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-54530.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-pypdf",
                "binary_version": "6.9.2-2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "pypdf",
            "purl": "pkg:deb/ubuntu/pypdf?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "5.4.0-1",
            "6.9.2-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-54530.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-pypdf",
                "binary_version": "6.9.2-1"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T12:59:06.978923417Z",
      "provider": "osv",
      "upstream": [
        "CVE-2026-54530"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2026-54530",
        "https://www.cve.org/CVERecord?id=CVE-2026-54530",
        "https://github.com/py-pdf/pypdf/pull/3830",
        "https://github.com/py-pdf/pypdf/releases/tag/6.13.0",
        "https://github.com/py-pdf/pypdf/security/advisories/GHSA-52x6-gq3r-vpf4"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2026-54530",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 359311,
  "published_at": "2026-06-22T21:16:00+00:00"
}