Vulnerability · Published Jul 19, 2024 · Assigned by snyk
CVE-2024-21527
High 8.2
In plain English
A high-severity server-side request forgery in github.com/gotenberg/gotenberg/v8/pkg/gotenberg. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 48% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
Versions of the package github.com/gotenberg/gotenberg/v8/pkg/gotenberg before 8.1.0; versions of the package github.com/gotenberg/gotenberg/v8/pkg/modules/chromium before 8.1.0; versions of the package github.com/gotenberg/gotenberg/v8/pkg/modules/webhook before 8.1.0 are vulnerable to Server-side Request Forgery (SSRF) via the /convert/html endpoint when a request is made to a file via localhost, such as <iframe src="\\localhost/etc/passwd">. By exploiting this vulnerability, an attacker can achieve local file inclusion, allowing of sensitive files read on the host system. Workaround An alternative is using either or both --chromium-deny-list and --chromium-allow-list flags.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Go | github.com/gotenberg/gotenberg/v7 | no fix listed | GO-2024-2996 |
| Go | github.com/gotenberg/gotenberg/v8 | 8.1.0 | GO-2024-2996 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| n/a | github.com/gotenberg/gotenberg/v8/pkg/gotenberg | 0 – before 8.1.0 |
| n/a | github.com/gotenberg/gotenberg/v8/pkg/modules/chromium | 0 – before 8.1.0 |
| n/a | github.com/gotenberg/gotenberg/v8/pkg/modules/webhook | 0 – before 8.1.0 |
Weakness: CWE-918 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N/E:P
References
- https://security.snyk.io/vuln/SNYK-GOLANG-GITHUBCOMGOTENBERGGOTENBERGV8PKGGOTENBERG-7537081
- https://security.snyk.io/vuln/SNYK-GOLANG-GITHUBCOMGOTENBERGGOTENBERGV8PKGMODULESCHROMIUM-7537082
- https://security.snyk.io/vuln/SNYK-GOLANG-GITHUBCOMGOTENBERGGOTENBERGV8PKGMODULESWEBHOOK-7537083
- https://github.com/gotenberg/gotenberg/releases/tag/v8.1.0
- https://github.com/gotenberg/gotenberg/commit/ad152e62e5124b673099a9103eb6e7f933771794
- https://gist.github.com/filipochnik/bc88a3d1cc17c07cec391ee98e1e6356