Miggo Logo

CVE-2024-29857: Bouncy Castle certificate parsing issues cause high CPU usage during parameter evaluation.

5.3

CVSS Score
3.1

Basic Information

EPSS Score
0.37116%
Published
5/14/2024
Updated
12/6/2024
KEV Status
No
Technology
TechnologyJava

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Package NameEcosystemVulnerable VersionsFirst Patched Version
org.bouncycastle:bcprov-jdk18onmaven< 1.781.78
org.bouncycastle:bcprov-jdk15onmaven< 1.781.78
org.bouncycastle:bcprov-jdk15to18maven< 1.781.78
org.bouncycastle:bcprov-jdk14maven< 1.781.78
org.bouncycastle:bctls-jdk18onmaven< 1.781.78
org.bouncycastle:bctls-jdk14maven< 1.781.78
org.bouncycastle:bctls-jdk15to18maven< 1.781.78
org.bouncycastle:bc-fipsmaven< 1.0.2.51.0.2.5
BouncyCastlenuget< 2.3.1
BouncyCastle.Cryptographynuget< 2.3.12.3.1

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from missing bounds checks in F2m curve parameter validation. The commit diffs show both Java and C# implementations added validation for the 'm' parameter in their respective ECCurve classes. The vulnerable versions allowed arbitrary m values without size restrictions, enabling crafted certificates to trigger computationally expensive operations. The test cases added in the commits (testLargeMInF2m) directly verify this boundary check, confirming these functions were the entry points for the vulnerability.

Vulnerable functions

Only Mi**o us*rs **n s** t*is s**tion

WAF Protection Rules

WAF Rule

*n issu* w*s *is*ov*r** in ***urv*.j*v* *n* ***urv*.*s in *oun*y **stl* J*v* (** J*v*) ***or* *.**, ** J*v* LTS ***or* *.**.*, **-*J* ***or* *.*.*.*, *n* ** *# .N*t ***or* *.*.*. Importin* *n ** **rti*i**t* wit* *r**t** **m p*r*m*t*rs **n l*** to *x*

Reasoning

T** vuln*r**ility st*ms *rom missin* *oun*s ****ks in **m *urv* p*r*m*t*r `v*li**tion`. T** *ommit *i**s s*ow *ot* J*v* *n* *# impl*m*nt*tions ***** `v*li**tion` *or t** 'm' p*r*m*t*r in t**ir r*sp**tiv* `***urv*` *l*ss*s. T** vuln*r**l* v*rsions *ll