PT-2025-31111 · Unknown · Codeigniter +1
Published
2025-07-26
·
Updated
2025-08-01
·
CVE-2025-54418
10
Critical
Base vector | Vector | AV:N/AC:L/Au:N/C:C/I:C/A:C |
**Name of the Vulnerable Software and Affected Versions:**
CodeIgniter versions prior to 4.6.2
**Description:**
CodeIgniter is a PHP full-stack web framework susceptible to a command injection vulnerability. This issue affects applications utilizing the ImageMagick handler (`imagick`) for image processing and either allowing file uploads with user-controlled filenames processed with the `resize()` method or using the `text()` method with user-controlled text content or options. An attacker can exploit this by uploading a file with a malicious filename containing shell metacharacters, which are executed during image processing, or by providing malicious text content or options that are executed when adding text to images. Approximately 2,254,632 systems are potentially affected worldwide.
**Recommendations:**
Upgrade to version 4.6.2 or later.
As a workaround, switch to the GD image handler (`gd`), which is not affected.
For file upload scenarios, use `getRandomName()` with the `move()` method or the `store()` method to generate safe filenames instead of using user-provided filenames.
For text operations, sanitize user-controlled text input to allow only safe characters and validate/restrict text options.
Fix
RCE
OS Command Injection
Weakness Enumeration
Related Identifiers
Affected Products
References · 26
- https://bdu.fstec.ru/vul/2025-09184 · Security Note
- https://osv.dev/vulnerability/CVE-2025-54418 · Vendor Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2025-54418 · Security Note
- https://osv.dev/vulnerability/GHSA-9952-gv64-x94c · Vendor Advisory
- https://github.com/codeigniter4/CodeIgniter4⭐ 5664 🔗 1946 · Note
- https://github.com/codeigniter4/CodeIgniter4/security/advisories/GHSA-9952-gv64-x94c⭐ 5663 🔗 1946 · Note
- https://github.com/codeigniter4/CodeIgniter4/commit/e18120bff1da691e1d15ffc1bf553ae7411762c0⭐ 5663 🔗 1946 · Note
- https://github.com/advisories/GHSA-9952-gv64-x94c · Note
- https://t.me/TheDarkWebInformer/19113 · Telegram Post
- https://twitter.com/CveFindCom/status/1949849818022514760 · Twitter Post
- https://reddit.com/r/CVEWatch/comments/1md2llk/top_10_trending_cves_30072025 · Reddit Post
- https://cwe.mitre.org/data/definitions/78.html · Note
- https://twitter.com/VulmonFeeds/status/1949941800698867965 · Twitter Post
- https://t.me/CVEtracker/28580 · Telegram Post
- https://twitter.com/CCBalert/status/1950201828437528947 · Twitter Post