CVE Catalog

CVE-2026-110636

CriticalCVSS 9.8
Published: Translated: NVD NIST

Summary

pypdftk through 0.5 contains an OS command injection vulnerability in fill_form(), dump_data_fields(), and pdftk_cmd_util() that build shell commands from caller-supplied paths. Attackers controlling pdf_path or out_file can inject shell metacharacters interpreted by subprocess.Popen with shell=True, executing OS commands as the Python process.

Risk Assessment

An attacker can execute arbitrary commands in the context of the Python application, potentially leading to server compromise, data theft, or further privilege escalation.

Recommendation

Update pypdftk to a version later than 0.5 or validate and sanitize pdf_path and out_file parameters before passing them to the functions.

Related vulnerabilities

Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS