CVE-2024-21896
9.8
CRITICAL
CVSS 3.1
EPSS 1.3%
描述
The permission model protects itself against path traversal attacks by calling path.resolve() on any paths given by the user. If the path is to be treated as a Buffer, the implementation uses Buffer.from() to obtain a Buffer from the result of path.resolve(). By monkey-patching Buffer internals, namely, Buffer.prototype.utf8Write, the application can modify the result of path.resolve(), which leads to a path traversal vulnerability. This vulnerability affects all users using the experimental permission model in Node.js 20 and Node.js 21. Please note that at the time this CVE was issued, the permission model is an experimental feature of Node.js.
如何修補 CVE-2024-21896
要修補 CVE-2024-21896,請將受影響套件升級到下列已修補版本。
- —升級至 20.12.0 或更新版本
- —升級至 20.18.1 或更新版本
CVE-2024-21896 正在被利用嗎?
低 — EPSS 為 1.3%,目前沒有觀察到大規模利用活動。
受影響套件(2)
- >= 20.0.0, < 20.12.0, >= 21.0.0, < 22.1.0
- >= 20.0.0, < 20.18.1, >= 21.0.0, < 22.12.0
CVSS 分數
| 來源 | 版本 | 嚴重程度 | 向量 |
|---|---|---|---|
| osv | CVSS 3.1 | CRITICAL9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |