# Logic error in Legion of the Bouncy Castle BC Java

Advisory record · `GHSA-73xv-w5gp-frxh`

- **Identifiers:** `GHSA-73xv-w5gp-frxh` · `CVE-2020-28052`
- **State:** Confirmed
- **Severity:** CVSS 8.1 High
- **Critical:** No
- **Weakness (CWE):** [CWE-670](https://cwe.mitre.org/data/definitions/670.html)
- **Tags:** [CWE-670](https://agentprime.io/advisories/tag/cwe-670.md)
- **Published:** 30 Apr 2021
- **Updated:** 8 Mar 2024
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 30 Apr 2021, 16:14 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `org.bouncycastle:bcprov-jdk15to18` (Maven): affected `>=1.65, <1.67`; fixed in `1.67`
- `org.bouncycastle:bcprov-jdk15` (Maven): affected `>=1.65, <1.67`; fixed in `1.67`
- `org.bouncycastle:bcprov-jdk15on` (Maven): affected `>=1.65, <1.67`; fixed in `1.67`
- `org.bouncycastle:bcprov-ext-jdk15on` (Maven): affected `>=1.65, <1.67`; fixed in `1.67`
- `org.bouncycastle:bcprov-jdk14` (Maven): affected `>=1.65, <1.67`; fixed in `1.67`
- `org.bouncycastle:bcprov-jdk16` (Maven): affected `>=1.65, <1.67`; fixed in `1.67`
- `org.bouncycastle:bcprov-ext-jdk16` (Maven): affected `>=1.65, <1.67`; fixed in `1.67`

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

- 8.1 High, CVSS 3.1: `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`, from GitHub Advisory Database

- **CISA KEV:** Not listed.
- **EPSS:** 0.072, the 94th percentile, on 7 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

This record came from the full history of the GitHub Advisory Database, published 30 Apr 2021. New records show when each source confirmed them.

## Sources

- [GitHub Advisory Database: GHSA-73xv-w5gp-frxh](https://github.com/advisories/GHSA-73xv-w5gp-frxh)
- [OSV: GHSA-73xv-w5gp-frxh](https://osv.dev/vulnerability/GHSA-73xv-w5gp-frxh)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-28052>
- <https://github.com/bcgit/bc-java/commit/97578f9b7ed277e6ecb58834e85e3d18385a4219>
- <https://www.synopsys.com/blogs/software-security/cve-2020-28052-bouncy-castle>
- <https://www.oracle.com/security-alerts/cpuoct2021.html>
- <https://www.oracle.com/security-alerts/cpujul2022.html>
- <https://www.oracle.com/security-alerts/cpujan2022.html>
- <https://www.oracle.com/security-alerts/cpuapr2022.html>
- <https://www.oracle.com/security-alerts/cpuApr2021.html>
- <https://www.oracle.com//security-alerts/cpujul2021.html>
- <https://www.bouncycastle.org/releasenotes.html>
- <https://lists.apache.org/thread.html/rfc0db1f3c375087e69a239f9284ded72d04fbb55849eadde58fa9dc2@%3Cissues.karaf.apache.org%3E>
- <https://lists.apache.org/thread.html/rf9abfc0223747a56694825c050cc6b66627a293a32ea926b3de22402@%3Cissues.karaf.apache.org%3E>

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-73xv-w5gp-frxh>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-73xv-w5gp-frxh/>. Everything for agents: <https://agentprime.io/llms.txt>.
