← Übersicht Nicht im beobachteten Stack

Local Privilege Escalation in execuatables bundled by pkg

CVE-2024-24828 · GHSA-22r3-9w55-cj54

Hoch · CVSS 7.3 Red Hat: Moderate Lokal · Nutzerinteraktion Kein Fix bekannt

Veröffentlicht
09.02.2024 16:20
Zuletzt geändert
10.09.2026
EPSS (30 Tage)
0.2 %
CVSS-Vektor
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H

Beschreibung

Originaltext der Quelle, nicht übersetzt.

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.

Status beim Hersteller

Red Hat stuft seine Produktlinien ein: 2 betroffen, 1 nicht betroffen.

Red Hat JBoss Enterprise Application Platform 6 Betroffenaußerhalb des Supports pkg
Red Hat Openshift Container Storage 4 Betroffenaußerhalb des Supports ocs4/mcg-core-rhel8
Nicht betroffen (1)
Red Hat Openshift Data Foundation 4Nicht betroffenverwundbarer Code nicht enthaltenodf4/mcg-core-rhel9
Weitere betroffene Pakete (3)
CVEvercel/pkgkein Fix bekanntCVE-2024-24828
NVDvercel:pkgkein Fix bekanntCVE-2024-24828
npmpkgkein Fix bekanntGHSA-22r3-9w55-cj54

Empfohlene Prüfung

  1. Feststellen, ob und in welcher Version die betroffenen Pakete in Ihren Systemen, Images und Abhängigkeiten vorkommen.
  2. Wo eine Fix-Version genannt ist: aktualisieren. Wo nicht: Hersteller-Advisory und Referenzen auf Workarounds prüfen.
  3. Erreichbarkeit beachten: Der Angriffsweg (Lokal · Nutzerinteraktion) ist aus dem CVSS-Vektor abgeleitet.

Diese Seite sagt nichts darüber, ob Ihre Systeme betroffen sind. Das klärt erst eine Prüfung Ihrer Versionen.