GHSA-8G4V-6VGC-MR38
OBOM host probes follow links that local users plant in their home directories
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:L
Fuente: GitHub
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Divulgación | Publicada | GHSA-8G4V-6VGC-MR38 divulgada · CVSS 4.4 (GitHub) | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
Summary
When root runs `cdxgen -t os` (OBOM) on a host with other users, the probes for unpackaged Ruby gems, Node.js and Ruby runtimes read paths in those users' home directories and follow symbolic links in directories above the files they open. An unprivileged local user can get metadata from directories that only root can read copied into the BOM, learn whether chosen directories exist, or make the scan run for hours or fail.
Details
- `findGemHomes()` in `lib/ecosystems/gemHostProbe.js`, `collectCandidates()` in `lib/inventory/hostRuntimeProbe.js`, and `findRbConfigFiles()` and `siblingLibraries()` in `lib/inventory/rubyBuildInfo.js` check only the last component of a path and that its real path lies under the scan root, which is `/` on a live host. A link such as `~/.gem/ruby/x/specifications` pointing into a root-only directory is followed, and name, version, summary, authors and homepage of the gemspecs found there are recorded. The rbconfig reader also serves `cdxgen -t rootfs`, where the author of a scanned root filesystem with intact links learns whether chosen directories exist on the scanning machine.
- `probeHostRubyGems()` passes a gemspec's host path to `parseGemspecData()`, whose helpers `resolveGemVersionConstant()` and `listGemBindirFiles()` in `lib/ecosystems/rubyutils.js` read the version file and list the bin directory beside it with no link, type or size check. A user can thereby get one version-shaped value from any file root can read, and the file names of any directory root can list. Linking the version file to `/dev/zero` or a FIFO makes the scan run out of memory or hang. These helpers also run for `cdxgen -t ruby` on a local project directory that contains such links.
- `collectCandidates()` follows links named like runtimes (`ruby<N>`) without counting them against its cap, and each one costs minutes of CPU.
Impact
Local information disclosure to unprivileged users who can read the BOM, which is written with the default umask, and denial of service of OBOM scans. The disclosed values are limited to parsed fields of files with specific names and to directory listings and existence; arbitrary file contents are not copied.
Patches
Fixed in `@cdxgen/cdxgen` 13.8.0. Versions 13.3.0 through 13.7.0 of `@cdxgen/cdxgen` are affected. The 12.x line, published as `@cyclonedx/cdxgen`, does not contain the affected code.
First affected release of each issue:
- linked directories in home directories: 13.6.0 (not in 12.x)
- files beside gemspecs: 13.3.0 (not in 12.x)
- runtime-named links: 13.6.0 (not in 12.x)
Workarounds
- Run OBOM scans with a restrictive umask (for example `umask 077`) and keep the BOM unreadable to other users.
- Where other users can write their home directories, run OBOM scans in a time-limited job.
Credit
These issues were found by Anthropic's OSS Scanner (scan cdxgen-20261108-009) and reported as ANT-2026-41V9GEL1, ANT-2026-QTTYUNHT, ANT-2026-G2NBRPWW.
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
Desglose de métricas
Rangos afectados
Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
npm@cdxgen/cdxgen |
Corregida | 13.8.0 | — | — |
13.8.0Arsenal público
Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.
https://github.com/cdxgen/cdxgen/security/advisories/GHSA-8g4v-6vgc-mr38Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
