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

GHSA-6VWW-36X2-C89F

Denial of service from crafted project files, source files, archives and container images

Sin parche publicado
Descargar PNG JSON
CVSS 4.0
6.0
Media
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N Fuente: GitHub
ExplotaciónSin evidenciaNo figura en CISA KEV
Exploits públicos0Ninguno conocido
ParcheSin parcheEl fabricante no ha publicado corrección
Exposición2 dDesde la divulgación, 19 nov 2026, 7:25 a. m.
Detección19 minDesde la divulgación hasta su ingreso al índice
Decisión estimadaSeguir
Remediar en la ventana regular de mantenimiento
Estimación de Llama con el árbol SSVC de CISA a partir de vector CVSS 4.0 y la evidencia de explotación (sin evaluación oficial): sin explotación conocida, no automatizable e impacto técnico parcial. No hay versión corregida: aplique mitigaciones.
Hoy toca orden, no heroísmo.Parche en la próxima ventana y listo, campeón.
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Explotación
Remediación
Monitoreo
Detectada +1
07:25 a. m.
09:51 a. m.
07:25 a. m.
08:02 p. m.
08:38 a. m.
09:15 p. m.
09:51 a. m.
FechaFaseEventoDetalle
Divulgación Publicada GHSA-6VWW-36X2-C89F divulgada · CVSS 6 (GitHub)
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

Crafted manifests, lock files, build and CI files, source files, archives, helper reports and container images in a scanned tree make cdxgen use CPU time or memory that grows with the square, the cube or the exponent of the input size, write BOMs hundreds of times larger than the input, or fill the temporary directory. Kilobytes to a few megabytes of input hold a scan for minutes, exhaust the heap or the disk, or end the process. No build tool is involved, so `--no-install-deps` and secure mode do not help.

Details
CPU time in project files

Crafted manifests, lock files, build files, CI files, archives and metadata files in a scanned tree make cdxgen spend CPU time that grows with the square of the input size, and in a few cases with its cube or exponentially. Kilobytes to a few megabytes of text hold a scan on one core for minutes or longer. No build tool is involved, so `--no-install-deps` and secure mode do not help.

The causes follow three patterns: regular expressions with overlapping quantifiers that backtrack on crafted text, linear searches or repeated parsing inside loops over items that the tree controls, and lists that are merged or deduplicated by rescanning them on every addition. Most of these parsers run in default scans of the matching ecosystem, including scans without `-t`; the table notes the code and the first release that is affected.

Memory in project files and archives

Crafted files in a scanned tree make cdxgen allocate memory without a bound, or write BOMs that are hundreds of times larger than the input. Typical shapes are a long string that is copied once per package, per path or per key, an archive that expands far beyond its size, a symbolic link or alias that makes a walk or a YAML document explode, and temporary files that are not removed after an error. A scan of such content ends with an out-of-memory error, a full disk or a BOM of hundreds of megabytes.

Parsing is synchronous, so a heap exhaustion in `cdxgen --server` ends the process and every other client's scan with it. The table lists the code and the first affected release of each case. Where the finding is about disk (unpacked archives and extracted `.vsix` files that were not removed), the affected resource is the temporary directory.

Source analysis and evidence generation

The JavaScript analyzer behind `--deep`, `-t cbom` and the MCP inventory, `evinse`, and the evidence code for Scala, Swift, Kotlin and .NET use time or memory that grows faster than the input. A source file, a repository-supplied slices file or a helper report of a few hundred kilobytes can hold a scan for minutes, make a BOM hundreds of times larger than the input, or exhaust the heap.

Causes include regular expressions that backtrack on crafted Vue, Angular and Karma files, repeated resolution of the same path or purl, quadratic or cubic joins between slices and components, Babel scope tracking that the analyzer does not need, narrowing of `if` and `switch` conditions in the crypto inventory, copies of per-package lists for every version, and unbounded reads of helper reports. Babel error recovery is now off in the analyzer (`N0DFQY2D`), so a file with a recoverable syntax error gives no JavaScript evidence instead of a partial result.

Container images

A container image, OCI archive or root filesystem can make cdxgen use unbounded CPU time, memory or disk. Examples are a layer that a manifest lists many times, a decompression bomb in a layer or whiteout file, a file hashed once for every link or path spelling, one glob over the whole image per `PATH` or `ld.so.conf` entry, a long `WorkingDir`, and regular expressions that backtrack on crafted apt source files and library paths.

The scans of images and root filesystems run in default mode, including `-t docker` and `-t oci`, and in secure mode. The table lists the code and the first affected release of each case.

The findings in this advisory are:

