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.
Published: 2026-11-09
Score: 7.8 High
EPSS: n/a
KEV: No
Impact: Remote Code Execution
Action: Immediate Patch
AI Analysis

Impact

The vulnerability arises from the grep() helper function in augment‑vir, which inserts caller‑controlled search patterns directly into a double‑quoted shell command without sanitization. When the constructed command is executed via spawn() with a bash shell, the shell evaluates embedded command substitution expressions, allowing an attacker to execute arbitrary OS commands as the Node.js process user. This results in unauthenticated local, and in some scenarios remote, code execution, compromising confidentiality, integrity and availability of the affected system. It is a classic instance of unsanitized command injection, classified as CWE‑78.

Affected Systems

Affected products are the electrovir augment‑vir library. Versions older than 31.73.5 are vulnerable; the vulnerability has been fixed in version 31.73.5.

Risk and Exploitability

The CVSS score is 7.8, indicating a high severity risk. EPSS is not available and there is no KEV listing, but the flaw allows unauthenticated exploitation if untrusted data reaches the grep() function. Attacks can originate from local code that can materialize untrusted input, or from remote applications exposing the function. The lack of a public exploit does not diminish the risk, as the necessary primitives are straightforwardly available to an attacker with access to the input channel.

Generated by OpenCVE AI on November 9, 2026 at 23:06 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade augment‑vir to version 31.73.5 or newer.
  • Ensure that any data passed to grep()’s searchPattern is validated and sanitized to eliminate shell metacharacters such as $().
  • If upgrading immediately is not possible, restrict the use of grep() to trusted inputs only and monitor for suspicious command execution patterns.

Generated by OpenCVE AI on November 9, 2026 at 23:06 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 09 Nov 2026 21:15:00 +0000

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

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-11-09T20:55:33.876Z

Reserved: 2026-07-16T21:49:52.069Z

Link: CVE-2026-63496

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-11-09T22:18:53.473

Modified: 2026-11-09T22:18:53.473

Link: CVE-2026-63496

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-11-09T23:15:03Z

Weaknesses
  • CWE-78

    Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')