PT-2025-26258 · Unknown · Powsybl-Iidm-Criteria+1
CVSS v4.0
2.7
Low
| Vector | AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:U |
Name of the Vulnerable Software and Affected Versions:
com.powsybl:powsybl-iidm-criteria versions 6.3.0 through 6.7.1
com.powsybl:powsybl-contingency-api versions 5.0.0 through 5.0.0
Description:
The issue is 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.
Recommendations:
For com.powsybl:powsybl-iidm-criteria versions 6.3.0 through 6.7.1, update to version 6.7.2 or higher.
For com.powsybl:powsybl-contingency-api versions 5.0.0, update to a version higher than 5.0.0, however, the exact fixed version for this component is not specified.
As a temporary workaround, consider restricting the use of the RegexCriterion class until a patch is available.
Avoid using untrusted regular expressions and potentially attacker-controlled identifiers in the RegexCriterion class to minimize the risk of exploitation.
Exploit
Fix
DoS
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Powsybl-Contingency-Api
Powsybl-Iidm-Criteria