CVE-2026-36044

OS Command Injection in @pensar/apex smart_enumerate Tool

Published May 27, 2026 CVSS 3.1 · 8.8 High EPSS 1.9% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Title OS Command Injection in @pensar/apex smart_enumerate Tool
Type Values Removed Values Added
Title OS Command Injection Vulnerability in @pensar/apex Smart Enumerate Tool
Type Values Removed Values Added
Title OS Command Injection Vulnerability in @pensar/apex Smart Enumerate Tool
Type Values Removed Values Added
Title OS Command Injection via Unsanitized Parameters in @pensar/apex's smart_enumerate Tool
Type Values Removed Values Added
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. @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.
References
Type Values Removed Values Added
First Time appeared Pensar
Pensar apex
Vendors & Products Pensar
Pensar apex
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Title OS Command Injection via Unsanitized Parameters in @pensar/apex's smart_enumerate Tool
Weaknesses CWE-78
Type Values Removed Values Added
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.
References
Metrics cvssV3_1

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

Weaknesses

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Jun 3, 2026, 3:41 AM
Reserved
Apr 6, 2026, 12:00 AM
Status
Deferred
Published
May 27, 2026, 2:16 PM
Modified
Jun 17, 2026, 10:41 AM