PowSyBl Core has Command Injection in LocalCommandExecutor-sGHSA-jqvf-j3ww-r8c7
Fix: powsybl/powsybl-core#3973GHSA-jqvf-j3ww-r8c7 is a OS Command Injection vulnerability in com.powsybl:powsybl-computation-local. A fix is available for com.powsybl:powsybl-computation-local — see the affected versions and patch details below.
Exploitation Status
No confirmed exploitation observed yet
- CISA’s own triage has not observed active exploitation or public proof-of-concept code for this CVE as of its last assessment.
Exploitation and automatability from CISA’s SSVC triage for GHSA-jqvf-j3ww-r8c7.
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
Real-World Exposure
com.powsybl:powsybl-computation-localReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Maven packages — download data is not available via public APIs for these ecosystems.
Description
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,^
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| ☕Maven | com.powsybl:powsybl-computation-local | all versions | 7.2.2com.powsybl:powsybl-computation-local:7.2.2 |
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for com.powsybl:powsybl-computation-local, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update com.powsybl:powsybl-computation-local to 7.2.2 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-jqvf-j3ww-r8c7 is resolved across your whole dependency graph.
Workarounds
Stop passing untrusted input into the interpreter or shell: call the affected binary with an argument array rather than a composed command string, reject anything outside a strict allowlist of expected values, and run the component under an account that cannot reach beyond the work it legitimately does.
Frequently Asked Questions
Is GHSA-jqvf-j3ww-r8c7 in your dependencies?
Find it across Maven, including transitive dependencies.