Skip to main content
VulnerabilityPublished

CVE-2026-25495: craftcms cms · SQL Injection

Affects craftcms cmsSource CVE Database V5

0

Not known to be exploited · CVSS 8.7 High : upgrade to 5.8.22 or 4.16.18 soon.

Data as of 26 Oct 2026, 10:12 UTC

CVSS 4.0 base score
8.7High
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.5% chance of exploitation in 30 days – higher than 46% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 5.8.22, 4.16.18
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 9 Feb 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.

What to do

Upgrade craftcms cms to 5.8.22 or 4.16.18.

Affected software

ProductAffectedFixed in
craftcmscmsAffected
  • >=5.0.0-RC1 <5.8.22
Fixed in
  • 5.8.22
craftcmscmsAffected
  • >=4.0.0-RC1 <4.16.18
Fixed in
  • 4.16.18

AI-suggested

European organizations should immediately verify their Craft CMS version and upgrade to 4.16.18 or 5.8.22 or later, where the vulnerability is patched. If immediate upgrading is not feasible, restrict Control Panel access strictly to trusted personnel and enforce strong authentication mechanisms such as multi-factor authentication (MFA) to reduce the risk of credential compromise. Implement web application firewalls (WAFs) with custom rules to detect and block suspicious payloads targeting the criteria[orderBy] parameter. Conduct thorough auditing and monitoring of Control Panel access logs to detect anomalous activities. Additionally, review and harden database permissions to limit the potential damage of SQL injection attacks. Regularly back up databases and test restoration procedures to mitigate the impact of potential data corruption or loss. Finally, educate administrators about the risks of SQL injection and the importance of applying vendor patches promptly.

Description

CVE-2026-25495 is a high-severity SQL Injection vulnerability in Craft CMS versions 4.0.0-RC1 through 4.16.17 and 5.0.0-RC1 through 5.8.21. The flaw exists in the element-indexes/get-elements endpoint, specifically via the criteria[orderBy] parameter in the JSON request body, which is not properly sanitized before being used in an SQL ORDER BY clause.

References

Community reviews

Loading reviews…