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

GHSA-72JC-54PR-QQ5W

Crafted ASAR archive makes cdxgen write files outside the extraction directory

Parche disponible
Descargar PNG JSON
CVSS 3.1
9.8
Crítica
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/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 estimadaAtender
Priorizar en el próximo ciclo de cambios
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, automatizable e impacto técnico total. Hay versiones corregidas disponibles.
Revisa si el servicio da a internet. Si sí: corre.Avísale a infraestructura antes de que te avisen a ti.
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada +1
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-72JC-54PR-QQ5W divulgada · CVSS 9.8 (GitHub)
Remediación Parche 12.9.2 @cyclonedx/cdxgen · 0 d desde divulgación
Divulgación Modificada Última actualización del registro
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 cdxgen scans an Electron ASAR archive, a crafted archive header can make `extractAsarArchive()` create or overwrite any file the cdxgen process can write, anywhere on disk, with content and executable bit chosen by the archive. With formulation on (`--include-formulation`, or by default under `CI=true` from 13.7.0) and a user-writable directory ahead of the real `git` on `PATH`, as on common hosted CI runners, cdxgen later runs a planted file in the same scan.

Details

`extractAsarArchive()` in `lib/ecosystems/asarutils.js` checks that each destination is inside the temporary extraction directory with `isPathWithin()`, which compares path strings. It then calls `mkdirSync()` with `recursive`, `symlinkSync()`, `writeFileSync()` and `chmodSync()` without looking at what already exists at that path.

Header names that contain lone UTF-16 surrogates are distinct keys while the header is validated, but Node.js writes every lone surrogate as U+FFFD, so two such names refer to the same file on disk. A link entry creates a symbolic link under one name, a later directory entry with the colliding name succeeds on that link, and entries below it are created through the link. A second link whose relative target was computed for the intended location then points outside the extraction root.

The ASAR project type must be selected (`-t asar`, or an input path that ends in `.asar`). In server mode the same code is reached with `/sbom?type=asar`, for a path or for a git URL, so no file on the server is needed.

Impact

Arbitrary file creation and overwrite as the user running cdxgen, which leads to code execution through planted executables, shell start-up files or tool directories on `PATH`. Command-line and CI scans of untrusted `.asar` files are affected, as is any client that can reach `cdxgen --server`. `--no-install-deps` and `CDXGEN_SECURE_MODE=true` without the Node.js permission flags do not prevent it. `--dry-run` and the Node.js permission model (as configured in the `cdxgen-secure` image, which only allows writes to temporary and output directories) do.

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 affected from 12.4.0 through 12.9.1 and is fixed in `@cyclonedx/cdxgen` 12.9.2, which backports the same change to `lib/helpers/asarutils.js` (pull request #4791). 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
  • Scan untrusted Electron applications only with `--dry-run`, or under the Node.js permission model with `--allow-fs-write` limited to the temporary and output directories, for example with the `cdxgen-secure` image.
  • Do not allow `type=asar` on servers reachable by untrusted clients.
  • Run such scans as a user that cannot write to directories on `PATH`.
Credit

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

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
  • Fixed in 12.x: https://github.com/cdxgen/cdxgen/pull/4791
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:L
BajaAlta
PrivilegiosPR:N
NingunoBajosAltos
InteracciónUI:N
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
10.0/ 10Muy alto
Vector 10.0 (muy fácil) · sin evidencia de explotación.
Versiones

Rangos afectados

Afectada Corregida Última
@cyclonedx/cdxgen≥ 12.4.0 ≤ 12.9.1
@cdxgen/cdxgen≥ 13.0.0 < 13.8.0
12.4.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-72jc-54pr-qq5w

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