opensearch-project / perftop

📈 PerfTop: A client for the OpenSearch Performance Analyzer
https://opensearch.org/docs/latest/monitoring-plugins/pa/index/#get-started-with-perftop
Apache License 2.0
15 stars 18 forks source link

CVE-2024-24828 (High) detected in pkg-4.5.1.tgz #77

Open mend-for-github-com[bot] opened 5 months ago

mend-for-github-com[bot] commented 5 months ago

CVE-2024-24828 - High Severity Vulnerability

Vulnerable Library - pkg-4.5.1.tgz

Package your Node.js project into an executable

Library home page: https://registry.npmjs.org/pkg/-/pkg-4.5.1.tgz

Path to dependency file: /package.json

Path to vulnerable library: /node_modules/pkg/package.json

Dependency Hierarchy: - :x: **pkg-4.5.1.tgz** (Vulnerable Library)

Found in HEAD commit: 37a931972fc0a6ed0119a626ead37d0a76942954

Found in base branch: main

Vulnerability Details

pkg is tool design to bundle Node.js projects into an executables. Any native code packages built by `pkg` are written to a hardcoded directory. On unix systems, this is `/tmp/pkg/*` which is a shared directory for all users on the same local system. There is no uniqueness to the package names within this directory, they are predictable. An attacker who has access to the same local system has the ability to replace the genuine executables in the shared directory with malicious executables of the same name. A user may then run the malicious executable without realising it has been modified. This package is deprecated. Therefore, there will not be a patch provided for this vulnerability. To check if your executable build by pkg depends on native code and is vulnerable, run the executable and check if `/tmp/pkg/` was created. Users should transition to actively maintained alternatives. We would recommend investigating Node.js 21’s support for single executable applications. Given the decision to deprecate the pkg package, there are no official workarounds or remediations provided by our team. Users should prioritize migrating to other packages that offer similar functionality with enhanced security.

Publish Date: 2024-02-09

URL: CVE-2024-24828

CVSS 3 Score Details (7.8)

Base Score Metrics: - Exploitability Metrics: - Attack Vector: Local - Attack Complexity: Low - Privileges Required: Low - User Interaction: None - Scope: Unchanged - Impact Metrics: - Confidentiality Impact: High - Integrity Impact: High - Availability Impact: High

For more information on CVSS3 Scores, click here.

dblock commented 2 months ago

Catch All Triage - 1 2 3 4 5