CVE-2026-36044: @pensar/apex - Command Injection
- Cve: CVE-2026-36044
- Name: @pensar/apex - Command Injection
- 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.
- Impact: Attackers can execute arbitrary OS commands with the privileges of the running process, potentially leading to full system compromise.
- Remediation: Update to a version later than 0.0.58 or the latest available version.
- Vulnerability type: command_injection
- Vulnerability impact: remote_code_execution
- Requirement type: none
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 8.8
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- Epss score: 0.01852
- Epss percentile: 0.79683
- Assignee: [email protected]
- Published at: 2026-05-27T14:16:45Z
- Age in days: 181
- Modified at: 2026-06-17T10:41:02Z
- References total: 3
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-36044
- Nvd status: deferred
- Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, products total, products, oss, projects total, projects, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-78 | Improper Neutralization of Special Elements used in an OS Command |
References
Same in every row:
- Source: nvd
- Tags:
| Url |
|---|
| https://gist.github.com/NucleiAv/47e87da08b90ef464fd9b35affe578fb |
| https://github.com/pensarai/apex/security |
| https://www.npmjs.com/package/@pensar/apex |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Remote: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts