Craft is a platform for creating digital experiences. In Craft versions 4.0.0-RC1 through 4.16.17 and 5.0.0-RC1 through 5.8.21, the saveAsset GraphQL mutation validates the initial URL hostname and resolved IP against a blocklist, but Guzzle follows HTTP redirects by default. An attacker can bypass all SSRF protections by hosting a redirect that points to cloud metadata endpoints or any internal IP addresses. This issue is patched in versions 4.16.18 and 5.8.22.
The web server receives a URL or similar request from an upstream component and retrieves the contents of this URL, but it does not sufficiently ensure that the request is being sent to the expected destination.
| Name | Vendor | Start Version | End Version |
|---|---|---|---|
| Craft_cms | Craftcms | 4.0.0 (excluding) | 4.16.18 (excluding) |
| Craft_cms | Craftcms | 5.0.0 (excluding) | 5.8.22 (excluding) |
| Craft_cms | Craftcms | 4.0.0 (including) | 4.0.0 (including) |
| Craft_cms | Craftcms | 4.0.0-rc1 (including) | 4.0.0-rc1 (including) |
| Craft_cms | Craftcms | 4.0.0-rc2 (including) | 4.0.0-rc2 (including) |
| Craft_cms | Craftcms | 4.0.0-rc3 (including) | 4.0.0-rc3 (including) |
| Craft_cms | Craftcms | 5.0.0 (including) | 5.0.0 (including) |
| Craft_cms | Craftcms | 5.0.0-rc1 (including) | 5.0.0-rc1 (including) |