CVE-2019-17359 Out-of-Memory Error in Bouncy Castle Crypto
Crafted ASN.1 data triggers excessive memory allocation in Bouncy Castle Crypto, causing an OutOfMemoryError and denial of service.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2019-17359?
CVE-2019-17359 is a high-severity denial of service vulnerability in Bouncycastle Bc-Java, published on 8 Oct 2019. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
The ASN.1 parser in Bouncy Castle Crypto (aka BC Java) 1.63 can trigger a large attempted memory allocation, and resultant OutOfMemoryError error, via crafted ASN.1 data. This is fixed in 1.64.
Weakness: CWE-770
Which versions are affected by CVE-2019-17359?
2 open source packages ship an affected version, including org.bouncycastle:bcprov-jdk14. It affects 21 products.
| Package | Affected | Fixed in |
|---|---|---|
org.bouncycastle:bcprov-jdk14 Maven | From 1.63 | 1.64 |
org.bouncycastle:bcprov-jdk14 Maven | From 1.63 | 1.64 |
Products include Apache Tomee, Bouncycastle Bc-Java, Netapp Active Iq Unified Manager, Netapp Oncommand Api Services, Netapp Oncommand Workflow Automation, Netapp Service Level Manager and 15 more.
How do I fix CVE-2019-17359?
Upgrade org.bouncycastle:bcprov-jdk14 to 1.64 or later.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is CVE-2019-17359 being exploited?
There is no known exploitation of CVE-2019-17359 in the wild and no public exploit code.
Other vulnerabilities in Bouncycastle Bc-Java
- CVE-2020-13931 Remote code execution in Apache TomEE
- CVE-2020-11969 Missing Authentication for Critical Function in Apache TomEE
- CVE-2019-13990 XML external entity injection in Terracotta Quartz Scheduler
- CVE-2016-0779 Deserialization in n/a
- CVE-2018-8031 Apache TomEE console vulnerable to Cross-site Scripting
Sources
Also known as GHSA-2mh8-gx2m-mr75.