/

CVE-2026-134364

Severity:

HIGH RISK

(7.5)

Information Disclosure (CWE-200) in pypdf PDF Files

CVE-2026-134364

Awaiting Analysis

Vulnerability type

Category:

Information Disclosure

CWE:

CWE-200

Impact:

Disclosure of sensitive document contents

Severity:

HIGH RISK

(7.5)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

An information disclosure vulnerability in pypdf can expose placeholder contents in encrypted templated PDFs. If an attacker has a document based on the same template and can access file identifiers for other documents, they may be able to infer protected content.

Affected context

The issue affects workflows that create encrypted PDFs from shared templates when file identifiers can be observed across documents. Risk depends on the identifiers' relationship to document content and whether an attacker can obtain identifiers for documents using the same template.

Exploit preconditions

  • Attack surface: Processing or sharing encrypted, templated PDF documents
  • Required access: A document using the same template and access to other documents' file identifiers
  • Trigger point: Analysis of file identifiers associated with the documents
  • Why exploitation is possible: Identifier patterns may allow an attacker to guess placeholder contents despite PDF encryption

Why this happens

The underlying issue is insufficient protection of sensitive information through document identifiers or related metadata. If identifiers expose patterns or enable guesses about placeholder values, encryption of the PDF contents alone may not prevent disclosure. This maps to CWE-200: Exposure of Sensitive Information to an Unauthorized Actor.

Potential impact

  • An attacker may infer placeholder values in encrypted documents
  • Confidential information represented by placeholders could be disclosed
  • Repeated use of a template could make cross-document analysis easier
  • Exposure could affect the privacy of people or organizations named in documents

General mitigation guidance

Defensive patterns include reducing the information carried by document identifiers and avoiding predictable or content-derived identifiers. Treat identifiers and metadata as potentially sensitive, limit their exposure, and use secure-by-default generation that makes identifiers unique and difficult to infer. Apply least-privilege access to document stores and sharing systems, and assess whether encryption and document-generation workflows protect metadata as well as file contents.

How teams detect issues like this

Review PDF-generation code for deterministic, predictable, or content-derived file identifiers, especially in workflows that reuse templates. Test whether identifiers are exposed through document-sharing channels or logs, and assess whether they correlate with placeholder values. Static analysis and code review can flag identifier generation and metadata handling patterns; policy checks can restrict unnecessary exposure of document metadata.

Sources

SourceLink
github.comgithub.com/py-pdf/pypdf/security/advisories/GHSA-mwj3-fpmc-hjcv
vulncheck.comvulncheck.com/advisories/pypdf-3.7.1-before-7.0.0-placeholder-recovery-via-file-identifier-in-encrypted-documents

Frequently asked

questions

It concerns encrypted templated PDFs where file identifiers may help reveal placeholder contents. Risk depends on the template and identifier behavior.

The described scenario requires a document using the same template and access to file identifiers for other documents.

Avoid identifiers that reveal content or predictable relationships, and limit access to document identifiers and metadata.

Review document-generation and sharing workflows for metadata leakage, use hard-to-infer identifiers, and evaluate metadata protection alongside content encryption.

Find out what's already
exploitable in your codebase.