Live threats

All CVEs / bouncycastle

CVE-2024-29857bouncycastle bc-java

High 7.5 No auth needed

Priority
60
CVSS 3.1
7.5
EPSS
1.2%
probability of exploitation in 30 days · percentile 69
Auth required
No
Published
May 14, 2024
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-125
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

What happens

An issue was discovered in ECCurve.java and ECCurve.cs in Bouncy Castle Java (BC Java) before 1.78, BC Java LTS before 2.73.6, BC-FJA before 1.0.2.5, and BC C# .Net before 2.3.1. Importing an EC certificate with crafted F2m parameters can lead to excessive CPU consumption during the evaluation of the curve parameters.

Original NVD text.

What to do

  1. Apply the vendor's security update for bc-java.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Maven org.bouncycastle:bc-fips < 1.0.2.5 1.0.2.5 —
Maven org.bouncycastle:bcprov-jdk14 < 1.78 1.78 —
Maven org.bouncycastle:bcprov-jdk15on < 1.78 1.78 —
Maven org.bouncycastle:bcprov-jdk15to18 < 1.78 1.78 —
Maven org.bouncycastle:bcprov-jdk18on < 1.78 1.78 —
Maven org.bouncycastle:bctls-jdk14 < 1.78 1.78 —
Maven org.bouncycastle:bctls-jdk15to18 < 1.78 1.78 —
Maven org.bouncycastle:bctls-jdk18on < 1.78 1.78 —
NuGet BouncyCastle all no fixed version —
NuGet BouncyCastle.Cryptography < 2.3.1 2.3.1 dotnet add package BouncyCastle.Cryptography --version 2.3.1

Per OSV / GitHub Advisories (GHSA-8xfc-gm6g-vgpv). Check the version in your lockfile before upgrading.

Affected products

As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.