Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. @cyclonedx/cdxgen
  4. ›
  5. GHSA-5vwr-qchf-q4pf

GHSA-5vwr-qchf-q4pf: @cyclonedx/cdxgen: Maven project scanning may allow shell command injection through repository-controlled module paths

June 26, 2026

A command injection vulnerability existed in the Maven scanning flow of cdxgen before version 12.4.3.

When cdxgen scanned an attacker-controlled Maven project, repository-controlled paths could be used in the Maven command construction. In affected versions, some Maven invocations were executed with shell: true. A directory name containing shell metacharacters could therefore be interpreted by the shell instead of being treated only as a filesystem path.

This could allow an attacker who controls a scanned repository to execute commands in the cdxgen process context.

The issue affected both the CLI and server mode. The issue is patched in 12.4.3.

References

  • github.com/advisories/GHSA-5vwr-qchf-q4pf
  • github.com/cdxgen/cdxgen/pull/4059
  • github.com/cdxgen/cdxgen/security/advisories/GHSA-5vwr-qchf-q4pf

Code Behaviors & Features

Detect and mitigate GHSA-5vwr-qchf-q4pf with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 12.4.3

Fixed versions

  • 12.4.3

Solution

Upgrade to version 12.4.3 or above.

Impact 7.2 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
  • CWE-88: Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')

Source file

npm/@cyclonedx/cdxgen/GHSA-5vwr-qchf-q4pf.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 19 Jul 2026 12:17:30 +0000.