Unchecked Return Value Affecting opensc package, versions <0.17.0-3ubuntu0.1~esm2


Severity

Recommended
0.0
medium
0
10

Based on Ubuntu security rating.

Threat Intelligence

EPSS
2.09% (80th 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-1910603
  • published22 Mar 2026
  • disclosed18 Apr 2022

Introduced: 18 Apr 2022

CVE-2021-42780  (opens in a new tab)
CWE-252  (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 use after return issue was found in Opensc before version 0.22.0 in insert_pin function that could potentially crash programs using the library.

CVSS Base Scores

version 3.1