Vulnerabilities in pkg:maven/com.powsybl/powsybl-contingency-api
PACKAGECVE-2025-48059 is a LOW denial of service vulnerability (CWE-1333: Inefficient Regular Expression Complexity) affecting Powsybl iidm criteria libraries in the Maven ecosystem. The issue involves powsybl core contains a polynomial redos in regexcriterion. Remediation is available by upgrading affected packages to version 6.7.2, 6.3.0.
pkg:maven/com.powsybl/powsybl-contingency-api
Vulnerability advisories affecting package pkg:maven/com.powsybl/powsybl-contingency-api. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-8qjw-9xgm-c9ff | CVE-2025-48059 | LOW | PowSyBl Core Contains a Polynomial ReDoS in RegexCriterion |
CVE-2025-48059 at a Glance
How to Fix CVE-2025-48059
To remediate this vulnerability, upgrade all affected Powsybl iidm criteria dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
<dependency>
<groupId>com.powsybl</groupId>
<artifactId>powsybl-iidm-criteria</artifactId>
<version>6.7.2</version>
</dependency>
<dependency>
<groupId>com.powsybl</groupId>
<artifactId>powsybl-contingency-api</artifactId>
<version>6.3.0</version>
</dependency>
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
mvn dependency:tree -Dincludes=com.powsybl
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2025-48059, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=com.powsybl
Analyze the terminal output to locate any version of Powsybl iidm criteria in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 6.7.2), your application is affected.
Note: The mvn dependency:tree -Dincludes=com.powsybl command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-1333: Inefficient Regular Expression Complexity, where the product uses a regular expression with a worst-case computational complexity that is inefficient and possibly exponential. In Powsybl iidm criteria, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2025-48059 Affected Powsybl iidm criteria Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
com.powsybl:powsybl-iidm-criteria
|
Maven |
≥ 6.3.0
< 6.7.2
|
6.7.2
|
|
com.powsybl:powsybl-contingency-api
|
Maven |
≥ 5.0.0
< 6.3.0
|
6.3.0
|
References
Frequently Asked Questions
What is CVE-2025-48059?
Which Powsybl iidm criteria versions are affected?
What version fixes CVE-2025-48059?
Is powsybl-iidm-criteria affected?
Is powsybl-contingency-api affected?
What CWE is associated with CVE-2025-48059?
How can I check Maven dependencies for CVE-2025-48059?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-8qjw-9xgm-c9ff",
"modified" : "2025-06-20T22:20:47Z",
"published" : "2025-06-19T16:19:48Z",
"aliases" : [ "CVE-2025-48059" ],
"summary" : "PowSyBl Core Contains a Polynomial ReDoS in RegexCriterion",
"details" : "### Impact\n_What kind of vulnerability is it? Who is impacted?_\n\nThis 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()`.\n\nTo trigger **polynomial ReDoS** in `RegexCriterion`, **two attacker-controlled conditions** must be met:\n- **Control over the regex input** passed into the constructor:\n - _Example:_ An attacker supplies a malicious pattern such as `(.*a){10000}`.\n- **Control or influence over the output of `Identifiable.getId()`**:\n - _Example:_ A long string like `\"aaaa...!\"` that forces excessive backtracking.\n\nIf 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.\nWhile 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.\nAlthough not as dangerous as _catastrophic exponential ReDoS_, the polynomial pattern still induces significant performance\ndegradation as input size increases.\n\n#### Am I impacted?\nSince `RegexCriterion` are used to define contingencies or limit reductions, you are vulnerable if:\n- you allow untrusted users to define contingency lists or limit reductions using this criterion;\n- OR you load untrusted contingencies or limit reductions files\n\nAND use them with a network containing untrusted identifiers.\n\n### Patches\ncom.powsybl:powsybl-iidm-criteria:6.7.2 and higher\n\n### References\n[powsybl-core v6.7.2](https://github.com/powsybl/powsybl-core/releases/tag/v6.7.2)",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS: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"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "com.powsybl:powsybl-iidm-criteria"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "6.3.0"
}, {
"fixed" : "6.7.2"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 6.7.1"
}
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "com.powsybl:powsybl-contingency-api"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "5.0.0"
}, {
"fixed" : "6.3.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/powsybl/powsybl-core/security/advisories/GHSA-8qjw-9xgm-c9ff"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-48059"
}, {
"type" : "WEB",
"url" : "https://github.com/powsybl/powsybl-core/commit/d8398f689a5ccd505bd62eee2bd6670a29133110"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/powsybl/powsybl-core"
}, {
"type" : "WEB",
"url" : "https://github.com/powsybl/powsybl-core/releases/tag/v6.7.2"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-1333" ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2025-06-19T16:19:48Z",
"nvd_published_at" : "2025-06-20T17:15:40Z"
}
}