Skip to content
OpenAdvisories
High · 8.2 CVE-2024-21527 EUVD-2024-19196GO-2024-2996

CVE-2024-21527 in github.com/gotenberg/gotenberg

Published Jul 19, 2024 · Updated Jul 8, 2026 · Assigned by snyk

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 products

VendorProductAffectedFixed
— github.com/gotenberg/gotenberg/v8/pkg/gotenberg < 8.1.0 8.1.0
— github.com/gotenberg/gotenberg/v8/pkg/modules/chromium < 8.1.0 8.1.0
— github.com/gotenberg/gotenberg/v8/pkg/modules/webhook < 8.1.0 8.1.0

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/gotenberg/gotenberg/v7 all versions — GO-2024-2996
Go github.com/gotenberg/gotenberg/v8 < 8.1.0 8.1.0 GO-2024-2996

References