Vulnerabilities in pkg:maven/com.powsybl/powsybl-iidm-criteria

PACKAGE
Advisory Identifier: GHSA-8qjw-9xgm-c9ff
Advisory Summary

CVE-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.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/com.powsybl/powsybl-iidm-criteria

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:maven/com.powsybl/powsybl-iidm-criteria. 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

CVE Identifier CVE-2025-48059
GHSA Identifier GHSA-8qjw-9xgm-c9ff
Severity LOW
CVSS v3.1 Base Score N/A
CWE Classification CWE-1333: Inefficient Regular Expression Complexity
Affected Product Powsybl iidm criteria
Package Ecosystem Maven
Published Date
Last Updated

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.

com.powsybl:powsybl-iidm-criteria fixed: 6.7.2
<dependency>
    <groupId>com.powsybl</groupId>
    <artifactId>powsybl-iidm-criteria</artifactId>
    <version>6.7.2</version>
</dependency>
com.powsybl:powsybl-contingency-api fixed: 6.3.0
<dependency>
    <groupId>com.powsybl</groupId>
    <artifactId>powsybl-contingency-api</artifactId>
    <version>6.3.0</version>
</dependency>
Verify Direct and Transitive Dependencies

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

### 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}`. - **Control or influence over the output of `Identifiable.getId()`**: - _Example:_ A long string like `"aaaa...!"` that forces excessive backtracking. 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 [powsybl-core v6.7.2](https://github.com/powsybl/powsybl-core/releases/tag/v6.7.2)

CVE-2025-48059 Affected Powsybl iidm criteria Versions

2 component(s)
Fixed Versions:
6.7.26.3.0
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?
CVE-2025-48059 is a security vulnerability in Powsybl iidm criteria involving PowSyBl Core Contains a Polynomial ReDoS in RegexCriterion under CWE-1333: Inefficient Regular Expression Complexity.
Which Powsybl iidm criteria versions are affected?
Affected versions include releases prior to 6.7.2, 6.3.0 across affected packages: com.powsybl:powsybl-iidm-criteria, com.powsybl:powsybl-contingency-api.
What version fixes CVE-2025-48059?
Upgrading to 6.7.2, 6.3.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is powsybl-iidm-criteria affected?
Yes, com.powsybl:powsybl-iidm-criteria is affected in releases prior to 6.7.2. Upgrade your dependency to 6.7.2 or later.
Is powsybl-contingency-api affected?
Yes, com.powsybl:powsybl-contingency-api is affected in releases prior to 6.3.0. Upgrade your dependency to 6.3.0 or later.
What CWE is associated with CVE-2025-48059?
CVE-2025-48059 is classified under CWE-1333: Inefficient Regular Expression Complexity (The product uses a regular expression with a worst-case computational complexity that is inefficient and possibly exponential.).
How can I check Maven dependencies for CVE-2025-48059?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=com.powsybl'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}