llamaCVEVulnerability Intelligence
/
Advisory · GitHub · npm · @cdxgen/cdxgen

GHSA-3J5Q-WQ9R-59WC

Package names from scanned Python metadata reach pip install as options

Parche disponible
Descargar PNG JSON
CVSS 3.1
7.5
Alta
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H Fuente: GitHub
ExplotaciónSin evidenciaNo figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche2 versionesPrimer parche el mismo día de la divulgación
Exposición8 dDesde la divulgación, 12 nov 2026, 9:51 p. m.
Detección5 dDesde la divulgación hasta su ingreso al índice
Decisión estimadaSeguir de cerca
Monitorear y programar la remediación
Estimación de Llama con el árbol SSVC de CISA a partir de vector CVSS 3.1 y la evidencia de explotación (sin evaluación oficial): sin explotación conocida, no automatizable e impacto técnico total. Hay versiones corregidas disponibles.
Si sale un exploit, la subo de categoría. Atento.Revisa si tu versión cae en el rango. Te espero.
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Explotación
Remediación
Parche 12.9.2
Monitoreo
Detectada +1
13 nov 26
18 nov 26
21 nov 26
13 nov 26
15 nov 26
17 nov 26
19 nov 26
21 nov 26
FechaFaseEventoDetalle
Divulgación Publicada GHSA-3J5Q-WQ9R-59WC divulgada · CVSS 7.5 (GitHub)
Remediación Parche 12.9.2 @cyclonedx/cdxgen · 0 d desde divulgación
Monitoreo Detectada Ingresó al índice
Monitoreo Verificada Última verificación contra las fuentes
Resumen
Descripción del advisory
Texto original · GitHub · en inglés
Summary

When the safe-pip-install step is on, `getPipTreeForPackages()` passes a package name and version read from the scanned tree to `python -m pip install` as the last argument, without `--` and without checking that it looks like a distribution name and version. A crafted name can make pip read a requirements file chosen by the tree's author, build a local directory from the tree (running its build code), or write its log to an arbitrary path. The step is opt-in, but `SAFE_PIP_INSTALL=true` is set in the Python container images.

Details

For each component that `createPythonBom()` collected, `getPipTreeForPackages()` in `lib/ecosystems/pythonutils.js` appends `<name>==<version>` (or the name with `cdx:pypi:versionSpecifiers`) to `python -m pip install`, with the scanned directory as the working directory. The values are copied from `site-packages/**/METADATA`, wheel `METADATA`, `Pipfile.lock` and `poetry.lock`. They also come from `requirements.txt`, where `parseReqData()` tests for a leading dash before it removes backslashes, so an escaped option survives. A distribution named like a pip option becomes that option, and path-shaped or archive-shaped values make pip build or install from the tree.

Impact

Installs on (the default outside secure mode) already let a tree author run code through an ordinary requirements file. What this adds is narrower: someone who controls only a package name, such as a vendored wheel or a `METADATA` file, gets code executed even when the operator has restricted pip to binary distributions, and can make pip write files outside the tree. Secure mode is not affected.

Patches

Fixed in `@cdxgen/cdxgen` 13.8.0. Versions 13.0.0 through 13.7.0 of `@cdxgen/cdxgen` are affected. The 12.x line, published as `@cyclonedx/cdxgen`, is also affected from 10.9.0 through 12.9.1, and no 12.x release contains the fix. Users of 12.x should move to `@cdxgen/cdxgen` 13.8.0 or apply the workarounds below. File paths in this advisory refer to the 13.x source tree; in 12.x most of the same functions are under `lib/helpers/` or in `lib/cli/index.js`.

Workarounds
  • Leave `SAFE_PIP_INSTALL` unset, or set it to `false`, when scanning untrusted Python projects.
  • Use `--no-install-deps` or secure mode for untrusted projects.
Credit

This issue was found by Anthropic's OSS Scanner (scan cdxgen-20261108-009) and reported as ANT-2026-EIGVXVC6.

References
  • https://github.com/cdxgen/cdxgen/blob/master/SECURITY.md
  • https://github.com/cdxgen/cdxgen/blob/master/docs/THREAT_MODEL.md
  • Fixed in: https://github.com/cdxgen/cdxgen/pull/4787
Vector CVSS 3.1

Desglose de métricas

Opción resaltada = valor del vector · izquierda = peor caso · GitHub
Vector de ataqueAV:N
RedAdyacenteLocalFísica
ComplejidadAC:H
BajaAlta
PrivilegiosPR:N
NingunoBajosAltos
InteracciónUI:R
NingunaRequerida
AlcanceS:U
CambiadoSin cambio
ConfidencialidadC:H
AltoBajoNinguno
IntegridadI:H
AltoBajoNinguno
DisponibilidadA:H
AltoBajoNinguno
Score de explotaciónQué tan fácil y probable es que la exploten
5.9/ 10Medio
Vector 5.9 (moderada) · sin evidencia de explotación.
Versiones

Rangos afectados

Afectada Corregida Última
@cyclonedx/cdxgen≥ 10.9.0 ≤ 12.9.1
@cdxgen/cdxgen≥ 13.0.0 < 13.8.0
10.9.0
12.9.1
12.9.2
13.0.0
13.8.0
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
npm@cyclonedx/cdxgen
Corregida 12.9.2 0 d 12.9.2 no afectada
Versiones corregidas12.9.213.8.0
Explotación

Arsenal público

Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.

Referencias
Advisoryhttps://github.com/cdxgen/cdxgen/security/advisories/GHSA-3j5q-wq9r-59wc

Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.