Hackers Exploit Critical Craft CMS Flaws; Hundreds of Servers Likely Compromised
Vulnerabilities mentionedAll →
| CVE | Vulnerability | CVSS | EPSS | Flags | Affected | Exposure | Published |
|---|---|---|---|---|---|---|---|
| CVE-2024-4990 | Unsafe Reflection in Yii2 Component __set() Enables RCE and Info Disclosure The base Component class in yiisoft/yii2 2.0.48 (CWE-470, unsafe reflection) has a flaw in the __set() magic method: it does not validate that an assigned value is a valid Behavior class name or configuration, allowing attackers to instantiate arbitrary classes. An attacker triggers it by sending attacker-controlled data that the application passes into Component property assignment, supplying chosen class names whose constructors receive parameters and whose setter methods are invoked. Depending on the dependencies installed in the application, this can lead to execution of arbitrary code, retrieval of sensitive information, or unauthorized access; the flaw is network-exploitable with no privileges or user interaction required (CVSS 3.1: 9.1 critical). Any PHP application or CMS built on the Yii 2 framework running the affected version is exposed. A public proof-of-concept is available via huntr, the issue is not yet in CISA KEV, and EPSS assigns an 80.2% probability of exploitation within 30 days (100th percentile); related headlines report exploitation of flaws in Craft CMS, a Yii-based application, indicating the ecosystem is actively targeted. Do: Upgrade yiisoft/yii2 to a release newer than 2.0.48 (the flaw was addressed in 2.0.49) and rebuild/deploy dependent applications. Audit application code for user-controlled input that flows into Component property assignment or __set(), and validate/whitelist class names there. Operators of Yii-based products such as Craft CMS should verify their framework version and apply vendor-supplied updates promptly, given the high EPSS score. | 9.1 | 80% | PoC |
| large≈100,000+ applications and sites built on Yii 2 (framework with tens of millions of Packagist downloads; exact install counts unknown) | |
| CVE-2024-58136 | Regression of Yii 2 Behavior-Attachment Flaw (CVE-2024-4990) Enables In-the-Wild RCE Yii 2 versions before 2.0.52 mishandle the attaching of behaviors defined with an __class array key, reintroducing the flaw fixed for CVE-2024-4990, an unauthenticated remote code execution issue (CWE-424, improper protection of alternate path). The defect is triggered remotely without authentication when a vulnerable application attaches behaviors this way, giving an attacker high-impact code execution (CVSS 9.8). Any application built on a vulnerable Yii 2 release is affected, most prominently Craft CMS sites, which were the target of an observed in-the-wild campaign between February and April 2025. Exploitation is confirmed: the flaw was added to CISA's Known Exploited Vulnerabilities catalog on 2025-05-02, carries an 84.6% EPSS probability of exploitation within 30 days, and a public SensePost writeup documents the active Craft CMS exploitation campaign. The top headline reports that hundreds of servers were likely compromised in that campaign. Do: Upgrade Yii 2 to version 2.0.52 or later; Craft CMS operators should immediately update Craft CMS to its patched release that bundles fixed Yii, and confirm the resolved framework version on the system. Because the campaign ran from February through April 2025, review web/application logs and hosted files for indicators from the SensePost writeup, treating any unpatched internet-facing Yii 2 or Craft CMS host as likely compromised. Federal agencies must apply the KEV required action (vendor mitigations or BOD 22-01 guidance) by the CISA deadline. | 9.8 | 88% | KEV PoC |
| large≈100,000+ internet-facing applications built on Yii 2 (including tens of thousands of Craft CMS sites) | |
| CVE-2025-32432 | Code Injection Enables Remote Code Execution in Craft CMS Craft CMS contains a code injection vulnerability (CWE-94) that allows a remote attacker to execute arbitrary code on affected servers. CISA's listing does not specify the exact attack path or authentication requirements, but the flaw is remotely triggerable and grants arbitrary code execution, which typically means full compromise of the web server and a foothold for follow-on activity such as ransomware (ransomware use is not yet confirmed). Any organization running a Craft CMS instance is in scope, including internet-facing content sites and deployments where the Craft admin panel is reachable from the internet. The vulnerability was added to CISA's Known Exploited Vulnerabilities catalog on 2026-03-20, confirming exploitation in the wild, and EPSS assigns a 99.8% probability of exploitation within 30 days (100th percentile), although no public proof-of-concept is known. No CVSS score has been published yet, so defenders should treat the flaw as urgent given the KEV listing and near-certain EPSS likelihood. Do: Apply the patched Craft CMS release per the vendor's security advisory referenced in CISA's KEV entry (specific fixed version numbers are not provided in the source data), prioritizing internet-exposed instances, and U.S. federal agencies should follow BOD 22-01 requirements for KEV-listed flaws. Until patched, restrict network access to the Craft CMS control panel/admin interface and review web and application logs for signs of code injection or unexpected process execution, since exploitation in the wild is confirmed while ransomware use remains unknown. Given the 99.8% EPSS score and KEV listing, treat discovery and patching of all Craft CMS instances, including headless deployments, as an urgent, time-boxed task. | 10.0 | 100% | KEV PoC |
| mass≈100,000–200,000+ live Craft CMS sites (order of magnitude: ~10^5 internet-facing deployments) | |
| CVE-2025-42599 | Unauthenticated RCE via Stack-Based Buffer Overflow in Qualitia Active! mail 6 Qualitia Active! mail 6 (BuildInfo 6.60.05008561 and earlier) contains a stack-based buffer overflow (CWE-121) that is triggered when the webmail server processes a single specially crafted network request, with no authentication or user interaction required. A remote unauthenticated attacker who sends such a request can execute arbitrary code on the server or crash the service, causing a denial-of-service condition. With a CVSS 3.1 score of 9.8 (AV:N/AC:L/PR:N/UI:N, high impact on confidentiality, integrity, and availability), any internet-exposed deployment is at critical risk; the product is a webmail platform widely deployed by Japanese enterprises, universities, and government organizations. CISA added the flaw to the Known Exploited Vulnerabilities catalog on 2025-04-28, confirming exploitation in the wild, though no public proof-of-concept is known and ransomware use has not been reported. Organizations running affected builds should treat their webmail servers as likely targets and patch per vendor guidance immediately. Do: Upgrade Active! mail 6 to a BuildInfo later than 6.60.05008561, following Qualitia's advisory (JPCERT is the assigning CNA, so its alert should be used as the authoritative update reference). Until patched, restrict internet access to the webmail interface via IP allow-listing or VPN and review server logs for exploitation attempts, since in-the-wild exploitation is confirmed. US federal agencies must apply the required mitigations per vendor instructions and BOD 22-01 timelines, or discontinue use of the product if mitigations are unavailable. | 9.8 | 3% | KEV |
| largelikely on the order of 100,000+ users (mailboxes) across a thousand-plus Japanese organizations, with thousands of internet-exposed webmail servers |
Full article569 words · extracted from thehackernews.com · click to collapse
Ravie LakshmananApr 28, 2025Web Application Security / Vulnerability
Threat actors have been observed exploiting two newly disclosed critical security flaws in Craft CMS in zero-day attacks to breach servers and gain unauthorized access.
The attacks, first observed by Orange Cyberdefense SensePost on February 14, 2025, involve chaining the below vulnerabilities -
- CVE-2024-58136 (CVSS score: 9.0) - An improper protection of alternate path flaw in the Yii PHP framework used by Craft CMS that could be exploited to access restricted functionality or resources (A regression of CVE-2024-4990)
- CVE-2025-32432 (CVSS score: 10.0) - A remote code execution (RCE) vulnerability in Craft CMS (Patched in versions 3.9.15, 4.14.15, and 5.6.17)
According to the cybersecurity company, CVE-2025-32432 resides in a built-in image transformation feature that allows site administrators to keep images to a certain format.
"CVE-2025-32432 relies on the fact that an unauthenticated user could send a POST request to the endpoint responsible for the image transformation and the data within the POST would be interpreted by the server," security researcher Nicolas Bourras said.
"In versions 3.x of Craft CMS, the asset ID is checked before the creation of the transformation object whereas in versions 4.x and 5.x, the asset ID is checked after. Thus, for the exploit to function with every version of Craft CMS, the threat actor needs to find a valid asset ID."
The asset ID, in the context of Craft CMS, refers to the way document files and media are managed, with each asset given a unique ID.
The threat actors behind the campaign have been found to run multiple POST requests until a valid asset ID is discovered, after which a Python script is executed to determine if the server is vulnerable, and if so, download a PHP file on the server from a GitHub repository.
"Between the 10th and the 11th of February, the threat actor improved their scripts by testing the download of filemanager.php to the web server multiple times with a Python script," the researcher said. "The file filemanager.php was renamed to autoload_classmap.php on the 12th of February and was first used on the 14th of February."
![]() |
| Vulnerable Craft CMS Instances by Country |
As of April 18, 2025, an estimated 13,000 vulnerable Craft CMS instances have been identified, out of which nearly 300 have been allegedly compromised.
"If you check your firewall logs or web server logs and find suspicious POST requests to the actions/assets/generate-transform Craft controller endpoint, specifically with the string __class in the body, then your site has at least been scanned for this vulnerability," Craft CMS said in an advisory. "This is not a confirmation that your site has been compromised; it has only been probed."
If there is evidence of compromise, users are advised to refresh security keys, rotate database credentials, reset user passwords out of an abundance of caution, and block malicious requests at the firewall level.
The disclosure comes as an Active! Mail zero-day stack-based buffer overflow vulnerability (CVE-2025-42599, CVSS score: 9.8) has come under active exploitation in cyber attacks targeting organizations in Japan to achieve remote code execution. It has been fixed in version 6.60.06008562.
"If a remote third-party sends a crafted request, it may be possible to execute arbitrary code or cause a denial-of-service (DoS)," Qualitia said in a bulletin.
Found this article interesting? Follow us on Google News, Twitter and LinkedIn to read more exclusive content we post.
Text extracted automatically; images, tables and formatting may be missing. Original: https://thehackernews.com/2025/04/hackers-exploit-critical-craft-cms.html
