Skip to content
Heist/ feed
Back to feed
High

pypdf — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2025-62707

pypdf is a free and open-source pure-python PDF library. Prior to version 6.1.3, an attacker who uses this vulnerability can craft a PDF which leads to an infinite loop. This requires parsing the content stream of a page which has an inline image using the DCTDecode filter. This has been fixed in pypdf version 6.1.3.

Products
pypdf
Affected versions
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-2025-62707
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 01:48 UTC · Revision 1

Source evidence

UBUNTU-CVE-2025-62707

core-osv · Original source

Published 22 Oct 2025, 22:15 UTC

pypdf is a free and open-source pure-python PDF library. Prior to version 6.1.3, an attacker who uses this vulnerability can craft a PDF which leads to an infinite loop. This requires parsing the content stream of a page which has an inline image using the DCTDecode filter. This has been fixed in pypdf version 6.1.3.

osv:UBUNTU-CVE-2025-62707

pypdf

Fixed versions: Not specified

pypdf

Fixed versions: Not specified

pypdf

Fixed versions: Not specified

pypdf

Fixed versions: Not specified

Complete source record
{
  "id": "5e82a179606fa4b6fae9e1cf428317a3a346bcd19987275a1b01d88851261c54",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2025-62707",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2025-62707",
    "summary": "pypdf is a free and open-source pure-python PDF library. Prior to version 6.1.3, an attacker who uses this vulnerability can craft a PDF which leads to an infinite loop. This requires parsing the content stream of a page which has an inline image using the DCTDecode filter. This has been fixed in pypdf version 6.1.3.",
    "evidence": "osv:UBUNTU-CVE-2025-62707",
    "products": [
      {
        "name": {
          "value": "pypdf",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "3.4.1-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "3.17.4-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "4.0.0-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "4.0.1-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "4.0.2-1",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "pypdf",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "4.3.1-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "5.4.0-1",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "pypdf",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "6.9.2-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "6.9.2-2",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "pypdf",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "5.4.0-1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "6.9.2-1",
            "evidence": "/affected/3/versions"
          }
        ]
      }
    ],
    "severity": "high",
    "structured": {
      "id": "UBUNTU-CVE-2025-62707",
      "aliases": [
        "UBUNTU-CVE-2025-62707"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:U"
        },
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "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/2025/UBUNTU-CVE-2025-62707.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-pypdf",
                "binary_version": "4.0.2-1"
              }
            ]
          }
        },
        {
          "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/2025/UBUNTU-CVE-2025-62707.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/2025/UBUNTU-CVE-2025-62707.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/2025/UBUNTU-CVE-2025-62707.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-pypdf",
                "binary_version": "6.9.2-1"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T12:57:28.935442656Z",
      "provider": "osv",
      "upstream": [
        "CVE-2025-62707"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2025-62707",
        "https://www.cve.org/CVERecord?id=CVE-2025-62707",
        "https://github.com/py-pdf/pypdf/security/advisories/GHSA-vr63-x8vc-m265",
        "https://github.com/py-pdf/pypdf/pull/3501",
        "https://github.com/py-pdf/pypdf/commit/f2864d6dd9bac7cecd3f4f54308b25ebbfa178f8",
        "https://github.com/py-pdf/pypdf/releases/tag/6.1.3"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2025-62707",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/1/score"
  },
  "source_id": "core-osv",
  "document_id": 357588,
  "published_at": "2025-10-22T22:15:00+00:00"
}