Live threats

All CVEs / Bouncycastle

CVE-2020-15522Bouncycastle Bc-csharp

Medium 5.9 No auth needed

Priority
51
CVSS 3.1
5.9
EPSS
1.5%
probability of exploitation in 30 days · percentile 75
Auth required
No
Published
May 20, 2021
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-362
Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N

What happens

Bouncy Castle BC Java before 1.66, BC C# .NET before 1.8.7, BC-FJA before 1.0.1.2, 1.0.2.1, and BC-FNA before 1.0.1.1 have a timing issue within the EC math library that can expose information about the private key when an attacker is able to observe timing information for the generation of multiple deterministic ECDSA signatures.

Original NVD text.

What to do

  1. Apply the vendor's security update for Bc-csharp.
  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.1 1.0.2.1 —
Maven org.bouncycastle:bcprov-ext-jdk15on < 1.66 1.66 —
Maven org.bouncycastle:bcprov-ext-jdk16 < 1.66 1.66 —
Maven org.bouncycastle:bcprov-jdk14 < 1.66 1.66 —
Maven org.bouncycastle:bcprov-jdk15 < 1.66 1.66 —
Maven org.bouncycastle:bcprov-jdk15on < 1.66 1.66 —
Maven org.bouncycastle:bcprov-jdk15to18 < 1.66 1.66 —
Maven org.bouncycastle:bcprov-jdk16 < 1.66 1.66 —
NuGet BouncyCastle < 1.8.7 1.8.7 dotnet add package BouncyCastle --version 1.8.7

Per OSV / GitHub Advisories (GHSA-6xx3-rg99-gc3p). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
bouncycastlebc-csharp< 1.8.7
bouncycastlebouncy_castle_fips_.net_api< 1.0.1.1
bouncycastlefips_java_api< 1.0.1.2
bouncycastlefips_java_api≥ 1.0.2 < 1.0.2.1
bouncycastlethe_bouncy_castle_crypto_package_for_java< 1.66

Official sources

References

Links published by the sources. Open them with care.