Summary
PowSyBl Core has Command Injection in LocalCommandExecutor-s
Advisory details
Impact
Description
Both AbstractLocalCommandExecutor OS-dependent implementations are subject to CWE-78 (OS Command Injection), with a secondary CWE-88 (Argument Injection) concern via environment variables.
The local command executor build command strings via concatenation and executes them (through bash -c for Unix, or cmd /c for Windows). Any string argument or environment variable value reaching this executor can break out of the intended command and execute arbitrary shell code as the JVM user.
The sink is reachable through public APIs that accept List<String> arguments without any documented indication that elements undergo shell interpretation.
Any caller — CLI, library integration, or embedding service — that forwards data from a less-trusted source into these APIs inherits the vulnerability.
Vulnerable elements
The vulnerable elements are:
- Public methods:
UnixLocalCommandExecutor.execute(...)WindowsLocalCommandExecutor.execute(...)LocalComputationManager.execute(...)ParallelLoadFlowActionSimulator.run(...)ActionSimulatorTool.run(...)AmplModelRunner.run(...)AmplModelRunner.runAsync(...)
- itools commands:
action-simulator, when thetask-countoption is definedsecurity-analysis, when theexternaloption is defineddynamic-security-analysis
Characteristics
The vulnerability characteristics are the following:
- It allows arbitrary shell command execution as the JVM user (read, write, execute any file; spawn processes; exfiltrate data; etc.)
- There are multiple independent injection vectors within a single vulnerable call:
argselements (weakly escaped — bypassable via$(...), backticks, escaped quotes)- Environment variable values (unescaped — bypassable via
;,\n, or shell metacharacters)
- It is silent from the caller's perspective: the
List<String>API gives no indication that shell interpretation occurs. - It exposes downstream projects: any service embedding
powsybl-core(REST front-ends, pypowsybl tooling, multi-tenant grid analysis platforms) that exposes contingency IDs or computation parameters to external input is exploitable without needing to touch powsybl's code directly.
Am I impacted?
You are vulnerable if you make direct calls to one of the vulnerable end-user methods or itools commands listed in the "Vulnerable elements" section, with user-provided parameters, without controlling them.
Patches
com.powsybl:powsybl-computation-local:7.2.2 and higher
Workarounds
If you cannot update your powsybl-computation-local version, you can check the content of the user-provided arguments when calling the vulnerable methods, by forbidding (if possible) the following characters:
- On Unix/Linux systems:
\,!,#,$,^,&,*,(,),{,},|,[,],\,;,\,",,,<,>,?,
- On Windows:
%,!,",\n,\r,^
References
- https://github.com/advisories/GHSA-jqvf-j3ww-r8c7
- https://github.com/powsybl/powsybl-core/security/advisories/GHSA-jqvf-j3ww-r8c7
- https://github.com/powsybl/powsybl-core/pull/3973
- https://github.com/powsybl/powsybl-core/commit/17461264d1d18f9bba43bb7855f251e9fa55a4db
- https://github.com/powsybl/powsybl-core/commit/7aa28d8c2492bbcd061585cb498acce72d5ed79a
- https://github.com/powsybl/powsybl-core/releases/tag/v7.2.2
Related vulnerabilities
All Supply chain →- HIGHGHSA-g3hq-hphg-8fhh
Pheditor: Terminal command-allowlist bypass via argument injection leads to RCE — surviving vector after the metacharacter-sanitization fixes
- HIGHGHSA-r9mr-m37c-5fr3
GitPython: Unsafe git option guard bypass via single-character kwarg value token smuggling enables arbitrary command execution
- HIGHCVE-2026-75912
CodeWhale: Argument Injection in `git_blame` Tool Allows Arbitrary File Read Without Approval
- HIGHCVE-2026-75913
CodeWhale: Argument Injection in `git_show` Tool Allows Arbitrary File Write Without Approval
- HIGHCVE-2026-73222
Claude Code Templates: Unauthenticated OS command injection (RCE) in Claude Code Studio server (--studio)
- HIGHCVE-2026-73667
OpenChoreo: Authenticated OS command injection via OpenChoreo Workflow Plane templates enables code execution in privileged pods