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.
Published: 2026-10-14
Score: 9.3 Critical
EPSS: 2.3% Low
KEV: No
Impact: Remote Code Execution
Action: Immediate Patch
AI Analysis

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.

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

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 yet.

History

Mon, 19 Oct 2026 13:30:00 +0000

Type Values Removed Values Added
First Time appeared Revolunet
Revolunet pypdftk
Vendors & Products Revolunet
Revolunet pypdftk

Wed, 14 Oct 2026 14:30:00 +0000

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'}


Subscriptions

Revolunet Pypdftk
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-10-14T14:17:08.465Z

Reserved: 2026-10-14T13:07:32.089Z

Link: CVE-2026-110636

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Deferred

Published: 2026-10-14T15:17:16.710

Modified: 2026-10-16T19:18:44.867

Link: CVE-2026-110636

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-19T13:08:32Z

Weaknesses
  • CWE-78

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