Skip to content

CVE-2026-25492 Craft has a save_images_Asset graphql mutation can be abused to exfiltrate AWS credentials of underlying host

MediumCVSS 5.3 EPSS 0.46%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: partial
Technology
PHPCloud Platforms

Description

Craft CMS is a content management system. In Craft versions 3.5.0 through 4.16.17 and 5.0.0-RC1 through 5.8.21, the save_images_Asset GraphQL mutation can be abused to fetch internal URLs by providing a domain name that resolves to an internal IP address, bypassing hostname validation. When a non-image file extension such as .txt is allowed, downstream image validation is bypassed, which can allow an authenticated attacker with permission to use save_images_Asset to retrieve sensitive data such as AWS instance metadata credentials from the underlying host. This issue is patched in versions 4.16.18 and 5.8.22.

Upgrade path

3 packages: 2 fixed.

PackageAffectedFixed inStatus
craftcms craft cms >= 3.5.0, < 4.16.18; >= 5.0.0, < 5.8.22 4.16.18, 5.8.22 Fixed
craftcms/craft(Packagist) = 4.0.0; = 4.1.0; = 4.2.0; = 4.3.0 +23 more 4.16.18, 5.8.22 Fixed
craftcms cms = >= 3.5.0, < 4.16.18; = >= 5.0.0-RC1, < 5.8.22 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
craftcms/craft(Packagist) >= 5.0.0-RC1, < 5.8.22 5.8.22
craftcms/craft(Packagist) = 5.0.0 No fix listed
craftcms/craft(Packagist) = 5.0.1 No fix listed
craftcms/craft(Packagist) = 5.1.0 No fix listed
craftcms/craft(Packagist) = 5.2.0 No fix listed
craftcms/craft(Packagist) = 5.3.0 No fix listed
craftcms/craft(Packagist) = 5.3.1 No fix listed
craftcms/craft(Packagist) = 5.3.2 No fix listed
craftcms/craft(Packagist) = 5.4.0 No fix listed
craftcms/craft(Packagist) = 5.4.1 No fix listed
craftcms/craft(Packagist) = 5.5.0 No fix listed
craftcms/craft(Packagist) = 5.5.1 No fix listed
craftcms/craft(Packagist) = 5.6.0 No fix listed
craftcms/craft(Packagist) = 5.7.0 No fix listed
craftcms/craft(Packagist) = 5.8.0 No fix listed
craftcms/craft(Packagist) >= 3.5.0, < 4.16.18 4.16.18
craftcms/craft(Packagist) = 4.0.0 No fix listed
craftcms/craft(Packagist) = 4.1.0 No fix listed
craftcms/craft(Packagist) = 4.2.0 No fix listed
craftcms/craft(Packagist) = 4.3.0 No fix listed
craftcms/craft(Packagist) = 4.3.1 No fix listed
craftcms/craft(Packagist) = 4.4.0 No fix listed
craftcms/craft(Packagist) = 4.5.0 No fix listed
craftcms/craft(Packagist) = 4.6.0 No fix listed
craftcms/craft(Packagist) = 4.7.0 No fix listed
Show 6 more
ProductAffected versionsFixed in
craftcms cms = >= 5.0.0-RC1, < 5.8.22 No fix listed
craftcms cms = >= 3.5.0, < 4.16.18 No fix listed
craftcms/craft(Packagist) >= 5.0.0-RC1, <= 5.8.21 No fix listed
craftcms/craft(Packagist) >= 3.5.0, <= 4.16.17 No fix listed
craftcms craft cms >= 3.5.0, < 4.16.18 4.16.18
craftcms craft cms >= 5.0.0, < 5.8.22 5.8.22

References