| Issue | Code | First affected release |
|---|---|---|
| Quadratic CPU in caxa and Jenkins scans: all jars share one temp dir | `addEmbeddedPackages()` in `lib/ecosystems/caxa.js` | 13.3.0 (12.x: 12.3.1) |
| AI and MCP inventory: DoS from stringifying deeply nested metadata arrays | `quantizationMethodFromText()` in `lib/inventory/aiCollector.js` | 12.3.1 |
| parseCmakeLikeFile: replacement patterns in set() values crash cdxgen | `parseCmakeLikeFile()` in `lib/ecosystems/parsers-misc.js` | 9.9.6 |
| Quadratic BOM DoS: GitHub Actions dispatchSenderMatchBasis lists all targets | `enrichLocalDispatchRelationships()` in `lib/inventory/ciParsers/githubActions.js` | not stated (12.x: 12.3.0) |
| Infinite loop in MODULE.bazel parser on unmatched closing bracket | `readValue()` in `lib/ecosystems/parsers-bazel.js` | not stated (no match found in 12.x) |
| Quadratic CPU in compareNugetVersions(): long nuspec version parsed per range | `compareNugetVersions()` in `lib/ecosystems/parsers-dotnet.js` | 13.4.0 (no match found in 12.x) |
| CPU DoS in getBomWithOras: same blob re-parsed per duplicate referrer | `getBomWithOras()` in `lib/managers/oci.js` | 12.7.1 |
| Deep WorkingDir in image config exhausts heap, crashes cdxgen server | `extractFromManifest()` in `lib/managers/docker.js` | 9.0.0 |
| Long Terraform module label copied into every nested key exhausts the heap | `collectStaticRecords()` in `lib/ecosystems/parsers-terraform.js` | not stated (no match found in 12.x) |
| Cargo deep mode: heap OOM from dep-info list copied per locked version | `parseCargoData()` in `lib/ecosystems/parsers-rust.js` | 10.5.2 |
| Unbounded .mcpb manifest name inflates BOM ~1000x | `componentFromManifest()` in `lib/inventory/mcpbBundle.js` | 13.2.0 (no match found in 12.x) |
| Deep JVM scan copies a jar's class list per purl alias, exhausting memory | `collectSbtDependencyJars()` in `lib/cli/jvmBom.js` | 13.4.0 (no match found in 12.x) |
| Quadratic-time DoS parsing runner arguments in npm lifecycle scripts | `findLifecycleScriptSourceStartIndex()` in `lib/ecosystems/parsers-js.js` | 12.3.0 |
| Quadratic time in ScalaJoinIndex on long symbols from a scanned repo | `ScalaJoinIndex.isUnowned()` in `lib/ecosystems/scalasem.js` | 13.4.0 (no match found in 12.x) |
| Overlong NuGet version copied into every packages.config purl OOMs server | `parseCsPkgData()` in `lib/ecosystems/parsers-dotnet.js` | 13.0.0 (no match found in 12.x) |
| Quadratic-time DoS in MODULE.bazel parsing via repeated list copies | `parseCallArgs()` in `lib/ecosystems/parsers-bazel.js` | 13.0.0 (no match found in 12.x) |
| Repeated yarn or pnpm workspace entries multiply directory walks (DoS) | `createNodejsBom()` in `lib/cli/jsBom.js` | 11.8.0 |
| enrichGemsFromLocalCache re-parses the gemspec per lockfile entry (DoS) | `enrichGemsFromLocalCache()` in `lib/ecosystems/rubyutils.js` | 12.8.3 |
| OOM in dotnet parsers: long framework or paket group name copied per package | `parseCsProjAssetsData()` in `lib/ecosystems/parsers-dotnet.js` | 9.9.0 |
| cargoCache: pax global header bypasses .crate entry size limit (OOM) | `readCrateArchiveEntry()` in `lib/ecosystems/cargoCache.js` | 13.4.0 (no match found in 12.x) |
| ReDoS in .nvmrc and other tool version file parsers with --introspect | `parseNvmrc()` in `lib/inventory/toolRequirements.js` | 13.1.0 (no match found in 12.x) |
| JS import occurrences copied to every locked version, exhausting heap | `addEvidenceForImports()` in `lib/ecosystems/jsEvidence.js` | not stated (no match found in 12.x) |
| Image scan DoS via one full-image glob per PATH and ld.so.conf entry | `collectExecutables()` in `lib/inventory/osPackageResolver.js` | 11.2.2 |
| Quadratic POM search in collectJarNS: small war takes minutes to scan | `collectJarNS()` in `lib/inventory/deps.js` | not stated (no match found in 12.x) |
| Quadratic-time DoS in parseBunLock via deeply nested package keys | `parseBunLock()` in `lib/ecosystems/bunutils.js` | 13.3.0 (no match found in 12.x) |
| PEP 770 reader re-parses SBOMs per METADATA case variant (server DoS) | `collectEmbeddedSboms()` in `lib/ecosystems/pep770.js` | not stated (no match found in 12.x) |
| Quadratic CPU in resolveInstalledNugetVersion stalls cdxgen server | `resolveInstalledNugetVersion()` in `lib/ecosystems/parsers-dotnet.js` | 13.4.0 (no match found in 12.x) |
| Quadratic-time DoS in parseSwiftBuildManifest via crafted manifest.pif | `parseSwiftBuildManifest()` in `lib/evinser/swiftsem.js` | 13.3.0 (no match found in 12.x) |
| OOM in MCP inventory: long server name copied into every tool | `primitiveComponentForMcp()` in `lib/inventory/analyzer.js` | not stated (no match found in 12.x) |
| Terraform: quadratic per-root walk in connectOrphanLockProviders (DoS) | `connectOrphanLockProviders()` in `lib/ecosystems/parsers-terraform.js` | not stated (no match found in 12.x) |
| MCP inventory re-parses a URL variable on every use: quadratic CPU DoS | `recordUrlUsage()` in `lib/inventory/analyzer.js` | not stated (12.x: 12.3.1) |
| caxa: same sbomFile re-parsed per manifest entry, quadratic CPU DoS | `addReachableSbomContents()` in `lib/ecosystems/caxa.js` | not stated (no match found in 12.x) |
| Quadratic ReDoS in fileToParseableCode on unclosed Vue markup | `fileToParseableCode()` in `lib/inventory/analyzer.js` | 9.6.0 |
| Quadratic BOM blowup: long npm override copied to every manifestSource | `collectNpmManifestSources()` in `lib/ecosystems/npmutils.js` | not stated (12.x: 12.3.3) |
| Cached Maven jar re-hashed for every duplicate component (CPU DoS) | `enrichMvnPackageLocally()` in `lib/ecosystems/ecosystems.js` | 12.7.0 |
| Quadratic CPU: gemspec version file re-read once per require line | `parseGemspecData()` in `lib/ecosystems/rubyutils.js` | 13.3.0 (12.x: 12.1.5) |
| ReDoS in isSharedLibraryPath() via crafted container image | `isSharedLibraryPath()` in `lib/managers/binary.js` | 12.4.0 |
| Unbounded CMake presets include expansion blocks the server event loop | `readCmakePresetDocuments()` in `lib/inventory/cmakeBuildDirs.js` | 13.4.0 (12.x: 12.2.0) |
| ReDoS in svelte.config.js parsing blocks server event loop | `parseSvelteConfigSource()` in `lib/inventory/svelteUtils.js` | 13.2.0 (no match found in 12.x) |
| recurseImageNameLookup takes exponential time on aliased or deeply nested YAML | `recurseImageNameLookup()` in `lib/ecosystems/parsers-misc.js` | 5.3.0 |
| ReDoS in Jenkinsfile parser stalls cdx-audit and formulation scans | `parseJenkinsfile()` in `lib/inventory/ciParsers/jenkins.js` | 12.2.0 |
| CPU DoS in guessPypiMatchingVersion via long setup.py specifier | `guessPypiMatchingVersion()` in `lib/ecosystems/ecosystems.js` | 8.6.0 |
| Quadratic CPU in setFileRef: .wasm path re-resolved on every reference | `setFileRef()` in `lib/inventory/analyzer.js` | not stated (no match found in 12.x) |
| Quadratic ReDoS in parseDistributionLine via crafted cpanfile.snapshot | `parseDistributionLine()` in `lib/ecosystems/parsers-perl.js` | 13.2.0 (no match found in 12.x) |
| Hash-collision DoS in uniqueCryptoAlgorithms via long algorithm names | `uniqueCryptoAlgorithms()` in `lib/inventory/analyzer.js` | not stated (12.x: 12.4.0) |
| ReDoS in requirements.txt and pylock.toml parsing | `parseReqEnvMarkers()` in `lib/ecosystems/parsers-python.js` | 11.7.0 |
| Long OpenAPI server URL repeated per path: cubic-time DoS, 160 MB BOM | `parseOpenapiSpecData()` in `lib/ecosystems/parsers-misc.js` | 12.3.1 |
| Substrings retain whole wheel METADATA and MCPB manifests (server DoS) | `parseBdistMetadata()` in `lib/ecosystems/ecosystems.js` | not stated (12.x: 12.4.4) |
| Quadratic jsr dependency resolution in parseDenoLock (CPU DoS) | `resolveJsrRef()` in `lib/ecosystems/denoutils.js` | 12.8.0 |
| CPU DoS in guessLicenseId via many crafted LICENSE files | `guessLicenseId()` in `lib/inventory/spdx.js` | not stated (no match found in 12.x) |
| Quadratic time in parseDeb822Fields lets crafted images stall scans | `parseDeb822Fields()` in `lib/managers/binary.js` | 12.4.0 |
| docker: layer listed N times in manifest is extracted N times (CPU DoS) | `extractFromManifest()` in `lib/managers/docker.js` | 3.0.2 |
| AI oversight CODEOWNERS coverage check is quadratic in files and rules | `isFileCovered()` in `lib/inventory/aiOversightCollector.js` | 12.7.1 |
| Nested ASAR bomb: createAsarBom limits depth but not archive count | `createAsarBom()` in `lib/cli/jsBom.js` | 12.4.0 |
| Quadratic CPU in AI-BOM: config.json reprocessed per safetensors shard | `modelIdentityFromSiblingConfig()` in `lib/inventory/aiCollector.js` | 13.2.0 (no match found in 12.x) |
| Quadratic memory blowup in attachIdentityTools: committed BOM crashes server | `attachIdentityTools()` in `lib/inventory/evidenceUtils.js` | 12.3.3 |
| Unbounded loop in AI inventory via GGUF base model count (DoS) | `createGgufPedigree()` in `lib/inventory/aiCollector.js` | 12.5.1 |
| Unbounded replaceAll in crypto inventory exhausts heap, crashes server | `resolveStaticValue()` in `lib/inventory/analyzerScope.js` | 12.4.0 |
| Quadratic edge blowup in buildCargoLockDependencyGraph exhausts heap | `buildCargoLockDependencyGraph()` in `lib/ecosystems/parsers-rust.js` | 13.2.0 (no match found in 12.x) |
| cdx-audit: DoS via long bom-ref copied into every license violation | `collectPolicyViolations()` in `lib/inventory/licenseEnhancer.js` | not stated (no match found in 12.x) |
| Unbounded kosi report read lets crafted Kotlin projects exhaust memory | `runKosi()` in `lib/ecosystems/kosi.js` | 13.2.0 (no match found in 12.x) |
| Jenkinsfile and lockfile parsers re-parse a file per symlink: heap OOM | `parse()` in `lib/inventory/ciParsers/jenkins.js` | not stated (12.x: 12.3.0) |
| collectSharedLibs re-reads ld.so.conf once per self-include (CPU DoS) | `collectSharedLibs()` in `lib/inventory/osPackageResolver.js` | not stated (no match found in 12.x) |
| DoS via 4 KB .mcpb: string user_config expanded per character to 1 GB | `summarizeUserConfig()` in `lib/inventory/mcpbBundle.js` | 13.2.0 (no match found in 12.x) |
| Quadratic ASAR path expansion exhausts heap and crashes cdxgen server | `listAsarEntries()` in `lib/ecosystems/asarutils.js` | 12.4.0 |
| Repeated uv workspace entries cause quadratic blowup and server OOM | `parsePyLockData()` in `lib/ecosystems/parsers-python.js` | 11.1.1 |
| Swift evidence: quadratic package attribution, CPU DoS via committed .build | `owningPackage()` in `lib/evinser/swiftsem.js` | 13.3.0 (no match found in 12.x) |
| Zip bomb in jar and vsix extraction fills temp dir and crashes cdxgen | `extractJarArchive()` in `lib/ecosystems/ecosystems.js` | 10.0.1 |
| Temp dir leak in docker image scans lets server clients fill the disk | `createMultiXBom()` in `lib/cli/index.js` | 10.5.1 |
| docker: unbounded whiteout names exhaust heap and crash cdxgen server | `applyLayerWhiteouts()` in `lib/managers/docker.js` | 13.5.0 (no match found in 12.x) |
| Quadratic ReDoS in npm lifecycle-script indicator regexes | `NPM_LIFECYCLE_EXECUTION_PATTERNS()` in `lib/ecosystems/parsers-js.js` | 12.3.0 |
| [js] Quadratic-time DoS: addComponent() walks allImports per package | `addComponent()` in `lib/cli/bomAssembly.js` | 12.5.0 |
| Quadratic time in parseSetupPyFile: 540 kB setup.py takes 80 CPU seconds | `parseSetupPyFile()` in `lib/ecosystems/parsers-python.js` | 1.4.25 |
| Terraform: loadMergedConfig is quadratic in the number of override files | `loadMergedConfig()` in `lib/ecosystems/parsers-terraform.js` | not stated (no match found in 12.x) |
| Symlink loops in Terraform module directories exhaust the heap | `collectManifestRecords()` in `lib/ecosystems/parsers-terraform.js` | not stated (no match found in 12.x) |
| reattributeSvelteKitModules loops until OOM if an alias maps to itself | `reattributeSvelteKitModules()` in `lib/inventory/analyzer.js` | not stated (no match found in 12.x) |
| Exclude globs recompiled per atom slice entry (DoS via .cdxgen.json) | `filterAtomSlicesByExcludePatterns()` in `lib/inventory/atomUtils.js` | 13.3.0 (12.x: 12.4.4) |
| angular analyzer: quadratic ReDoS in template icon-class regexes | `addAngularTemplatePatternPackageRefs()` in `lib/inventory/analyzer.js` | 12.5.0 |
| Scala call stack evidence is quadratic when many jars share a class | `addCallStackEvidence()` in `lib/ecosystems/scalasem.js` | 13.4.0 (no match found in 12.x) |
| Quadratic CPU DoS: Python METADATA names re-normalized per manifest | `enrichFromInstalledMetadata()` in `lib/ecosystems/parsers-python.js` | not stated (no match found in 12.x) |
| Quadratic ReDoS in Angular Karma config patterns stalls JS scans | `ANGULAR_KARMA_CONFIG_PATTERNS()` in `lib/inventory/analyzer.js` | not stated (12.x: 12.4.4) |
| Quadratic-time dev and optional dependency marking in parsePnpmLock | `parsePnpmLock()` in `lib/ecosystems/parsers-js.js` | 10.7.0 |
| Server heap exhaustion: long git URL repeated per relative submodule | `resolveCmakeContext()` in `lib/ecosystems/cmakeResolver.js` | 13.0.0 (no match found in 12.x) |
| Quadratic mergeDependencies in container, Bazel and CocoaPods scans (DoS) | `createMultiXBom()` in `lib/cli/index.js` | 10.1.0 |
| scalasem jarPathCoordinates is quadratic: deep jar path exhausts heap | `jarPathCoordinates()` in `lib/ecosystems/scalasem.js` | 13.6.0 (no match found in 12.x) |
| Quadratic wasmExports attribution in JS analyzer exhausts heap | `parseFileASTTree()` in `lib/inventory/analyzer.js` | not stated (no match found in 12.x) |
| Deep member chains exhaust memory in chrome-extension capability scan | `detectExtensionCapabilities()` in `lib/inventory/analyzer.js` | 12.3.0 |
| ASAR scan re-parses Info.plist per nested archive: quadratic CPU DoS | `collectAsarSigningInfo()` in `lib/ecosystems/asarutils.js` | 12.4.0 |
| Quadratic CPU time in evinse attributeCIncludes component lookup | `attributeCIncludes()` in `lib/evinser/evinser.js` | not stated (no match found in 12.x) |
| Quadratic JS scan: Angular check walks all imports per icon property | `parseFileASTTree()` in `lib/inventory/analyzer.js` | not stated (12.x: 12.3.1) |
| evinse: quadratic import lookup in parseSliceUsages allows CPU DoS | `parseSliceUsages()` in `lib/evinser/evinser.js` | not stated (no match found in 12.x) |
| Heap exhaustion in parsePodfileLock: external source path copied per subspec | `parsePodfileLock()` in `lib/ecosystems/parsers-misc.js` | 11.2.1 |
| Extracted .vsix not cleaned up if analysis throws, filling server disk | `createVscodeExtensionBom()` in `lib/cli/jsBom.js` | 12.2.0 |
| Unbounded reads of scanned files: symlink or tiny archive kills the server | `cmakeCompilerFacts()` in `lib/ecosystems/cppBuildContext.js` | 3.0.2 (no match found in 12.x) |
| ReDoS in matchCodeowners: crafted CODEOWNERS rule hangs --bom-audit | `matchCodeowners()` in `lib/inventory/aiOversightCollector.js` | 12.7.1 |
| Quadratic BOM blowup in deb822 apt sources: full stanza copied per URI | `parseDeb822AptRepositorySources()` in `lib/managers/binary.js` | 12.4.0 |
| ReDoS in GitHub Actions parser via unescaped workflow env names | `parseWorkflowFile()` in `lib/inventory/ciParsers/githubActions.js` | 12.3.0 |
| Quadratic CPU: createCppBom refilters components per FetchContent dep | `withoutScrapedFetchDependency()` in `lib/ecosystems/cmakeResolver.js` | 13.3.0 (no match found in 12.x) |
| YAML alias bomb in GitHub workflow triggers crashes cdxgen and its server | `normalizeTriggers()` in `lib/inventory/ciParsers/githubActions.js` | 12.2.0 |
| Root .npmrc re-parsed for every pnpm-lock.yaml: quadratic CPU DoS | `loadNpmrcConfig()` in `lib/ecosystems/npmutils.js` | not stated (12.x: 12.6.0) |
| Super-linear YAML parsing allows CPU DoS via small lock and CI files | `readYamlFile()` in `lib/ecosystems/parsers-stack.js` | not stated (no match found in 12.x) |
| OOM crash on nested duplicate JS labels due to Babel errorRecovery | `babelParserOptions()` in `lib/inventory/analyzer.js` | 3.2.11 |
| cargoCache: crate name case variants bloat the index memo (heap OOM) | `indexEntriesFor()` in `lib/ecosystems/cargoCache.js` | 13.2.0 (no match found in 12.x) |
| Quadratic-time DoS in readRubyStringList via unquoted gemspec array items | `readRubyStringList()` in `lib/ecosystems/rubyutils.js` | 13.3.0 (no match found in 12.x) |
| GitHub Actions parser repeats workflow text per job and step: quadratic DoS | `parseWorkflowFile()` in `lib/inventory/ciParsers/githubActions.js` | 12.3.0 |
| Heap exhaustion in getJarClasses: 450 kB war crashes cdxgen server | `getJarClasses()` in `lib/inventory/deps.js` | 11.2.3 |
| CBOM: exponential JSON.stringify in resolvedValueKey crashes the server | `resolvedValueKey()` in `lib/inventory/analyzerScope.js` | 12.4.0 |
| Quadratic subspec merge in parsePodfileLock allows CPU DoS | `parsePodfileLock()` in `lib/ecosystems/parsers-misc.js` | 11.2.1 |
| Quadratic line-number lookup in inventory scanners allows CPU DoS | `lineNumberForIndex()` in `lib/inventory/aiCollector.js` | 12.5.1 |
| Decompression bomb in docker image archive extraction fills temp dir | `extractTar()` in `lib/managers/docker.js` | 3.0.2 |
| Crypto inventory: cubic-time if and switch narrowing stalls the server | `getScopedStaticValueByName()` in `lib/inventory/analyzerScope.js` | not stated (12.x: 12.4.0) |
| Each Cargo.toml re-parses all workspace members (quadratic CPU DoS) | `parseCargoTomlData()` in `lib/ecosystems/parsers-rust.js` | 12.3.1 |
| Quadratic ReDoS in extractHuggingFaceReferences() during AI-BOM scans | `extractHuggingFaceReferences()` in `lib/inventory/aiCollector.js` | 12.5.1 |
| evinse: versionless purl copies crypto algos to every version, BOM blowup | `createEvinseFile()` in `lib/evinser/evinser.js` | 13.6.0 (no match found in 12.x) |
| Gemfile.lock CPU DoS: long parent platform matched per native build | `parseGemfileLockData()` in `lib/ecosystems/rubyutils.js` | 10.1.2 |
| Quadratic CPU in getScopedStaticValueByName() stalls CBOM scans and server | `getScopedStaticValueByName()` in `lib/inventory/analyzerScope.js` | not stated (12.x: 12.4.0) |
| Terraform: quadratic BOM blowup from repeated module version constraint | `emitModuleComponent()` in `lib/ecosystems/parsers-terraform.js` | not stated (no match found in 12.x) |
| Quadratic list de-duplication in trimComponents and other merges (DoS) | `trimComponents()` in `lib/inventory/depsUtils.js` | not stated (12.x: 12.2.1) |
| Container scans re-hash a file for every link or path spelling (DoS) | `fileComponents()` in `lib/managers/binary.js` | 11.2.3 |
| parseGgufFilename is quadratic; a long .gguf URL stalls AI-BOM scans | `parseGgufPrefixTokens()` in `lib/parsers/gguf.js` | 12.5.1 |
| addMetadata rebuilds image properties per path: quadratic CPU DoS | `addMetadata()` in `lib/cli/bomAssembly.js` | 11.2.2 |
| Quadratic-time DoS in analyzer.js from unneeded Babel scope tracking | `parseFileASTTree()` in `lib/inventory/analyzer.js` | not stated (no match found in 12.x) |
| Scala evinse: unbounded v1 slice occurrences, 325 kB repo gives 401 MB BOM | `findPurlLocations()` in `lib/evinser/scalasem.js` | not stated (no match found in 12.x) |
| Quadratic ReDoS in csproj HintPath parsing (dotnetutils) | `extractPackageInfoFromHintPath()` in `lib/ecosystems/dotnetutils.js` | 11.6.0 |
| Gemspec file-name collision copies licenses onto unrelated gems, bloats BOM | `enrichGemsFromLocalCache()` in `lib/ecosystems/rubyutils.js` | 12.8.3 |
| ASAR parser accepts overlapping entries, causing quadratic CPU DoS | `validateHeaderEntry()` in `lib/ecosystems/asarutils.js` | not stated (12.x: 12.4.0) |
| Quadratic ReDoS in GitHub Actions interpolation and exfiltration regexes | `detectUntrustedInterpolation()` in `lib/inventory/ciParsers/githubActions.js` | 12.2.0 |
| Quadratic path normalisation of long vcpkg .list lines blocks the server | `readVcpkgInstalledIndex()` in `lib/ecosystems/cppIncludeResolver.js` | not stated (no match found in 12.x) |
| Quadratic ReDoS in licenseFromPomComment via a jar's embedded pom.xml | `licenseFromPomComment()` in `lib/ecosystems/ecosystems.js` | not stated (no match found in 12.x) |
| Swift evidence: quadratic time when description.json repeats a source | `createSemanticsSlices()` in `lib/evinser/swiftsem.js` | 13.3.0 (no match found in 12.x) |
| createJavaBom: whole-tree walk per pom.xml makes Quarkus scans quadratic | `createJavaBom()` in `lib/cli/jvmBom.js` | not stated (no match found in 12.x) |
| ReDoS in TLP secret regex stalls server; also in introspect redactor | `redactLedgerText()` in `lib/core/buildLedger.js` | 13.1.0 (no match found in 12.x) |
| Quadratic memory blowup in parsePkgLock binPaths crashes cdxgen server | `parsePkgLock()` in `lib/ecosystems/parsers-js.js` | not stated (no match found in 12.x) |
| DoS via quadratic include-dir probing in isFirstPartyHeader | `resolveCppBuildContext()` in `lib/ecosystems/cppBuildContext.js` | not stated (no match found in 12.x) |
| vcpkg .list index exhausts the heap: 1.6 MB file crashes cdxgen server | `readVcpkgInstalledIndex()` in `lib/ecosystems/cppIncludeResolver.js` | not stated (no match found in 12.x) |
| Quadratic-time DoS in XML parser via many declarations | `parseDocument()` in `lib/parsers/xml.js` | 13.0.0 (no match found in 12.x) |
| collectKosiServices cross-joins same-URL call sites: cubic-time DoS | `collectKosiServices()` in `lib/ecosystems/kosi.js` | 13.2.0 (no match found in 12.x) |
| Quadratic ReDoS in gemspec requirement and platform parsing | `parseGemRequirement()` in `lib/ecosystems/rubyutils.js` | 12.8.3 |
| createCaxaBom re-reads app and re-merges deps per metadata file (quadratic) | `createCaxaBom()` in `lib/cli/jsBom.js` | 13.3.0 (no match found in 12.x) |
| Exponential Dockerfile ARG expansion crashes cdxgen server with heap OOM | `substituteBuildArgs()` in `lib/ecosystems/parsers-misc.js` | 10.9.5 |
| Quadratic CPU in compareCmakeVersions from a long find_package version | `compareCmakeVersions()` in `lib/ecosystems/cmakeResolver.js` | 13.0.0 (no match found in 12.x) |
| cargoCache: double-gzipped .crate bypasses 64 MiB unpack bound (OOM) | `readCrateArchiveEntry()` in `lib/ecosystems/cargoCache.js` | not stated (no match found in 12.x) |
| CPU DoS in parseVsixFile via many .vsixmanifest entries in a small .vsix | `parseVsixFile()` in `lib/helpers/vsixutils.js` | not stated (no match found in 12.x) |
| Quadratic ReDoS from unanchored purl regexes in scalasem and kosi | `purlPurlName()` in `lib/ecosystems/scalasem.js` | 13.2.0 (no match found in 12.x) |
| Infinite loop on unclosed Unicode escape in ZON char literal crashes server | `readCharLiteral()` in `lib/ecosystems/parsers-zig.js` | not stated (no match found in 12.x) |
| Cubic-time DoS in Scala findPurlLocations via duplicate usedTypes | `findPurlLocations()` in `lib/evinser/scalasem.js` | not stated (no match found in 12.x) |
| docker: decompression bomb in applyLayerWhiteouts exhausts memory | `applyLayerWhiteouts()` in `lib/managers/docker.js` | 13.5.0 (no match found in 12.x) |
| ReDoS via blank lines in findStackLockFiles and similar regexes | `findStackLockFiles()` in `lib/cli/nativeBom.js` | 12.5.1 |
| Quadratic CPU: oversized go.sum checksum parsed per repeated require | `goSumIntegrity()` in `lib/ecosystems/parsers-go.js` | not stated (no match found in 12.x) |
| Quadratic package.json walk up a long pod path in Podfile.lock (DoS) | `buildObjectForCocoaPod()` in `lib/ecosystems/parsers-misc.js` | 11.2.1 |
| ReDoS in parseCsProjAssetsData via long direct-dependency strings | `parseCsProjAssetsData()` in `lib/ecosystems/parsers-dotnet.js` | 9.7.2 |
| ReDoS in parseLegacyAptRepositorySources via crafted container image | `parseLegacyAptRepositorySources()` in `lib/managers/binary.js` | 12.4.0 |
| Quadratic memory use in Cargo workspace inheritance crashes the server | `resolveCargoWorkspacePackageNode()` in `lib/ecosystems/parsers-rust.js` | 12.3.1 |
| Quadratic-time DoS in createRustBom via many empty .d files (--deep) | `createRustBom()` in `lib/cli/nativeBom.js` | 10.5.2 |
| Quadratic realpathSync on .gitmodules paths stalls cdxgen server | `resolveCppBuildContext()` in `lib/ecosystems/cppBuildContext.js` | not stated (no match found in 12.x) |
| CMake variable expansion still unbounded: 10 kB file OOM-crashes cdxgen | `cmakeFetchDependencies()` in `lib/parsers/cmakeLists.js` | 13.3.0 (no match found in 12.x) |
| Quadratic CPU in dosai reachability: long purl re-parsed for every id | `resolveDosaiComponentPurl()` in `lib/inventory/dosaiParsers.js` | 12.4.2 |
| Failed image export blocks the Docker connection until cdxgen restarts | `stream()` in `lib/managers/dockerConnection.js` | 12.7.1 |
| Quadratic ReDoS in yarnLockToIdentMap via U+2028 in yarn.lock keys | `yarnLockToIdentMap()` in `lib/ecosystems/parsers-js.js` | 6.0.0 |
| cargoCache: duplicate Cargo.lock entries re-unpack the same crate (DoS) | `readCargoCacheMetadata()` in `lib/ecosystems/cargoCache.js` | 13.4.0 (no match found in 12.x) |

