cve.bz

CVE-2020-15522 bouncycastle: Race Condition

5.9 mediumEPSS 1.5%Fix available

Medium (5.9) in bouncycastle. EPSS 1.5% estimated probability of exploitation activity in the next 30 days. Fixed in org.bouncycastle:bc-fips 1.0.2.1.

On this page
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.

Severity

CVSS 3.1

5.9 medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
EPSS
1.5% (unchanged from 1.5% a week ago; 1.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 75th percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-362 Concurrent Execution using Shared Resource with Improper Synchronization (Race Condition)
OWASP Top 10
A06:2025 Insecure Design
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

  • org.bouncycastle:bc-fips (Maven): fixed in 1.0.2.1
  • org.bouncycastle:bcprov-ext-jdk15on (Maven): fixed in 1.66
  • org.bouncycastle:bcprov-ext-jdk16 (Maven): fixed in 1.66
  • org.bouncycastle:bcprov-jdk14 (Maven): fixed in 1.66
  • org.bouncycastle:bcprov-jdk15 (Maven): fixed in 1.66
  • org.bouncycastle:bcprov-jdk15on (Maven): fixed in 1.66
  • org.bouncycastle:bcprov-jdk15to18 (Maven): fixed in 1.66
  • org.bouncycastle:bcprov-jdk16 (Maven): fixed in 1.66
  • Debian, SUSE, openSUSE: fixed package versions per release
  • Vendor advisory: https://www.bouncycastle.org/releasenotes.html

Ask an AI about this CVE

Show the promptExplain CVE-2020-15522 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2020-15522?via=ask-ai-copy and https://cve.bz/cve/CVE-2020-15522?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2020-15522 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
bouncycastle:bc-csharpbefore 1.8.7
bouncycastle:bouncy_castle_fips_.net_apibefore 1.0.1.1
bouncycastle:fips_java_apibefore 1.0.1.2
bouncycastle:fips_java_apifrom 1.0.2 before 1.0.2.1
bouncycastle:the_bouncy_castle_crypto_package_for_javabefore 1.66

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-6xx3-rg99-gc3pMavenorg.bouncycastle:bc-fips<1.0.2.11.0.2.1
GHSA-6xx3-rg99-gc3pMavenorg.bouncycastle:bcprov-ext-jdk15on<1.661.66
GHSA-6xx3-rg99-gc3pMavenorg.bouncycastle:bcprov-ext-jdk16<1.661.66
GHSA-6xx3-rg99-gc3pMavenorg.bouncycastle:bcprov-jdk14<1.661.66
GHSA-6xx3-rg99-gc3pMavenorg.bouncycastle:bcprov-jdk15<1.661.66
GHSA-6xx3-rg99-gc3pMavenorg.bouncycastle:bcprov-jdk15on<1.661.66
GHSA-6xx3-rg99-gc3pMavenorg.bouncycastle:bcprov-jdk15to18<1.661.66
GHSA-6xx3-rg99-gc3pMavenorg.bouncycastle:bcprov-jdk16<1.661.66
GHSA-6xx3-rg99-gc3pNuGetBouncyCastle<1.8.71.8.7

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14bouncycastle1.68-1DEBIAN-CVE-2020-15522
UbuntuPro:16.04:LTS, Pro:18.04:LTS, Pro:20.04:LTSbouncycastleno fix listedUBUNTU-CVE-2020-15522
SUSELinux Enterprise Module for Development Tools 15 SP2, Linux Enterprise Module for Development Tools 15 SP3bouncycastle1.64-3.3.1SUSE-SU-2021:2163-1
openSUSELeap 15.2bouncycastle1.64-lp152.2.3.1openSUSE-SU-2021:0940-1
openSUSELeap 15.3bouncycastle1.64-3.3.1openSUSE-SU-2021:2163-1
openSUSETumbleweedbouncycastle1.68-3.2openSUSE-SU-2024:10661-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

ProductPackageStateAdvisory
Red Hat EAP-XP 2.0.0 via EAP 7.3.x basebouncycastleFixed 2021-07-15RHSA-2021:2755
Red Hat Fuse 7.10bouncycastleFixed 2021-12-14RHSA-2021:5134
Red Hat Fuse 7.8.1Fixed 2021-04-27RHSA-2021:1401
RHINT Camel-K 1.6.4bouncycastleFixed 2022-03-23RHSA-2022:1029
RHINT Camel-Q 2.2.1Fixed 2022-03-22RHSA-2022:1013
Red Hat build of QuarkusbouncycastleNot affected
Red Hat Decision Manager 7bouncycastleNot affected
Red Hat Enterprise Linux 9bouncycastleNot affected
Red Hat Fuse 7karafNot affected
Red Hat Fuse 7spring-boot-2Not affected
Red Hat Integration Camel Quarkus 1bouncycastleAffected
Red Hat JBoss Enterprise Application Platform 7bouncycastleNot affected
Red Hat JBoss Enterprise Application Platform Expansion PackbouncycastleAffected
Red Hat OpenShift Application RuntimesbouncycastleAffected
Red Hat Process Automation 7bouncycastleNot affected
Red Hat Single Sign-On 7bouncycastleAffected
Red Hat support for Spring BootbouncycastleWill not fix
Red Hat Virtualization 4bouncycastleNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2020-15522.

Attack patterns (CAPEC)

  • CAPEC-26 Leveraging Race Conditions Likelihood: High · Severity: High
  • CAPEC-29 Leveraging Time-of-Check and Time-of-Use (TOCTOU) Race Conditions Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON