Vulnerability DatabaseGHSA-f77q-r5qm-w4m8

GHSA-f77q-r5qm-w4m8
Rust vulnerability analysis and mitigation

Overview

The vulnerability (GHSA-f77q-r5qm-w4m8) affects sp1-recursion-gnark-ffi package versions prior to 1.2.0, discovered on September 3rd, 2024. The issue involves insufficient range checks of BabyBear arithmetic in the Gnark recursion circuit, specifically when constraining arithmetic over BabyBear in the context of the BN254 scalar field ZKP circuit (GitHub Advisory).

Technical details

The vulnerability stems from inadequate range checking of Bn254 values against the BabyBear modulus. Specifically, functions like InvF and InvE utilized values generated by hints without appropriate range validation. The issue has been assigned a CVSS v4.0 score of 6.9 (Moderate), with a vector string of CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N (GitHub Advisory).

Impact

The vulnerability primarily affects the integrity of the system, with the CVSS metrics indicating a low integrity impact on the vulnerable system. There are no reported impacts on confidentiality or availability, and no subsequent system impacts have been identified (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in version 1.2.0 by implementing appropriate range checks. The fix was released within 48 hours of discovery, and the V1.1.0 verifier was frozen on September 4th to prevent usage of vulnerable versions. Users should upgrade to version 1.2.0 or later (note that V2.0.0 contains the same contents as V1.2.0 to respect semver) (GitHub Advisory).

Community reactions

The code was originally audited by Veridise, and both Veridise and Kalos conducted follow-up reviews for similar issues, finding no additional vulnerabilities. Production SP1 users were promptly notified and upgraded following the discovery (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related Rust vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-2fjw-whxm-9v4qCRITICAL9.3
  • RustRust
  • nftnl
NoYesNov 25, 2025
CVE-2025-66017HIGH8.2
  • RustRust
  • cggmp21
NoYesNov 25, 2025
GHSA-mj73-j457-8x9qLOW2.7
  • RustRust
  • maxminddb
NoYesDec 02, 2025
GHSA-pq5v-rwp8-p7gmLOW2.7
  • RustRust
  • rtvm-interpreter
NoNoDec 02, 2025
RUSTSEC-2025-0132N/AN/A
  • RustRust
  • maxminddb
NoYesNov 28, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management