{
  "id": "CVE-2025-58157",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-58157",
  "published_at": "2025-08-29T21:21:35.677Z",
  "title": "gnark affected by denial of service when computing scalar multiplication using fake-GLV algorithm",
  "vendor": "Consensys",
  "product": "gnark",
  "cvss": {
    "score": 7.5,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "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.",
  "cwe": "CWE-400",
  "cpes": [
    "cpe:2.3:a:consensys:gnark:0.12.0:*:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 7.5
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Consensys",
        "product": "gnark",
        "ranges": [
          "= 0.12.0"
        ],
        "fixed_in": null
      },
      {
        "vendor": "",
        "product": "github.com/consensys/gnark",
        "ranges": [
          "\u003e= 0.12.0, \u003c 0.13.0"
        ],
        "fixed_in": [
          "0.13.0"
        ],
        "ecosystem": "Go",
        "advisory": "GHSA-9fvj-xqr2-xwg8"
      }
    ],
    "upgrade": [
      "Upgrade github.com/consensys/gnark to 0.13.0 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/Consensys/gnark/security/advisories/GHSA-9fvj-xqr2-xwg8"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/Consensys/gnark-crypto/commit/56600883e0e9f9b159e9c7000b94e76185ec3d0d"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/Consensys/gnark/commit/68be6cede36e387ab760725beabd3c96cc94e6dc"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
