CVE-2026-36576 Details
Description
An OS command injection vulnerability in the app.py component of openlabs docker-wkhtmltopdf-aas up to commit 9f50579 allows attackers to execute arbitrary commands via a crafted POST request.
A command injection vulnerability has been identified in the 'app.py' component of Openlabs Docker Wkhtmltopdf Aas, affecting all versions prior to the latest commit '9f50579'. This vulnerability allows remote attackers to execute arbitrary commands on the server with root privileges. The issue arises from the application accepting user-supplied options via JSON POST requests, which are then used to construct a shell command for 'wkhtmltopdf' without proper validation or sanitization. Exploitation can be achieved by injecting commands through option values or keys, leading to unauthorized command execution.
To address this vulnerability, it is recommended to replace the current command execution method with a safer alternative that does not involve shell evaluation. This can be done by using 'subprocess.run()' with a list of arguments, allowing for better control and validation of the input. Additionally, implementing an allowlist of permitted 'wkhtmltopdf' options and validating their values before processing can help mitigate the risk of command injection.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jun 3, 2026CISA-ADP
Assessed Jun 3, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/openlabs/docker-wkhtmltopdf-aas/issues/36 | CISA-ADP | ExploitIssue TrackingTechnical AnalysisVendor |
| https://github.com/openlabs/docker-wkhtmltopdf-aas | [email protected] | Vendor |
| https://github.com/openlabs/docker-wkhtmltopdf-aas/blob/9f505797671c3339520dec5fc01dff3a6f324f2e/app.py#L40 | [email protected] | Source CodeVendor |
| https://github.com/openlabs/docker-wkhtmltopdf-aas/issues/36 | [email protected] | ExploitIssue TrackingTechnical AnalysisVendor |
| https://hub.docker.com/r/openlabs/docker-wkhtmltopdf-aas | [email protected] | Vendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| openlabs docker-wkhtmltopdf-aas | <= 9f50579 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 22, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 3, 2026 | CVE Modified | CISA-ADP |
| Jun 3, 2026 | New CVE Received | [email protected] |
Volerion