中危 Moment.js 资源管理错误漏洞(CVE-2022-31129)

CVE编号

CVE-2022-31129

利用情况

暂无

补丁情况

官方补丁

披露时间

2022-07-07
漏洞描述
Moment.js是一个 JavaScript 日期库。用于解析、验证、操作和格式化日期。

Moment.js 存在安全漏洞,该漏洞源于使用了低效的解析算法。在没有健全长度检查的情况下将用户提供的字符串传递给时刻构造函数的用户很容易受到正则拒绝服务攻击。
解决建议
目前厂商已发布升级补丁以修复漏洞,补丁获取链接:

https://github.com/moment/moment/pull/6015#issuecomment-1152961973
受影响软件情况
# 类型 厂商 产品 版本 影响面
1
运行在以下环境
应用 momentjs moment * From
(including)
2.18.0
Up to
(excluding)
2.29.4
运行在以下环境
系统 debian_10 node-moment * Up to
(excluding)
2.24.0+ds-1+deb10u1
运行在以下环境
系统 debian_11 node-moment * Up to
(excluding)
2.29.1+ds-2+deb11u2
运行在以下环境
系统 debian_12 node-moment * Up to
(excluding)
2.29.4+ds-1
运行在以下环境
系统 fedora_35 python-notebook * Up to
(excluding)
6.4.0-4.fc35
运行在以下环境
系统 fedora_36 rhsm-icons * Up to
(excluding)
4-1.fc36
运行在以下环境
系统 fedora_37 rhsm-icons * Up to
(excluding)
4-1.fc37
运行在以下环境
系统 fedora_39 python-notebook * Up to
(excluding)
7.0.0-1.fc39
运行在以下环境
系统 ubuntu_18.04 node-moment * Up to
(excluding)
2.20.1+ds-1ubuntu0.1
运行在以下环境
系统 ubuntu_20.04 node-moment * Up to
(excluding)
2.24.0+ds-2ubuntu0.1
运行在以下环境
系统 ubuntu_22.04 node-moment * Up to
(excluding)
2.29.1+ds-3ubuntu0.2
阿里云评分
6.5
  • 攻击路径
    远程
  • 攻击复杂度
    复杂
  • 权限要求
    无需权限
  • 影响范围
    全局影响
  • EXP成熟度
    未验证
  • 补丁情况
    官方补丁
  • 数据保密性
    无影响
  • 数据完整性
    传输被破坏
  • 服务器危害
    DoS
  • 全网数量
    N/A
CWE-ID 漏洞类型
CWE-1333 Inefficient Regular Expression Complexity
CWE-400 未加控制的资源消耗(资源穷尽)
NVD-CWE-Other
阿里云安全产品覆盖情况