Gotenberg: Unauthenticated RCE via ExifTool Metadata Key Injection
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| gotenberg | gotenberg | affected |
|
No data.
| Vendor | Product | Versions | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Gotenberg | Gotenberg |
|
| Source | ID | Title |
|---|---|---|
Github GHSA |
GHSA-rqgh-gxv4-6657 | Gotenberg has Unauthenticated RCE via ExifTool Metadata Key Injection |
No CVSS v4.0
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: 3.0% (3.013% probability within 30 days)
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Thecodingmachine
Thecodingmachine gotenberg |
|
| CPEs | cpe:2.3:a:thecodingmachine:gotenberg:*:*:*:*:*:*:*:* | |
| Vendors & Products |
Thecodingmachine
Thecodingmachine gotenberg |
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
ssvc
|
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Gotenberg
Gotenberg gotenberg |
|
| Vendors & Products |
Gotenberg
Gotenberg gotenberg |
| Type | Values Removed | Values Added |
|---|---|---|
| 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. | |
| Title | Gotenberg: Unauthenticated RCE via ExifTool Metadata Key Injection | |
| Weaknesses | CWE-78 | |
| References |
| |
| Metrics |
cvssV3_1
|