Use of Uninitialized Resource Affecting opensc package, versions <0.17.0-3ubuntu0.1~esm2


Severity

Recommended
medium

Based on Ubuntu security rating.

Threat Intelligence

EPSS
0.29% (21st percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UBUNTU1804-OPENSC-10286595
  • published1 Jun 2025
  • disclosed3 Sept 2024

Introduced: 3 Sep 2024

CVE-2024-45618  (opens in a new tab)
CWE-908  (opens in a new tab)

How to fix?

Upgrade Ubuntu:18.04 opensc to version 0.17.0-3ubuntu0.1~esm2 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream opensc package and not the opensc package as distributed by Ubuntu. See How to fix? for Ubuntu:18.04 relevant fixed versions and status.

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.

CVSS Base Scores

version 3.1