CVE-2024-50611: CycloneDX cdxgen may execute code contained within build-related files
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.
Published Oct 28, 2024 · Updated Feb 3, 2025
Affected packages
@cyclonedx/cdxgen
- Ecosystem
- npm
- Affected
- < 11.1.7
- Fixed in
- 11.1.7
- Check
npm ls @cyclonedx/cdxgen
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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.
Credited to prabhu.
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
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
