MediumGHSA-j2hp-6m75-v4j4CVE-2025-24354GO-2025-3422

imgproxy is vulnerable to SSRF against 0.0.0.0

Published 27 Jan 2025 · Updated 28 Jan 2025

Is your project on an affected github.com/imgproxy/imgproxy?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Go apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Affected package

Affected
<3.27.2
Fixed in
3.27.2
Update to the fixed version for your release line, for example:go get github.com/imgproxy/imgproxy@v3.27.2

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.

Is GHSA-j2hp-6m75-v4j4 in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected github.com/imgproxy/imgproxy, and gives you the command that fixes it.

More advisories for github.com/imgproxy/imgproxy

  • LowCVE-2026-123615imgproxy has out-of-bounds heap read/write in ICO loader BMP header reconstruction that allows unauthenticated remote worker crash in github.com/imgproxy/imgproxy · 5 Nov 2026
  • LowCVE-2026-123614imgproxy has integer overflow in imgproxy ICO loader that causes denial of service and may permit remote code execution in github.com/imgproxy/imgproxy · 5 Nov 2026
  • LowCVE-2026-123616imgproxy has unbounded memory allocation in ICO loader that allows unauthenticated memory-exhaustion DoS via crafted data_size field in github.com/imgproxy/imgproxy · 5 Nov 2026
  • CriticalCVE-2026-123614imgproxy has integer overflow in imgproxy ICO loader that causes denial of service and may permit remote code execution · 30 Oct 2026
  • LowCVE-2023-30019imgproxy is vulnerable to Server-Side Request Forgery in github.com/imgproxy/imgproxy · 20 Aug 2024
  • LowCVE-2023-1496imgproxy Cross-site Scripting vulnerability in github.com/imgproxy/imgproxy · 20 Aug 2024
github.com/imgproxy/imgproxy security overview

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.