CVE-2025-54418 (CNNVD-202507-3524)

CRITICAL
中文标题:
CodeIgniter 操作系统命令注入漏洞
英文标题:
CodeIgniter4's ImageMagick Handler has Command Injection Vulnerability
CVSS分数: 9.8
发布时间: 2025-07-28 14:47:20
漏洞类型: 授权问题
状态: PUBLISHED
数据质量分数: 0.30
数据版本: v3
漏洞描述
中文描述:

CodeIgniter是Codeigniter开源的一个轻量级、快速、灵活和安全的 PHP 全栈 Web 框架。 CodeIgniter 4.6.2之前版本存在操作系统命令注入漏洞,该漏洞源于ImageMagick处理用户控制文件名或文本时存在命令注入。

英文描述:

CodeIgniter is a PHP full-stack web framework. A command injection vulnerability present in versions prior to 4.6.2 affects applications that use the ImageMagick handler for image processing (`imagick` as the image library) and either allow file uploads with user-controlled filenames and process uploaded images using the `resize()` method or use the `text()` method with user-controlled text content or options. An attacker can upload a file with a malicious filename containing shell metacharacters that get executed when the image is processed or provide malicious text content or options that get executed when adding text to images Users should upgrade to v4.6.2 or later to receive a patch. As a workaround, switch to the GD image handler (`gd`, the default handler), which is not affected by either vulnerability. For file upload scenarios, instead of using user-provided filenames, generate random names to eliminate the attack vector with `getRandomName()` when using the `move()` method, or use the `store()` method, which automatically generates safe filenames. For text operations, if one must use ImageMagick with user-controlled text, sanitize the input to only allow safe characters and validate/restrict text options.

CWE类型:
CWE-78
标签:
(暂无数据)
受影响产品
厂商 产品 版本 版本范围 平台 CPE
codeigniter4 CodeIgniter4 < 4.6.2 - - cpe:2.3:a:codeigniter4:codeigniter4:<_4.6.2:*:*:*:*:*:*:*
codeigniter codeigniter * - - cpe:2.3:a:codeigniter:codeigniter:*:*:*:*:*:*:*:*
解决方案
中文解决方案:
(暂无数据)
英文解决方案:
(暂无数据)
临时解决方案:
(暂无数据)
参考链接
https://github.com/codeigniter4/CodeIgniter4/security/advisories/GHSA-9952-gv64-x94c x_refsource_CONFIRM
cve.org
访问
https://github.com/codeigniter4/CodeIgniter4/commit/e18120bff1da691e1d15ffc1bf553ae7411762c0 x_refsource_MISC
cve.org
访问
https://cwe.mitre.org/data/definitions/78.html x_refsource_MISC
cve.org
访问
https://owasp.org/www-community/attacks/Command_Injection x_refsource_MISC
cve.org
访问
CVSS评分详情
3.1 (cna)
CRITICAL
9.8
CVSS向量: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
机密性
HIGH
完整性
HIGH
可用性
HIGH
时间信息
发布时间:
2025-07-28 14:47:20
修改时间:
2025-07-28 17:19:14
创建时间:
2025-11-11 15:40:42
更新时间:
2025-11-11 16:00:02
利用信息
暂无可利用代码信息
数据源详情
数据源 记录ID 版本 提取时间
CVE cve_CVE-2025-54418 2025-11-11 15:23:28 2025-11-11 07:40:42
NVD nvd_CVE-2025-54418 2025-11-11 15:00:57 2025-11-11 07:48:29
CNNVD cnnvd_CNNVD-202507-3524 2025-11-11 15:12:52 2025-11-11 08:00:02
版本与语言
当前版本: v3
主要语言: EN
支持语言:
EN ZH
安全公告
暂无安全公告信息
变更历史
v3 CNNVD
2025-11-11 16:00:02
vulnerability_type: 未提取 → 授权问题; cnnvd_id: 未提取 → CNNVD-202507-3524; data_sources: ['cve', 'nvd'] → ['cnnvd', 'cve', 'nvd']
查看详细变更
  • vulnerability_type: 未提取 -> 授权问题
  • cnnvd_id: 未提取 -> CNNVD-202507-3524
  • data_sources: ['cve', 'nvd'] -> ['cnnvd', 'cve', 'nvd']
v2 NVD
2025-11-11 15:48:29
affected_products_count: 1 → 2; data_sources: ['cve'] → ['cve', 'nvd']
查看详细变更
  • affected_products_count: 1 -> 2
  • data_sources: ['cve'] -> ['cve', 'nvd']