GHSA-8qjw-9xgm-c9ff
PowSyBl Core Contains a Polynomial ReDoS in RegexCriterion
EPSS Exploitation Probability
EPSS (Exploit Prediction Scoring System) is a daily probability model maintained by FIRST.org. It estimates the likelihood a CVE will be exploited in production environments within the next 30 days, derived from real-world threat intelligence signals.
Blast Radius
com.powsybl:powsybl-iidm-criteria☕com.powsybl:powsybl-contingency-apiReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Maven packages — download data is not available via public APIs for these ecosystems.
Description
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}.
- Example: An attacker supplies a malicious pattern such as
- Control or influence over the output of
Identifiable.getId():- Example: A long string like
"aaaa...!"that forces excessive backtracking.
- Example: A long string like
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
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| ☕Maven | com.powsybl:powsybl-iidm-criteria | ≥ 6.3.0&&< 6.7.2 | 6.7.2 |
| ☕Maven | com.powsybl:powsybl-contingency-api | ≥ 5.0.0&&< 6.3.0 | 6.3.0 |
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for com.powsybl:powsybl-iidm-criteria. O3's reachability analysis confirms whether the vulnerable code path is actually invoked in your application, so you act on real exposure instead of every transitive match.
Fix
Update com.powsybl:powsybl-iidm-criteria to 6.7.2 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-8qjw-9xgm-c9ff is resolved across your whole dependency graph.
Workarounds
If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.
How O3 protects you
O3 pinpoints whether GHSA-8qjw-9xgm-c9ff is reachable in your code and exactly where to fix it, then blocks exploitation in production at runtime until the patched version is deployed.
Tailored to GHSA-8qjw-9xgm-c9ff. Runtime protection reduces exposure until a permanent patch is applied and verified — it complements patching, it doesn't replace it.
Frequently Asked Questions
Is GHSA-8qjw-9xgm-c9ff in your dependencies?
O3 detects GHSA-8qjw-9xgm-c9ff across Maven dependencies and uses function-level reachability to confirm whether the vulnerable code path is actually reachable — not just present. No false positives.