Описание
pnpm is a package manager. Prior to 10.34.5 and from 11.0.0 until 11.11.0, pnpm parses the package name from attacker-controlled pnpm-lock.yaml packages keys with dp.parse(depPath).name and uses it without validation in deps/graph-builder/src/lockfileToDepGraph.ts and pnpm11/deps/graph-builder/src/lockfileToDepGraph.ts. The name reaches path.join(modules, pkgName), storeController.importPackage, and pnpm11/lockfile/to-pnp/src/index.ts, allowing package contents to be written outside node_modules when a user runs pnpm install. When dangerouslyAllowAllBuilds or a matching allowBuilds entry permits lifecycle scripts, the escaped package can execute code with the user's privileges. This issue is fixed in versions 10.34.5 and 11.11.0.
A flaw was found in pnpm, a package manager. An attacker can craft a malicious pnpm-lock.yaml file that, when processed by a user running pnpm install, allows package contents to be written outside the intended node_modules directory. If the system is configured to allow lifecycle scripts, this path traversal vulnerability can lead to arbitrary code execution with the user's privileges.
Затронутые пакеты
| Платформа | Пакет | Состояние | Рекомендация | Релиз |
|---|---|---|---|---|
| Red Hat AMQ Broker 7 | amq-broker-bin.zip | Not affected | ||
| Red Hat AMQ Broker 7 | amq-broker-maven-repository.zip | Not affected | ||
| Red Hat Build of Keycloak | keycloak-operator.redhat-00001.zip | Not affected | ||
| Red Hat Build of Keycloak | rhbk-quarkus-dist.zip | Not affected | ||
| Red Hat Hardened Images | jaeger | Not affected | ||
| Red Hat Hardened Images | prometheus3.13 | Not affected | ||
| Red Hat JBoss Enterprise Application Platform 8 | jboss-eap.1-runtime-maven-repository.zip | Not affected | ||
| Red Hat JBoss Enterprise Application Platform 8 | jboss-eap-runtime-maven-repository.zip | Not affected | ||
| Red Hat JBoss Enterprise Application Platform Expansion Pack | jboss-eap.1-runtime-maven-repository.zip | Not affected | ||
| Red Hat JBoss Enterprise Application Platform Expansion Pack | jboss-eap-runtime-maven-repository.zip | Not affected |
Показывать по
Ссылки на источники
Дополнительная информация
Статус:
EPSS
7.1 High
CVSS3
Связанные уязвимости
pnpm is a package manager. Prior to 10.34.5 and from 11.0.0 until 11.11.0, pnpm parses the package name from attacker-controlled pnpm-lock.yaml packages keys with dp.parse(depPath).name and uses it without validation in deps/graph-builder/src/lockfileToDepGraph.ts and pnpm11/deps/graph-builder/src/lockfileToDepGraph.ts. The name reaches path.join(modules, pkgName), storeController.importPackage, and pnpm11/lockfile/to-pnp/src/index.ts, allowing package contents to be written outside node_modules when a user runs pnpm install. When dangerouslyAllowAllBuilds or a matching allowBuilds entry permits lifecycle scripts, the escaped package can execute code with the user's privileges. This issue is fixed in versions 10.34.5 and 11.11.0.
pnpm is a package manager. Prior to 10.34.5 and from 11.0.0 until 11.1 ...
pnpm: Virtual store linker path traversal via unvalidated depPath name in lockfileToDepGraph
EPSS
7.1 High
CVSS3