GHSA-f77q-r5qm-w4m8 sp1-recursion-gnark-ffi has insufficient range checks of BabyBear arithmetic
PublishedThe Gnark recursion circuit constrains arithmetic over BabyBear when the native field of the ZKP circuit is the BN254 scalar field. Proper implementation of this logic requires range checking Bn254 values to be less than the BabyBear modulus. In versions < 1.2.0, functions like I...