CVE-2024-45618 Libopensc: uninitialized values after incorrect or missing checking return values of functions in pkcs15init

Low 3.9 Published Updated

Attackers can cause undefined behavior in OpenSC via crafted smart card responses due to unchecked return values, potentially leading to crashes or unpredictable states.

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

What is CVE-2024-45618?

CVE-2024-45618 is a low-severity vulnerability in Opensc Project Opensc, published on 3 Sep 2024. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

A vulnerability was found in pkcs15-init in OpenSC. An attacker could use a crafted USB Device or Smart Card, which would present the system with a specially crafted response to APDUs.

Insufficient or missing checking of return values of functions leads to unexpected work with variables that have not been initialized.

Weakness: CWE-908, CWE-457

Which versions are affected by CVE-2024-45618?

It affects 2 products.

Products include Opensc Project Opensc, Redhat Enterprise Linux.

How do I fix CVE-2024-45618?

Apply the vendor's patch.

Is CVE-2024-45618 being exploited?

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

All Opensc Project Opensc vulnerabilities

Sources

Also known as AZL-48745, AZL-48801, BELL-CVE-2024-45618, CLSA-2025-1765382050, DEBIAN-CVE-2024-45618, GHSA-f2v6-mw6x-qmwc and 1 more.

Is CVE-2024-45618 in your software?

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

Check your SBOMs for free