Heap-based buffer overflow in Libgcrypt - CVE-2021-3345

 

Heap-based buffer overflow in Libgcrypt - CVE-2021-3345

Published: January 29, 2021 / Updated: July 5, 2024


Vulnerability identifier: #VU50150
CSH Severity: High
CVSS v4: 8.4 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2021-3345
CWE-ID: CWE-122
Exploitation vector: Remote access
Exploit availability: Public exploit is available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists due to a boundary error within the _gcry_md_block_write(0 function in cipher/hash-common.c in Libgcrypt. A remote attacker can pass specially crafted data to the application, trigger heap-based buffer overflow and execute arbitrary code on the target system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.


Affected software

Libgcrypt
Arch Linux
Oracle Communications Billing and Revenue Management

How to mitigate CVE-2021-3345

Install updates from vendor's website.

Libgcrypt - update to 1.9.1

Links to Public Exploits and PoC-codes

External References

Related Security Bulletins