CVE-2026-110636

pypdftk through 0.5 OS Command Injection via PDF and Output Paths

Published Oct 14, 2026 CVSS 4.0 · 9.3 Critical EPSS 2.6% KEV · Not listed
Description
pypdftk through 0.5 contains an OS command injection vulnerability in fill_form(), dump_data_fields(), and pdftk_cmd_util() that builds shell commands from caller-supplied paths. Attackers controlling pdf_path or out_file can inject shell metacharacters interpreted by subprocess.Popen with shell=True to execute OS commands as the Python process.

Analysis

AI-generated

Technical impact

This vulnerability resides in the pypdftk library (versions up to 0.5). The functions fill_form(), dump_data_fields(), and pdftk_cmd_util() construct shell commands from input paths supplied by the caller. If an attacker can control the pdf_path or out_file parameters, they can inject shell metacharacters that are interpreted by subprocess.Popen with shell=True, allowing execution of arbitrary OS commands as the user running the Python process. This is a classic operating‑system command‑injection flaw (CWE‑78).

Affected Systems

The affected product is pypdftk distributed by revolunet, version 0.5 and earlier. No patch status is documented; the repository references a pull request that presumably contains the fix.

Risk and Exploitability

The severity is high, with a CVSS score of 9.3 and an EPSS score of 2%, indicating a low but non‑zero probability of exploitation in the field. The vulnerability is not listed in CISA KEV. Exploitation requires the ability to supply crafted pdf_path or out_file values to the library; it can be abused during normal execution of the pypdftk command or within scripts that import the library. An attacker who can trigger the vulnerable code under a privileged user can achieve full system compromise, while exploitation under a low‑privilege account gives the attacker the same privileges as that account.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade pypdftk to the latest commit that addresses the issue (see the pull request linked in the advisory).
  • If upgrading is not immediately possible, sanitize any pdf_path or out_file values by removing shell metacharacters or by performing explicit path validation before calling the library functions.
  • Avoid using the problematic functions; consider replacing pypdftk with a safer PDF processing library that does not invoke shell commands based on user input.

Generated by OpenCVE AI on October 15, 2026 at 20:12 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Revolunet
Revolunet pypdftk
Vendors & Products Revolunet
Revolunet pypdftk
Type Values Removed Values Added
Description pypdftk through 0.5 contains an OS command injection vulnerability in fill_form(), dump_data_fields(), and pdftk_cmd_util() that builds shell commands from caller-supplied paths. Attackers controlling pdf_path or out_file can inject shell metacharacters interpreted by subprocess.Popen with shell=True to execute OS commands as the Python process.
Title pypdftk through 0.5 OS Command Injection via PDF and Output Paths
Weaknesses CWE-78
References
Metrics cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 9.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-78

    Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Oct 20, 2026, 1:21 AM
Reserved
Oct 14, 2026, 1:07 PM
Status
Deferred
Published
Oct 14, 2026, 3:17 PM
Modified
Oct 20, 2026, 2:17 AM