Impact

Hours of CPU time or exhausted memory for one scan of crafted content, which fails or hangs a CI job. The HTTP server runs parsers on the event loop, so one such scan can leave `cdxgen --server` unresponsive to every client, `/health` included, until it ends, and `CDXGEN_SERVER_TIMEOUT_MS` does not interrupt synchronous work. A heap exhaustion ends the process.

Patches

Fixed in `@cdxgen/cdxgen` 13.9.0 (cdxgen/cdxgen#4880). Versions 13.0.0 through 13.8.0 of `@cdxgen/cdxgen` are affected. The 12.x line, published as `@cyclonedx/cdxgen`, is also affected by some of the issues above from 1.4.25 through 12.9.2, and no 12.x release contains the fix. Users of 12.x should move to `@cdxgen/cdxgen` 13.9.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`.

Known limits of the fix.
Several fixes cap the input they accept, and cdxgen now logs when data is dropped: workspace patterns (1024), `cdx:npm:manifestSource` (2048 characters), `cdx:npm:binPaths` (16384), CI step text (512), NuGet versions over 1024 characters, Dockerfile statements (4096), OpenAPI server URLs (2048), Terraform constraints and `modules.json` keys (1024), `HintPath` over 4096, C/C++ include directories (4096 searched), Rust workspace values over 4096 and crate files over 1 MiB, wheel `License` headers over 64 KiB (other headers 8192), YAML documents with more than 200 alias nodes. Archives are limited to 100 times their size (between 64 MiB and 8 GiB, `CDXGEN_UNZIP_MAX_*`), image unpacking to 100 times (at least 1 GiB), nested ASAR archives to 512, an Info.plist to 16 MiB, and at most 20 referrers are read per image. ASAR archives are named relative to the scan root with a header digest. The rule engine reports an unanswered SBOM probe as unknown, not as a CTR-009 or CTR-010 finding. The cost of crafted input at about 30 other sites that merge or re-parse lists (`RRF3AYTO`, `BU41VJZC`, `KGLOFUW9`) needs a shared bounded reader and is a follow-up, as are the CPU residuals `P7ST7F65` (`switch` narrowing), `H7UOFUGU` (`ScalaJoinIndex.narrow()`) and `FVVHS9WO` (a shared Terraform `main.tf`). Babel error recovery is now off in the analyzer, so a file with a recoverable syntax error gives no JavaScript evidence. Class names are capped at 16 MiB per jar and 128 MiB per run.

Workarounds
  • Run scans of untrusted content in a job with a time limit and a memory limit, and restart the server if it stops answering.
  • Run `cdxgen --server` only for clients that you trust, with a process supervisor that restarts it.
  • Give the temporary directory its own quota where scans of untrusted archives run.
  • Avoid `--deep`, `--evidence` and `-t cbom` for untrusted repositories.
  • Scan only images from sources that you trust, or in a job with a disk quota and a time limit.
Credit

These issues were found by Anthropic's OSS Scanner (scan cdxgen-20261117-013) and reported as ANT-2026-00EHSM43, ANT-2026-05A9RZKN, ANT-2026-0ASQCGDP, ANT-2026-0BBO8CRW, ANT-2026-0QYQ0S6B, ANT-2026-0RIDKX1M, ANT-2026-0RY9JF41, ANT-2026-0W9HLA9D, ANT-2026-11HO6X9L, ANT-2026-1DDH56CO, ANT-2026-1GK48QFT, ANT-2026-1TFJGOAI, ANT-2026-1ZE7ZY74, ANT-2026-24DML8JE, ANT-2026-25SXVNE6, ANT-2026-2DO5Z8YP, ANT-2026-324IEL1N, ANT-2026-3HC011QS, ANT-2026-3HLU1XA5, ANT-2026-3N2VWTL3, ANT-2026-3W9Y6XRK, ANT-2026-40DO58B4, ANT-2026-43A1Z8OU, ANT-2026-43DKKXRW, ANT-2026-4FV1SXBS, ANT-2026-4G089HIJ, ANT-2026-4GB4VKIK, ANT-2026-51CRIU5T, ANT-2026-51ICIFFC, ANT-2026-5OXI1IL3, ANT-2026-5QUTD1RX, ANT-2026-62Y0NK7V, ANT-2026-63VIW1LU, ANT-2026-68A7CYRZ, ANT-2026-6CLK3YHA, ANT-2026-6DUHIZW6, ANT-2026-6FG3WI9J, ANT-2026-6IZJPVXS, ANT-2026-6J1D7N10, ANT-2026-6JKLW4PY, ANT-2026-6OPEY9EY, ANT-2026-6QAMD3YH, ANT-2026-6TPPEWHS, ANT-2026-77YROUNU, ANT-2026-78MJAYX7, ANT-2026-7B2Z7BE8, ANT-2026-7PANMUD3, ANT-2026-81FG751D, ANT-2026-82LFMVW6, ANT-2026-86RXLJNB, ANT-2026-8AY4F5ST, ANT-2026-8FI5EF2K, ANT-2026-8WI1BLQ5, ANT-2026-9LKI2YV9, ANT-2026-9MWMQ5MK, ANT-2026-AOCQ8IJO, ANT-2026-AW07AE0Z, ANT-2026-B01OUJMM, ANT-2026-B5DR8ASH, ANT-2026-BAZM4ED8, ANT-2026-BDMWMM0S, ANT-2026-BU41VJZC, ANT-2026-CN9B58WS, ANT-2026-CNFV5IOY, ANT-2026-CPNYXP1Q, ANT-2026-DFG5K9F9, ANT-2026-DLO8D5JB, ANT-2026-E2RW09EL, ANT-2026-E3QLRJZV, ANT-2026-EGG7B09K, ANT-2026-EQ8JOV89, ANT-2026-F41GXNR1, ANT-2026-F4K74DU8, ANT-2026-FFRHUCO2, ANT-2026-FVVHS9WO, ANT-2026-GGYWHDAI, ANT-2026-GO6KTJCZ, ANT-2026-GRWQZ0B5, ANT-2026-H7UOFUGU, ANT-2026-HBU9720H, ANT-2026-HHVAKMS7, ANT-2026-HT9KTDCR, ANT-2026-I5QT4OCD, ANT-2026-I64K7DV7, ANT-2026-IA41FCQ2, ANT-2026-IKJSC58C, ANT-2026-IR5ZSDFI, ANT-2026-IVBDYDA5, ANT-2026-J0QEUXP9, ANT-2026-J0V6D2ZQ, ANT-2026-JJ13ENQ0, ANT-2026-JS4UD77D, ANT-2026-JXCECAR2, ANT-2026-KGLOFUW9, ANT-2026-KIWNQTHG, ANT-2026-KOWY5I40, ANT-2026-KP53Y47S, ANT-2026-L2ECHL88, ANT-2026-LA3MLJQX, ANT-2026-LD5FRZQZ, ANT-2026-LQ1YRQOL, ANT-2026-N0DFQY2D, ANT-2026-N9H1ERW0, ANT-2026-NEIBC4L6, ANT-2026-NUAFOMDI, ANT-2026-O6G7X2PD, ANT-2026-O9HLMJFT, ANT-2026-ODMI5B26, ANT-2026-OGPC2K6A, ANT-2026-P6Z4T478, ANT-2026-P7ST7F65, ANT-2026-POW80W3X, ANT-2026-QL27RV6T, ANT-2026-QOCPM2PF, ANT-2026-QQ23F79Y, ANT-2026-QZO7K8FG, ANT-2026-RGISM5WP, ANT-2026-RRF3AYTO, ANT-2026-S0IRD3JZ, ANT-2026-S6A2CW04, ANT-2026-S8BFGRY9, ANT-2026-S8XQPNVM, ANT-2026-SF4CDUOE, ANT-2026-SNPSGF73, ANT-2026-T1GGLX7Z, ANT-2026-TEV5JJ5K, ANT-2026-TILY7IN3, ANT-2026-TJRFNPY5, ANT-2026-TL94QBM4, ANT-2026-TMC9JS87, ANT-2026-TN2LNVOZ, ANT-2026-TU4LXEPW, ANT-2026-U6FK920W, ANT-2026-UMHX0MMA, ANT-2026-UMN1XHC4, ANT-2026-UQDQGTNZ, ANT-2026-UVRCX5JD, ANT-2026-UW2S36AG, ANT-2026-UXUY4VFG, ANT-2026-V8VWDLXY, ANT-2026-VGXZKGB2, ANT-2026-WVQFN7C2, ANT-2026-X4V3JYA1, ANT-2026-X4X23LBA, ANT-2026-XERCNL3V, ANT-2026-XI2Q3BPF, ANT-2026-XZALYLLC, ANT-2026-YPUHM8RT, ANT-2026-YS6PEFOH, ANT-2026-YW3TSIYM, ANT-2026-YZPWK9HC, ANT-2026-Z0JEFGY9, ANT-2026-Z1688KR4, ANT-2026-Z66AMGYV, ANT-2026-ZCT72H79, ANT-2026-ZDT7JWC0, ANT-2026-ZGE75QR2, ANT-2026-ZJH1SFTN, ANT-2026-ZODHEVLK, ANT-2026-ZQVQWOX3, and were fixed by AI agents working for the cdxgen maintainers.

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/4880
Vector CVSS 4.0

Desglose de métricas

Opción resaltada = valor del vector · izquierda = peor caso · GitHub
Vector de ataqueAV:N
RedAdyacenteLocalFísica
ComplejidadAC:L
BajaAlta
Requisitos de ataqueAT:P
NingunoPresentes
PrivilegiosPR:L
NingunoBajosAltos
InteracciónUI:N
NingunaPasivaActiva
Confid. (sistema)VC:N
AltoBajoNinguno
Integridad (sistema)VI:N
AltoBajoNinguno
Disponib. (sistema)VA:H
AltoBajoNinguno
Confid. (posterior)SC:N
AltoBajoNinguno
Integridad (posterior)SI:N
AltoBajoNinguno
Disponib. (posterior)SA:N
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≥ 1.4.25 ≤ 12.9.2
@cdxgen/cdxgen≥ 13.0.0 < 13.9.0
1.4.25
12.9.2
13.0.0
13.9.0
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
npm@cyclonedx/cdxgen
Sin parche — — 12.9.2 afectada
Versiones corregidas13.9.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-6vww-36x2-c89f

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