github.com/scylladb/gocql is vulnerable to Use after free
59
Medium Risk
Affected versions of this package contain a use-after-free flaw in the float deserialization logic, where uint64ToFloatR and uint32ToFloatR return an unsafe.Pointer to a stack-local parameter that becomes invalid once the function returns. This can impact the **float64 and **float32 unmarshal paths, leading to memory corruption, crashes, or unpredictable behavior when crafted input triggers reuse of the dangling pointer. An attacker able to supply malicious serialized data could exploit this condition to induce denial of service or potentially influence application behavior through unsafe memory access.
You are affected if you are using a version that falls within the vulnerable range.
github.com/scylladb/gocql is vulnerable to Use after free in versions 1.14.5 - 1.17.3.
Upgrade the github.com/scylladb/gocql library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

SOC 2Compliant
ISO 27001Compliant