CVE-2025-48059
JSON

2.7low

PowSyBl Core Contains a Polynomial ReDoS in RegexCriterion

Severity
2.7low CVSS:4.0 by GitHub_M
Exploit likelihood
0.60% (higher than 50% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-8qjw-9xgm-c9ff

Description

PowSyBl (Power System Blocks) is a framework to build power system oriented software. In com.powsybl:powsybl-iidm-criteria versions 6.3.0 to before 6.7.2 and com.powsybl:powsybl-contingency-api versions 5.0.0 to before 6.3.0, there is a a potential polynomial Regular Expression Denial of Service (ReDoS) vulnerability in the RegexCriterion class. This class compiles and evaluates an unvalidated, user-supplied regular expression against the identifier of an Identifiable object via Pattern.compile(regex).matcher(id).find(). If successfully exploited, a malicious actor can cause significant CPU exhaustion through repeated or recursive filter(...) calls — especially if performed over large network models or filtering operations. This issue has been patched in com.powsybl:powsybl-iidm-criteria 6.7.2.

Affected

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

All scores

GitHub_M2.7low CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:U
GitHublow CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:U

Classification

CWE-1333

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 com.powsybl:powsybl-iidm-criteria versions 6.3.0 to before 6.7.2 and com.powsybl:powsybl-contingency-api versions 5.0.0 to before 6.3.0, there is a a potential polynomial Regular Expression Denial of Service (ReDoS) vulnerability in the RegexCriterion class. This class compiles and evaluates an unvalidated, user-supplied regular expression against the identifier of an Identifiable object via Pattern.compile(regex).matcher(id).find(). If successfully exploited, a malicious actor can cause significant CPU exhaustion through repeated or recursive filter(...) calls — especially if performed over large network models or filtering operations. This issue has been patched in com.powsybl:powsybl-iidm-criteria 6.7.2.

GitHub Advisory Database
Impact

What kind of vulnerability is it? Who is impacted?

This is an advisory for a potential polynomial Regular Expression Denial of Service (ReDoS) vulnerability in the RegexCriterion class. This class compiles and evaluates an unvalidated, user-supplied regular expression against the identifier of an Identifiable object via Pattern.compile(regex).matcher(id).find().

To trigger polynomial ReDoS in RegexCriterion, two attacker-controlled conditions must be met:

  • Control over the regex input passed into the constructor:
    • Example: An attacker supplies a malicious pattern such as (.*a){10000}.
  • Control or influence over the output of Identifiable.getId():
    • Example: A long string like "aaaa...!" that forces excessive backtracking.

If both conditions are satisfied, a malicious actor can cause significant CPU exhaustion through repeated or recursive filter(...) calls — especially if performed over large network models or filtering operations. While this class does not handle file or memory data directly, its reliance on untrusted regular expressions and potentially attacker-controlled identifiers makes it vulnerable to polynomial ReDoS under the right conditions. This risk is amplified when the library is used in dynamic or scriptable environments where external users control either criterion construction or network object identifiers. Although not as dangerous as catastrophic exponential ReDoS, the polynomial pattern still induces significant performance degradation as input size increases.

Am I impacted?

Since RegexCriterion are used to define contingencies or limit reductions, you are vulnerable if:

  • you allow untrusted users to define contingency lists or limit reductions using this criterion;
  • OR you load untrusted contingencies or limit reductions files

AND use them with a network containing untrusted identifiers.

Patches

com.powsybl:powsybl-iidm-criteria:6.7.2 and higher

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 com.powsybl:powsybl-iidm-criteria, versiones 6.3.0 y anteriores a la 6.7.2, y com.powsybl:powsybl-contingency-api, versiones 5.0.0 y anteriores a la 6.3.0, existe una posible vulnerabilidad de denegación de servicio de expresiones regulares (ReDoS) polinómica en la clase RegexCriterion. Esta clase compila y evalúa una expresión regular no validada, proporcionada por el usuario, contra el identificador de un objeto identificable mediante Pattern.compile(regex).matcher(id).find(). Si se explota con éxito, un agente malicioso puede causar un agotamiento significativo de la CPU mediante llamadas repetidas o recursivas a filter(...), especialmente si se realizan sobre modelos de red u operaciones de filtrado de gran tamaño. Este problema se ha solucionado en com.powsybl:powsybl-iidm-criteria 6.7.2.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-48059 changed 2025-06-20CVE Terms of Use
GitHub Advisory DatabaseGHSA-8qjw-9xgm-c9ff changed 2025-06-20CC-BY-4.0
NVDCVE-2025-48059 changed 2026-06-17Public domain