CVE-2024-8443 Libopensc: heap buffer overflow in openpgp driver when generating key

Low 2.9 Published Updated

A heap buffer overflow in the libopensc OpenPGP driver allows arbitrary code execution via a malicious smart card or USB device during key generation.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2024-8443?

CVE-2024-8443 is a low-severity memory corruption vulnerability in Opensc Project Opensc, published on 10 Sep 2024. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official description

A heap-based buffer overflow vulnerability was found in the libopensc OpenPGP driver. A crafted USB device or smart card with malicious responses to the APDUs during the card enrollment process using the `pkcs15-init` tool may lead to out-of-bound rights, possibly resulting in arbitrary code execution.

Weakness: CWE-787, CWE-122

Which versions are affected by CVE-2024-8443?

It affects 2 products.

Products include Opensc Project Opensc, Redhat Enterprise Linux.

How do I fix CVE-2024-8443?

Apply the vendor's patch.

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

Is CVE-2024-8443 being exploited?

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

All Opensc Project Opensc vulnerabilities

Sources

Also known as AZL-49059, AZL-49081, BELL-CVE-2024-8443, CLSA-2026-1788870088, DEBIAN-CVE-2024-8443, GHSA-mgc5-p43f-72pc and 1 more.

Is CVE-2024-8443 in your software?

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

Check your SBOMs for free