Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[GHSA-hxf3-vgpm-fv9p] CycloneDX cdxgen may execute code contained within build-related files #5244

Conversation

prabhu
Copy link

@prabhu prabhu commented Feb 2, 2025

Updates

  • Affected products
  • CVSS v3
  • CVSS v4

Comments
cdxgen (>= v11.1.7) now includes a "secure mode," powered by the Node.js permission model. This "seat-belt approach" allows you to control which system resources cdxgen can access and what actions it can perform with those resources. For example, in --lifecycle pre-build mode, you can restrict cdxgen to reading only specific files, without granting permission to execute child processes. Even when executing node-based commands such as npm or atom, you can further limit the directories these external commands can read and write, as well as their permissions to execute child processes. This makes cdxgen an ideal SBOM tool when dealing with untrusted codebases (which is all software).

For further information, please refer to the permissions documentation or start using the new ghcr.io/cyclonedx/cdxgen-secure container image.

Thank you to @eran-medan and the other security researchers for helping bring this feature live.

Addresses CVE-2024-50611 and #1328. Please update at your convenience.

@github-actions github-actions bot changed the base branch from main to prabhu/advisory-improvement-5244 February 2, 2025 14:39
@advisory-database advisory-database bot merged commit f81f7d6 into prabhu/advisory-improvement-5244 Feb 3, 2025
2 checks passed
@advisory-database
Copy link
Contributor

Hi @prabhu! Thank you so much for contributing to the GitHub Advisory Database. This database is free, open, and accessible to all, and it's people like you who make it great. Thanks for choosing to help others. We hope you send in more contributions in the future!

@advisory-database advisory-database bot deleted the prabhu-GHSA-hxf3-vgpm-fv9p branch February 3, 2025 13:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant