CVE-2026-42589Gotenberg OS Command Injection
Gotenberg has Unauthenticated RCE via ExifTool Metadata Key Injection
Published May 7, 2026 · Updated Oct 28, 2026 · Also known as GHSA-rqgh-gxv4-6657, GO-2026-5636
Key Facts
Patch immediately- CVE-2026-42589 is a critical-severity vulnerability (CVSS 9.8 v3.1) affecting Gotenberg (Thecodingmachine), github.com/gotenberg/gotenberg/v7 (go), github.com/gotenberg/gotenberg/v8 (go) and 1 more product.
- It is exploited in the wild, listed in CIRCL KEV, Industry KEV feed since Jun 23, 2026. A public exploit is reported by tracking sources, but no code link is listed yet.
- EPSS estimates a 3.0% probability of exploitation in the next 30 days.
- Fixed versions are available, including govulncheck-vulndb 0.0.20260723T184607-160000.1.1, Gotenberg 8.31.0.
- Brandefense priority: patch immediately, because it is listed as exploited in the wild.
Scores
CVSS v3.1
9.8
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS (30-day exploit likelihood)
3.0%
Higher than 87.4% of all scored CVEs
Exploit maturity
Exploited (KEV)
ATLAS score
66/100
Publication score, see How it works
Exploitation Verdict
KEV listed
Jun 23, 2026
47 days after publication
Federal due date
None
No federal due date
Ransomware use
Not reported
Attributed actors
None named
Exploit & Defence Guidance
Exploit maturity
Exploited (KEV)
Public exploit code
3
Proof-of-concept links
In-the-wild evidence
10
Reports of active use
Advisories And Exploit References
Description
Gotenberg is a Docker-powered stateless API for PDF files. Prior to 8.31.0, Gotenberg's /forms/pdfengines/metadata/write HTTP endpoint accepts a JSON metadata object and passes its keys directly to ExifTool via the go-exiftool library. No validation is performed on key characters.
A \n embedded in a JSON key splits the ExifTool stdin stream into a new argument line, allowing an attacker to inject arbitrary ExifTool flags — including -if, which evaluates Perl expressions. This achieves unauthenticated OS command execution in a single HTTP request.
The response is HTTP 200 with a valid PDF, making the attack transparent to basic monitoring. This vulnerability is fixed in 8.31.0.
Known-Exploited Catalog Listings
| Catalog | Added | Remediation due | Ransomware use |
|---|---|---|---|
| CIRCL KEV | Jun 23, 2026 | n/a | Not reported |
| Industry KEV feed | Jun 23, 2026 | n/a | Not reported |
Affected Products
5 affected entries in total| Product | Affected versions | Fixed in |
|---|---|---|
| GotenbergThecodingmachine | < 8.31.0 | 8.31.0 |
| github.com/gotenberg/gotenberg/v7go | See advisory | n/a |
| github.com/gotenberg/gotenberg/v8go | >= 8.29.1 | n/a |
| govulncheck-vulndbopensuse | See advisory | 0.0.20260723T184607-160000.1.1 |
Patched Releases
govulncheck-vulndb
0.0.20260723T184607-160000.1.1
Gotenberg
8.31.0
Timeline
Publicly disclosed
May 7, 2026
Added to CIRCL KEV
Jun 23, 2026
Added to Industry KEV feed
Jun 23, 2026
Last updated
Oct 28, 2026
Weakness Type
- CWE-78 Improper Neutralization of Special Elements used in an OS Command
References
- advisorycve.org · CVERecord
- advisorynvd.nist.gov · CVE-2026-42589
- advisoryGHSA advisory
- articlesuse.com · CVE-2026-42589
- articlehttps://github.com/gotenberg/gotenberg/security/advisories/GHSA-rqgh-gxv4-6657
FAQ
Common Questions.
Gotenberg is a Docker-powered stateless API for PDF files.
Affected: Gotenberg (Thecodingmachine) versions < 8.31.0; github.com/gotenberg/gotenberg/v7 (go); github.com/gotenberg/gotenberg/v8 (go) versions >= 8.29.1, among others. The full list is in the CVE brief.
It is exploited in the wild, listed in CIRCL KEV, Industry KEV feed since Jun 23, 2026.
No, it is not currently listed in the CISA Known Exploited Vulnerabilities catalog.
A public exploit is reported by tracking sources, but no code link is listed yet.
Fixed versions are available, including govulncheck-vulndb 0.0.20260723T184607-160000.1.1, Gotenberg 8.31.0.
Brandefense priority: patch immediately, because it is listed as exploited in the wild.
Is CVE-2026-42589 On Your Attack Surface?
Brandefense matches it against the products discovered on your perimeter and opens a finding the day a CVE like this is listed.
Request A Demo