CVE-2025-47771
JSON

8.1high

PowSyBl Core allows deserialization of untrusted SparseMatrix data

Severity
8.1high CVSS:4.0 by GitHub_M
Exploit likelihood
0.54% (higher than 46% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-f5cx-h789-j959

Description

PowSyBl (Power System Blocks) is a framework to build power system oriented software. In versions 6.3.0 to 6.7.1, there is a deserialization issue in the read method of the SparseMatrix class that can lead to a wide range of privilege escalations depending on the circumstances. This method takes in an InputStream and returns a SparseMatrix object. This issue has been patched in com.powsybl:powsybl-math: 6.7.2. A workaround for this issue involves not using SparseMatrix deserialization (SparseMatrix.read(...) methods).

Affected

Product or packageVersionsReported by
powsybl powsybl-core>= 6.3.0, < 6.7.2CVE List
com.powsybl:powsybl-math (Maven)from 6.3.0 before 6.7.2GitHub Advisory Database

All scores

GitHub_M8.1high CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U
GitHubhigh CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U

Classification

CWE-502

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.

What each source says

CVE List

PowSyBl (Power System Blocks) is a framework to build power system oriented software. In versions 6.3.0 to 6.7.1, there is a deserialization issue in the read method of the SparseMatrix class that can lead to a wide range of privilege escalations depending on the circumstances. This method takes in an InputStream and returns a SparseMatrix object. This issue has been patched in com.powsybl:powsybl-math: 6.7.2. A workaround for this issue involves not using SparseMatrix deserialization (SparseMatrix.read(...) methods).

GitHub Advisory Database
Impact

What kind of vulnerability is it? Who is impacted?

This is a disclosure for a security vulnerability in the SparseMatrix class. The vulnerability is a deserialization issue that can lead to a wide range of privilege escalations depending on the circumstances. The problematic area is the read method of the SparseMatrix class. This method takes in an InputStream and returns a SparseMatrix object. We consider this to be a method that can be exposed to untrusted input in at least two use cases:

  • A user can adopt this method in an application where users can submit an InputStream and the application parses it into a SparseMatrix. This can be a multi-tenant application that hosts many different users perhaps with different privilege levels.
  • A user adopts the method for a local tool but receives the InputStream from external sources.
Am I impacted?

You are vulnerable if you import non-controlled serialized SparseMatrix objects.

Patches

com.powsybl:powsybl-math:6.7.2 and higher

Workarounds

Is there a way for users to fix or remediate the vulnerability without upgrading?

Do not use SparseMatrix deserialization (SparseMatrix.read(...) methods).

References

powsybl-core v6.7.2

NVD (es)

PowSyBl (Power System Blocks) es un framework para crear software orientado a sistemas de energía. En las versiones 6.3.0 a 6.7.1, existe un problema de deserialización en el método de lectura de la clase SparseMatrix que puede provocar diversas escaladas de privilegios según las circunstancias. Este método recibe un InputStream y devuelve un objeto SparseMatrix. Este problema se ha corregido en com.powsybl:powsybl-math: 6.7.2. Una solución alternativa consiste en no utilizar la deserialización de SparseMatrix (métodos SparseMatrix.read(...)).

References

Sources

SourceRecordLicence
CVE ListCVE-2025-47771 changed 2025-06-20CVE Terms of Use
GitHub Advisory DatabaseGHSA-f5cx-h789-j959 changed 2025-06-20CC-BY-4.0
NVDCVE-2025-47771 changed 2026-06-17Public domain