Nx: OS command injection via nx.json plugin options in @nx/maven and @nx/gradle
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| nrwl | nx | affected |
|
|||||||||
| @nx | maven | affected |
|
|||||||||
| @nx | gradle | affected |
|
No data.
No data.
| Vendor | Product | Versions | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Nrwl | Gradle |
|
||||||||||||
| Nrwl | Maven |
|
||||||||||||
| Nrwl | Nx |
|
| Source | ID | Title |
|---|---|---|
Github GHSA |
GHSA-qm8w-vx34-5j9j | @nx/maven and @nx/gradle have OS command injection via nx.json plugin options |
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.140% probability within 30 days)
| Type | Values Removed | Values Added |
|---|---|---|
| References |
| |
| Metrics |
threat_severity
|
cvssV3_1
|
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
ssvc
|
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Nrwl
Nrwl gradle Nrwl maven Nrwl nx |
|
| Vendors & Products |
Nrwl
Nrwl gradle Nrwl maven Nrwl nx |
| Type | Values Removed | Values Added |
|---|---|---|
| Description | Nx is a monorepo solution for TypeScript and polyglot codebases. From 22.0.2 until 22.7.9 and 23.1.2 for @nx/maven, and from 21.0.0 until 22.7.9 and 23.1.2 for @nx/gradle, the plugins' project-graph analyzers launch through a shell and interpolate plugin options from nx.json into command arguments. The @nx/maven targetNamePrefix value and arbitrary @nx/gradle option names or values can therefore be interpreted as shell syntax whenever an nx command constructs the project graph. A user who runs Nx in an attacker-controlled repository or pull request can execute injected commands with the user's privileges, while workspaces that register neither affected plugin are not exposed to this path. Remediation requires upgrading both nx and each affected plugin to matching releases because the plugin fix depends on code in the nx package. This issue is fixed in versions 22.7.9 and 23.1.2. | |
| Title | Nx: OS command injection via nx.json plugin options in @nx/maven and @nx/gradle | |
| Weaknesses | CWE-78 CWE-88 |
|
| References |
|
|
| Metrics |
cvssV4_0
|