Advisory

GHSA-j2hp-6m75-v4j4

Also known as: CVE-2025-24354, GO-2025-3422

Summary

imgproxy is vulnerable to SSRF against 0.0.0.0

Details

Summary

Imgproxy does not block the 0.0.0.0 address, even with IMGPROXY_ALLOW_LOOPBACK_SOURCE_ADDRESSES set to false. This can expose services on the local host.

Details

imgproxy protects against SSRF against a loopback address with the following check (source):

if !config.AllowLoopbackSourceAddresses && ip.IsLoopback() {
	return ErrSourceAddressNotAllowed
}

This check is insufficient to prevent accessing services on the local host, as services may receive traffic on 0.0.0.0. Go's IsLoopback (source) strictly follows the definition of loopback IPs beginning with 127. 0.0.0.0 is not blocked.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2025-01-27 20:50 UTC
Modified
2025-01-28 15:41 UTC

Affected packages and fixes

github.com/imgproxy/imgproxy

Go · All systems

Affected

  • introduced 0, fixed 3.27.2 (semver)

Fixed versions

3.27.2

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences