PowSyBl Core Contains a Polynomial ReDoS in RegexCriterion
powsybl-core
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| com.powsybl:powsybl-iidm-criteria Maven |
|
|
| com.powsybl:powsybl-contingency-api Maven |
|
|
powsybl-core
| Product | Affected | Fixed in |
|---|---|---|
| com.powsybl:powsybl-iidm-criteria Maven |
|
|
| com.powsybl:powsybl-contingency-api Maven |
|
|
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.
From the CVE record · GitHub_M
RegexCriterion evaluates unvalidated, user-supplied regular expressions against object identifiers. A malicious actor who can supply a crafted expression may cause significant CPU exhaustion through repeated filtering, especially over large network models. The input does not specify network access, authentication requirements, or user interaction.
Check Maven users of 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.