CVE-2019-17359 Out-of-Memory Error in Bouncy Castle Crypto

High 7.5 Published Updated

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.

PackageAffectedFixed in
org.bouncycastle:bcprov-jdk14 MavenFrom 1.631.64
org.bouncycastle:bcprov-jdk14 MavenFrom 1.631.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.

All Bouncycastle Bc-Java vulnerabilities

Sources

Also known as GHSA-2mh8-gx2m-mr75.

Is CVE-2019-17359 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free