Vulnerability DatabaseGHSA-f6jh-hvg2-9525

GHSA-f6jh-hvg2-9525
vulnerability analysis and mitigation

Overview

The vulnerability (GHSA-f6jh-hvg2-9525) affects the crystals-go library, which is an implementation of the CRYSTALS-Kyber post-quantum cryptographic algorithm. The issue, known as KyberSlash, is a timing side-channel attack that affects all versions before January 16, 2024. The vulnerability was discovered and disclosed in December 2023, with patches being implemented in January 2024. The affected package is github.com/kudelskisecurity/crystals-go, a Go implementation of CRYSTALS-Kyber (GitHub Advisory).

Technical details

The vulnerability stems from variable-time division operations during Kyber's decapsulation process. Specifically, the issue was found in the polynomial compression function where divisions by Q might not compile to multiplication instructions, potentially leading to timing variations. The vulnerability was initially reported in issue #19 and addressed through multiple fixes, including KyberSlash1 and KyberSlash2 mitigations. The fixes involved replacing division operations with fixed-time operators to prevent timing-based attacks (GitHub Issue, Pull Request).

Impact

When an attacker can measure the timing of decapsulation operations on forged cipher texts, they could potentially extract parts of the secret key. This vulnerability could compromise the security of the cryptographic system on platforms where the timing variations are observable (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in version 0.0.0-20240116172146-2a6ca2d4e64d and later. The fix involves implementing constant-time operations for divisions in the polynomial compression function. However, it's important to note that the library's maintainers have clarified that this was a student project and is not actively maintained. They explicitly discourage its use in any production environment (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

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