Wysoka

PowSyBl Core has Command Injection in LocalCommandExecutor-s

  • Ujawniono: 28.08.2026
  • Aktualizacja: 11.10.2026 13:19

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 the task-count option is defined
    • security-analysis, when the external option is defined
    • dynamic-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:
    • args elements (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, ^

Czego dotyczy

Kliknij technologię, aby zobaczyć wszystkie dotyczące jej podatności.

PlatformaPaczkaPodatne wersjePoprawka w wersji
Java / Kotlin (Maven) com.powsybl:powsybl-computation-local < 7.2.2 7.2.2

Odnośniki

Ocena CVSS -
Wektor CVSS
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:H/SC:N/SI:N/SA:N
Słabość (CWE)
CWE-78, CWE-88
Platforma
Java / Kotlin (Maven)
Paczka
com.powsybl:powsybl-computation-local
Ujawniono
28.08.2026
Aktualizacja
11.10.2026 13:19

Źródła i licencje

OSV / GitHub Advisory Database - GHSA-jqvf-j3ww-r8c7 - CC BY 4.0

Historia podatności: com.powsybl:powsybl-computation-local

Wszystkie opisane podatności tej paczki (Java / Kotlin (Maven)), od najnowszej. Widać, czy to jednorazowa wpadka, czy paczka, której trzeba pilnować.

To jedyna znana podatność tej paczki.

Dowiedz się, które podatności dotyczą Twojej aplikacji

Po podłączeniu integracji DockRay i włączeniu raportowania oprogramowania DockRay porównuje zgłoszone wersje komponentów ze znanymi podatnościami i powiadamia o potwierdzonych dopasowaniach. Zakres zależy od obsługiwanej technologii i dostępnych biuletynów.

Podłącz swoją aplikację
Newsletter DockRay

Bezpieczeństwo aplikacji w Twojej skrzynce

Najważniejsze podatności, konkretne zalecenia i praktyczne wskazówki dla Twoich aplikacji. Wybierz technologie i śledź to, co ma znaczenie dla Twojego projektu.

  • Codzienne zestawienie nowych podatności, także krytycznych.
  • Powiadomienia o ważnych aktualizacjach.
  • Praktyczne porady o bezpieczeństwie i monitoringu aplikacji.

Pozostaw puste, aby otrzymywać informacje o wszystkich technologiach.

Zapis jest bezpłatny. Wypiszesz się jednym kliknięciem w wiadomości.