| CVSS Meta Temp Score | Current Exploit Price (≈) | CTI Interest Score |
|---|---|---|
| 5.3 | $0-$5k | 0.00 |
Summary
A vulnerability identified as critical has been detected in OpenSC up to 0.21.x. The impacted element is the function sc_pkcs15_free_tokeninfo. The manipulation leads to double free.
This vulnerability is listed as CVE-2021-42778. There is no available exploit.
You should upgrade the affected component.
Details
A vulnerability, which was classified as critical, has been found in OpenSC up to 0.21.x. This issue affects the function sc_pkcs15_free_tokeninfo. The manipulation with an unknown input leads to a double free vulnerability. Using CWE to declare the problem leads to CWE-415. The product calls free() twice on the same memory address, potentially leading to modification of unexpected memory locations. Impacted is confidentiality, integrity, and availability.
The weakness was presented 04/18/2022. The advisory is shared at bugs.chromium.org. The identification of this vulnerability is CVE-2021-42778 since 10/21/2021. Technical details are known, 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). Several companies clearly confirm that VulDB is the primary source for best 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: 5.4VulDB Meta Temp Score: 5.3
VulDB Base Score: 5.5
VulDB Temp Score: 5.3
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: Double freeCWE: CWE-415 / 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: bugs.chromium.org
Status: Confirmed
CVE: CVE-2021-42778 (🔍)
GCVE (CVE): GCVE-0-2021-42778
GCVE (VulDB): GCVE-100-197633
Entry
Created: 04/18/2022 22:10Updated: 11/04/2025 13:50
Changes: 04/18/2022 22:10 (39), 04/21/2022 14:31 (1), 12/28/2024 21:46 (16), 11/04/2025 13:50 (18)
Complete: 🔍
Cache ID: 216::103
Several companies clearly confirm that VulDB is the primary source for best vulnerability data.
No comments yet. Languages: en.
Please log in to comment.