中危 filter_var (FILTER_VALIDATE_URL) 中的过滤器绕过 (CVE-2024-5458)

CVE编号

CVE-2024-5458

利用情况

暂无

补丁情况

官方补丁

披露时间

2024-06-10
漏洞描述
In PHP versions 8.1.* before 8.1.29, 8.2.* before 8.2.20, 8.3.* before 8.3.8, due to a code logic error, filtering functions such as filter_var when validating URLs (FILTER_VALIDATE_URL) for certain types of URLs the function will result in invalid user information (username + password part of URLs) being treated as valid user information. This may lead to the downstream code accepting invalid URLs as valid and parsing them incorrectly.
解决建议
建议您更新当前系统或软件至最新版,完成漏洞的修复。
受影响软件情况
# 类型 厂商 产品 版本 影响面
1
运行在以下环境
应用 php php * From
(including)
7.3.27
Up to
(including)
7.3.33
运行在以下环境
应用 php php * From
(including)
7.4.15
Up to
(including)
7.4.33
运行在以下环境
应用 php php * From
(including)
8.0.2
Up to
(including)
8.0.30
运行在以下环境
应用 php php * From
(including)
8.1.0
Up to
(excluding)
8.1.29
运行在以下环境
应用 php php * From
(including)
8.2.0
Up to
(excluding)
8.2.20
运行在以下环境
应用 php php * From
(including)
8.3.0
Up to
(excluding)
8.3.8
运行在以下环境
系统 alpine_3.19 php81 * Up to
(excluding)
8.2.20-r0
运行在以下环境
系统 fedoraproject fedora 40 -
运行在以下环境
系统 fedora_39 php * Up to
(excluding)
8.2.20-1.fc39
运行在以下环境
系统 fedora_40 php * Up to
(excluding)
8.3.8-1.fc40
阿里云评分
4.8
  • 攻击路径
    本地
  • 攻击复杂度
    困难
  • 权限要求
    管控权限
  • 影响范围
    有限影响
  • EXP成熟度
    未验证
  • 补丁情况
    官方补丁
  • 数据保密性
    无影响
  • 数据完整性
    无影响
  • 服务器危害
    无影响
  • 全网数量
    N/A
CWE-ID 漏洞类型
CWE-345 对数据真实性的验证不充分
阿里云安全产品覆盖情况