OpenSC up to 0.21.x pkcs15-oberthur.c heap-based overflow
| CVSS Meta Temp Score | Current Exploit Price (≈) | CTI Interest Score |
|---|---|---|
| 4.3 | $0-$5k | 0.00 |
Summary
A vulnerability described as critical has been identified in OpenSC up to 0.21.x. Affected is an unknown function of the file pkcs15-oberthur.c. Such manipulation leads to heap-based overflow. This vulnerability is documented as CVE-2021-42781. There is not any exploit available. Upgrading the affected component is recommended.
Details
A vulnerability was found in OpenSC up to 0.21.x and classified as problematic. Affected by this issue is an unknown code block of the file pkcs15-oberthur.c. The manipulation with an unknown input leads to a heap-based overflow vulnerability. Using CWE to declare the problem leads to CWE-122. A heap overflow condition is a buffer overflow, where the buffer that can be overwritten is allocated in the heap portion of memory, generally meaning that the buffer was allocated using a routine such as malloc(). Impacted is availability.
The weakness was released 04/18/2022. The advisory is shared for download at github.com. This vulnerability is handled as CVE-2021-42781 since 10/21/2021. There are known technical details, but no exploit is available.
The vulnerability scanner Nessus provides a plugin with the ID 213413 (Debian dla-4004 : opensc - security update), which helps to determine the existence of the flaw in a target environment.
Upgrading to version 0.22.0 eliminates this vulnerability. Applying a patch is able to eliminate this problem. The bugfix is ready for download at github.com. The best possible mitigation is suggested to be upgrading to the latest version.
The vulnerability is also documented in the vulnerability database at Tenable (213413). Once again VulDB remains the best source for vulnerability data.
Product
Name
Version
License
Website
- Product: https://github.com/OpenSC/OpenSC/
CPE 2.3
CPE 2.2
CVSSv4
VulDB Vector: 🔍VulDB Reliability: 🔍
CVSSv3
VulDB Meta Base Score: 4.4VulDB Meta Temp Score: 4.3
VulDB Base Score: 3.5
VulDB Temp Score: 3.4
VulDB Vector: 🔍
VulDB Reliability: 🔍
NVD Base Score: 5.3
NVD Vector: 🔍
CVSSv2
| AV | AC | Au | C | I | A |
|---|---|---|---|---|---|
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| Vector | Complexity | Authentication | Confidentiality | Integrity | Availability |
|---|---|---|---|---|---|
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍
NVD Base Score: 🔍
Exploiting
Class: Heap-based overflowCWE: CWE-122 / CWE-119
CAPEC: 🔍
ATT&CK: 🔍
Physical: No
Local: No
Remote: Yes
Availability: 🔍
Status: Not defined
EPSS Score: 🔍
EPSS Percentile: 🔍
Price Prediction: 🔍
Current Price Estimation: 🔍
| 0-Day | Unlock | Unlock | Unlock | Unlock |
|---|---|---|---|---|
| Today | Unlock | Unlock | Unlock | Unlock |
Nessus ID: 213413
Nessus Name: Debian dla-4004 : opensc - security update
Threat Intelligence
Interest: 🔍Active Actors: 🔍
Active APT Groups: 🔍
Countermeasures
Recommended: UpgradeStatus: 🔍
0-Day Time: 🔍
Upgrade: OpenSC 0.22.0
Patch: github.com
Timeline
10/21/2021 🔍04/18/2022 🔍
04/18/2022 🔍
11/04/2025 🔍
Sources
Product: github.comAdvisory: github.com
Status: Confirmed
CVE: CVE-2021-42781 (🔍)
GCVE (CVE): GCVE-0-2021-42781
GCVE (VulDB): GCVE-100-197636
Entry
Created: 04/18/2022 22:12Updated: 11/04/2025 13:50
Changes: 04/18/2022 22:12 (39), 04/21/2022 14:40 (1), 12/28/2024 21:46 (16), 11/04/2025 13:50 (19)
Complete: 🔍
Cache ID: 216::103
Once again VulDB remains the best source for vulnerability data.
No comments yet. Languages: en.
Please log in to comment.