CVE-2025-24354
JSON

5.3medium

imgproxy is vulnerable to SSRF against 0.0.0.0

Severity
5.3medium CVSS:3.1 by GitHub_M
Exploit likelihood
0.90% (higher than 60% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-j2hp-6m75-v4j4GO-2025-3422

Description

imgproxy is server for resizing, processing, and converting images. 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. This vulnerability is fixed in 3.27.2.

Affected

Product or packageVersionsReported by
imgproxy imgproxy< 3.27.2CVE List
github.com/imgproxy/imgproxy (Go)before 3.27.2, all versionsGitHub Advisory Database, Go Vulnerability Database
github.com/imgproxy/imgproxy/v2 (Go)all versionsGo Vulnerability Database
github.com/imgproxy/imgproxy/v3 (Go)before 3.27.2Go Vulnerability Database

All scores

GitHub_M5.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
GitHub5.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

Classification

CWE-918

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.

What each source says

CVE List

imgproxy is server for resizing, processing, and converting images. 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. This vulnerability is fixed in 3.27.2.

GitHub Advisory Database
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.

Go Vulnerability Database

imgproxy is vulnerable to SSRF against 0.0.0.0 in github.com/imgproxy/imgproxy

NVD (es)

imgproxy es un servidor para redimensionar, procesar y convertir imágenes. Imgproxy no bloquea la dirección 0.0.0.0, incluso si IMGPROXY_ALLOW_LOOPBACK_SOURCE_ADDRESSES está configurado como falso. Esto puede exponer los servicios en el host local. Esta vulnerabilidad se corrigió en 3.27.2.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-24354 changed 2025-02-12CVE Terms of Use
GitHub Advisory DatabaseGHSA-j2hp-6m75-v4j4 changed 2025-01-28CC-BY-4.0
Go Vulnerability DatabaseGO-2025-3422 changed 2026-03-03CC-BY-4.0
NVDCVE-2025-24354 changed 2026-06-17Public domain