CVE-2026-25494
Undergoing Analysis Undergoing Analysis - In Progress
IP Bypass in Craft GraphQL saveAsset Enables Metadata Access

Publication date: 2026-02-09

Last updated on: 2026-02-19

Assigner: GitHub, Inc.

Description
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 uses filter_var(..., FILTER_VALIDATE_IP) to block a specific list of IP addresses. However, alternative IP notations (hexadecimal, mixed) are not recognized by this function, allowing attackers to bypass the blocklist and access cloud metadata services. This issue is patched in versions 4.16.18 and 5.8.22.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-02-09
Last Modified
2026-02-19
Generated
2026-06-16
AI Q&A
2026-02-09
EPSS Evaluated
2026-06-15
NVD
EUVD
Affected Vendors & Products
Showing 7 associated CPEs
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
CWE Icon
KEV
KEV Icon
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 Quick Actions
Instant insights powered by AI
Executive Summary

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.

Impact Analysis

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.

Compliance Impact

I don't know

Detection Guidance

I don't know

Mitigation Strategies

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.

Chat Assistant
Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-25494. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70
EPSS Chart