Tóm tắt nhanh
- CVE-2023-40582 là lỗ hổng mức NGHIÊM TRỌNG (CVSS 9.8) ảnh hưởng find-exec (find-exec project), find-exec.
- Xác suất bị khai thác trong 30 ngày tới (EPSS): 1.8%, cao hơn 78.6% các lỗ hổng khác.
- Cách xử lý: cập nhật lên 1.0.3 hoặc mới hơn.
| Gói / sản phẩm | Phiên bản bị ảnh hưởng | Phiên bản đã vá |
|---|
| find-exec | < 1.0.3
| 1.0.3
|
| find-exec npm | < 1.0.3
| 1.0.3
|
Mô tả
Older versions of the package are vulnerable to Command Injection as an attacker controlled parameter. As a result, attackers may run malicious commands.
For example:
const find = require("find-exec");
find("mplayer; touch hacked")
This creates a file named "hacked" on the filesystem.
You should never allow users to control commands to find, since this package attempts to run every command provided.
Thanks to @miguelafmonteiro for reporting.
Mô tả của NVD
find-exec is a utility to discover available shell commands. Versions prior to 1.0.3 did not properly escape user input and are vulnerable to Command Injection via an attacker controlled parameter. As a result, attackers may run malicious shell commands in the context of the running process. This issue has been addressed in version 1.0.3. users are advised to upgrade. Users unable to upgrade should ensure that all input passed to find-exec comes from a trusted source.
Bạn đang dùng một trong các sản phẩm này? Quét site để biết có đang lộ phiên bản có lỗ hổng không.
Quét site miễn phí