Cryptographic Issues in Cloudflare's Circl FourQ Implementation (CVE-2025-8556)
Several cryptographic flaws in Cloudflare's CIRCL FourQ implementation allowed invalid points to be processed without proper validation, potentially enabling an attacker to recover secret keys via invalid-curve or degenerate-curve attacks.
botanica.software
Published on botanica.software
In early 2025, while working on a project which required us to perform a broad audit of OSS elliptic-curve implementations, we discovered several cryptographic issues in Cloudflare’s CIRCL library — specifically with the implementation of the FourQ elliptic curve.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely missing or incomplete validation of elliptic-curve points before use in scalar multiplication and other operations.
Impact
An attacker could potentially recover the server's secret key through repeated invalid-point queries, though the report notes that fixing the unmarshalling issue prevents this.
What the attacker needed
Ability to send crafted points to a vulnerable…
The fix
The issues were fixed by Cloudflare after the report, including changes to point validation and the Curve4Q Diffie-Hellman code.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
Elliptic-curve cryptography uses points on a curve to create shared secrets. If a program accepts a point that is not actually on the curve, an attacker can use it to learn bits of the secret key. This report found that Cloudflare's library did not always check that points were valid.
What is Crypto?
Encryption, signatures, randomness or certificate checks that do not protect what they claim to.