GitHub Advisoryadvisory · Go
GHSA-j2hp-6m75-v4j4 imgproxy is vulnerable to SSRF against 0.0.0.0
MEDIUM
Official page ↗
- Aliases
- CVE-2025-24354
- Ecosystem
- Go
- Packages
- github.com/imgproxy/imgproxy
- Severity
- Moderate
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
- Weaknesses
- CWE-918
- Reviewed
- 2025-01-27
Affected packages
• Go github.com/imgproxy/imgproxy: < 3.27.2 → fixed in 3.27.2
Description
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.
Related
Alias · CVE (1)
- CVE-2025-24354 imgproxy is server for resizing, processing, and converting images. vulnerability
Weakness · CWE (1)
- CWE-918 Server-Side Request Forgery weakness