cyclonedx/cdxgen · Security
CycloneDX cdxgen may execute code contained within build-related files
- GHSA ID
- GHSA-hxf3-vgpm-fv9p
- CVE ID
- CVE-2024-50611
- Severity
- medium
- Published
- Updated
- CVSS
- 6.4 · CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H
- CVSS v3
- 6.4 · CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H
- CVSS v4
- 6.2 · CVSS:4.0/AV:L/AC:L/AT:P/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P
Description
CycloneDX cdxgen prior to 11.1.7, when run against an untrusted codebase, may execute code contained within build-related files such as build.gradle.kts, a similar issue to CVE-2022-24441. cdxgen is used by, for example, OWASP dep-scan. NOTE: this has been characterized as a design limitation, rather than an implementation mistake.
CWEs
- CWE-94 · Improper Control of Generation of Code ('Code Injection')
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-50611 ↗
- https://github.com/CycloneDX/cdxgen/issues/1328 ↗
- https://github.com/CycloneDX/cdxgen/releases ↗
- https://owasp.org/www-project-dep-scan ↗
- https://github.com/CycloneDX/cdxgen/pull/1614 ↗
- https://github.com/CycloneDX/cdxgen/releases/tag/v11.1.7 ↗
- https://github.com/advisories/GHSA-hxf3-vgpm-fv9p ↗