CVE-2021-3345 Memory corruption in n/a

High 7.8 Published Updated

A heap-based buffer overflow in Libgcrypt allows attackers to execute arbitrary code or cause denial of service via crafted digest final functions.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2021-3345?

CVE-2021-3345 is a high-severity memory corruption vulnerability in Oracle Communications Billing and Revenue Management, published on 29 Jan 2021. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

_gcry_md_block_write in cipher/hash-common.c in Libgcrypt version 1.9.0 has a heap-based buffer overflow when the digest final function sets a large count value. It is recommended to upgrade to 1.9.1 or later.

Weakness: CWE-787

Which versions are affected by CVE-2021-3345?

It affects 2 products.

Products include Gnupg Libgcrypt, Oracle Communications Billing and Revenue Management.

How do I fix CVE-2021-3345?

Upgrade to a fixed version.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2021-3345 being exploited?

There is no known exploitation of CVE-2021-3345 in the wild and no public exploit code.

Public exploit code: 2 proofs of concept on GitHub.

All Oracle Communications Billing and Revenue Management vulnerabilities

Sources

Also known as GHSA-pf53-rq8f-rwqx.

Is CVE-2021-3345 in your software?

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

Check your SBOMs for free