CVE-2026-25494
IP Bypass in Craft GraphQL saveAsset Enables Metadata Access
Publication date: 2026-02-09
Last updated on: 2026-02-19
Assigner: GitHub, Inc.
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| craftcms | craft_cms | 4.0.0 |
| craftcms | craft_cms | 4.0.0 |
| craftcms | craft_cms | 4.0.0 |
| craftcms | craft_cms | 4.0.0 |
| craftcms | craft_cms | 5.0.0 |
| craftcms | craft_cms | From 4.0.0 (exc) to 4.16.18 (exc) |
| craftcms | craft_cms | From 5.0.0 (exc) to 5.8.22 (exc) |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-918 | 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. |
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
This vulnerability exists in the Craft platform versions 4.0.0-RC1 through 4.16.17 and 5.0.0-RC1 through 5.8.21. The issue arises because the saveAsset GraphQL mutation uses the PHP function filter_var with the FILTER_VALIDATE_IP flag to block certain IP addresses. However, this function does not recognize alternative IP notations such as hexadecimal or mixed formats. As a result, attackers can bypass the IP blocklist by using these alternative notations and gain unauthorized access to cloud metadata services.
This vulnerability has been fixed in versions 4.16.18 and 5.8.22 of Craft.
How can this vulnerability impact me? :
The vulnerability allows attackers to bypass IP address blocklists and access cloud metadata services that should be restricted. This unauthorized access can lead to exposure of sensitive cloud environment information, potentially enabling further attacks such as privilege escalation, data exfiltration, or unauthorized resource manipulation.
How does this vulnerability affect compliance with common standards and regulations (like GDPR, HIPAA)?:
I don't know
How can this vulnerability be detected on my network or system? Can you suggest some commands?
I don't know
What immediate steps should I take to mitigate this vulnerability?
To mitigate this vulnerability, you should upgrade Craft to version 4.16.18 or later, or version 5.8.22 or later, where the issue has been patched.