augment-vir: Shell Command Injection in `grep()` via Unsanitized `searchPattern`
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| electrovir | augment-vir | affected |
|
No data.
No data.
| Vendor | Product | Versions | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Electrovir | Augment-vir |
|
No CVSS v4.0
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.184% probability within 30 days)
Key SSVC decision points have not yet been added.
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Electrovir
Electrovir augment-vir |
|
| Vendors & Products |
Electrovir
Electrovir augment-vir |
| Type | Values Removed | Values Added |
|---|---|---|
| Description | augment-vir is a collection of helper functions. Prior to version 31.73.5, the grep() function exported by @augment-vir/node inserts caller-controlled search patterns directly into a double-quoted shell command string without sanitization (grep.ts:310). When the constructed command is passed to spawn() with shell: 'bash' (shell.ts:98-99), bash evaluates $() command substitution expressions embedded in the pattern, resulting in arbitrary OS command execution as the Node.js process user. Any downstream application that passes untrusted input to grep()'s pattern or patterns field is vulnerable to unauthenticated local (and potentially remote) code execution. This issue has been patched in version 31.73.5. | |
| Title | augment-vir: Shell Command Injection in `grep()` via Unsanitized `searchPattern` | |
| Weaknesses | CWE-78 | |
| References |
| |
| Metrics |
cvssV3_1
|