CVE-2025-58157

Source
https://cve.org/CVERecord?id=CVE-2025-58157
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-58157.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2025-58157
Aliases
Downstream
Related
Published
2025-08-29T21:21:35.677Z
Modified
2026-07-15T01:49:12.162842034Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
gnark affected by denial of service when computing scalar multiplication using fake-GLV algorithm
Details

gnark is a zero-knowledge proof system framework. In version 0.12.0, there is a potential denial of service vulnerability when computing scalar multiplication is using the fake-GLV algorithm. This is because the algorithm didn't converge quickly enough for some of the inputs. This issue has been patched in version 0.13.0.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/58xxx/CVE-2025-58157.json",
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
        "CWE-400"
    ]
}
References

Affected packages

Git / github.com/consensys/gnark

Affected ranges

Type
GIT
Repo
https://github.com/consensys/gnark
Events
Database specific
{
    "cpe": "cpe:2.3:a:consensys:gnark:0.12.0:*:*:*:*:*:*:*",
    "source": [
        "CPE_STRING",
        "REFERENCES"
    ],
    "extracted_events": [
        {
            "introduced": "0.12.0"
        },
        {
            "last_affected": "0.12.0"
        }
    ]
}
Type
GIT
Repo
https://github.com/consensys/gnark-crypto
Events
Database specific
{
    "source": [
        "AFFECTED_FIELD",
        "REFERENCES"
    ],
    "extracted_events": [
        {
            "introduced": "= 0.12.0"
        },
        {
            "last_affected": "= 0.12.0"
        }
    ]
}

Affected versions

0.*
0.12.0
= 0.*
= 0.12.0
v0.*
v0.12.0
v0.12.1
v0.13.0
v0.14.0
v0.15.0
v0.16.0
v0.17.0

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-58157.json"