{
  "id": "CVE-2025-57801",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-57801",
  "published_at": "2025-08-22T19:54:05.854Z",
  "title": "gnark is vulnerable to signature malleability in EdDSA and ECDSA due to missing scalar checks",
  "vendor": "Consensys",
  "product": "gnark",
  "cvss": {
    "score": 9.1,
    "source": "nvd",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/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 versions prior to 0.14.0, the Verify function in eddsa.go and ecdsa.go used the S value from a signature without asserting that 0 ≤ S \u003c order, leading to a signature malleability vulnerability. Because gnark’s native EdDSA and ECDSA circuits lack essential constraints, multiple distinct witnesses can satisfy the same public inputs. In protocols where nullifiers or anti-replay checks are derived from R and S, this enables signature malleability and may allow double spending. This issue has been addressed in version 0.14.0.",
  "cwe": "CWE-347",
  "cpes": [
    "cpe:2.3:a:consensys:gnark:*:*:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 8.6,
    "nvd": 9.1
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Consensys",
        "product": "gnark",
        "ranges": [
          "\u003c 0.14.0"
        ],
        "fixed_in": [
          "0.14.0"
        ]
      }
    ],
    "upgrade": [
      "Upgrade gnark to 0.14.0 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/Consensys/gnark/security/advisories/GHSA-95v9-hv42-pwrj"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/Consensys/gnark/commit/0ba6730f05537a351517998add89a61a0d82716e"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
