Statamic Vulnerable to Server-Side Request Forgery via Glide (DNS rebinding)
As published by the sources
Affected packages
- Affected
<5.73.24 || >=6.0.0,<6.20.1Fixed in5.73.246.20.1
Derived from the fixed versions above
What to do
Upgrade statamic/cms to the fixed version in your release line: 5.73.24, 6.20.1.
composer update statamic/cms --with-dependencies
To see which version you have installed, run composer show vendor/package. Running composer audit lists the known advisories that match your installed versions.
Quoted from the original advisory
Details
Impact
The Glide image proxy's URL validation could be bypassed using DNS rebinding. The remote hostname was validated as publicly routable, but resolved again when the image was actually fetched, so an attacker controlling the hostname's DNS could rebind it to an internal address after validation. This could cause the server to make HTTP requests to internal addresses — including loopback, private network, and cloud metadata endpoints.
This affects sites that pass user-supplied URLs to Glide.
Patches
This has been fixed in 5.73.24 and 6.20.1.