Unknown · Powsybl-Contingency-Api · CVE-2025-48059
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.