OpenSC up to 0.18.x eGK Card Tool tools/egk-tool.c Response double free
| CVSS Meta Temp Score | Current Exploit Price (≈) | CTI Interest Score |
|---|---|---|
| 5.2 | $0-$5k | 0.00 |
Summary
A vulnerability described as critical has been identified in OpenSC up to 0.18.x. The impacted element is an unknown function of the file tools/egk-tool.c of the component eGK Card Tool. Such manipulation as part of Response leads to double free. This vulnerability is listed as CVE-2018-16424. The attack can be executed directly on the physical device. There is no available exploit. Upgrading the affected component is recommended.
Details
A vulnerability was found in OpenSC up to 0.18.x and classified as problematic. Affected by this issue is an unknown code block of the file tools/egk-tool.c of the component eGK Card Tool. The manipulation as part of a Response 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. CVE summarizes:
A double free when handling responses in read_file in tools/egk-tool.c (aka the eGK card tool) in OpenSC before 0.19.0-rc1 could be used by attackers able to supply crafted smartcards to cause a denial of service (application crash) or possibly have unspecified other impact.
The bug was discovered 08/14/2018. The weakness was presented 09/04/2018 (Website). The advisory is shared for download at github.com. This vulnerability is handled as CVE-2018-16424 since 09/03/2018. The exploitation is known to be easy. The attack needs to be approached locally. No form of authentication is required for exploitation. There are known technical details, but no exploit is available.
The vulnerability was handled as a non-public zero-day exploit for at least 20 days. During that time the estimated underground price was around $0-$5k. The vulnerability scanner Nessus provides a plugin with the ID 118881 (openSUSE Security Update : opensc (openSUSE-2018-1385)), which helps to determine the existence of the flaw in a target environment. It is assigned to the family SuSE Local Security Checks and running in the context l. The commercial vulnerability scanner Qualys is able to test this issue with plugin 277562 (Fedora Security Update for opensc (FEDORA-2018-d0dff2abaa)).
Upgrading to version 0.19.0-rc1 eliminates this vulnerability. A possible mitigation has been published 3 months after the disclosure of the vulnerability.
The vulnerability is also documented in the vulnerability database at Tenable (118881). See VDB-123545 and VDB-123549 for similar entries. 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: 5.3VulDB Meta Temp Score: 5.2
VulDB Base Score: 4.1
VulDB Temp Score: 3.9
VulDB Vector: 🔍
VulDB Reliability: 🔍
NVD Base Score: 6.6
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: Yes
Local: Yes
Remote: No
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: 118881
Nessus Name: openSUSE Security Update : opensc (openSUSE-2018-1385)
Nessus File: 🔍
Nessus Risk: 🔍
Nessus Family: 🔍
Nessus Context: 🔍
Qualys ID: 🔍
Qualys Name: 🔍
Threat Intelligence
Interest: 🔍Active Actors: 🔍
Active APT Groups: 🔍
Countermeasures
Recommended: UpgradeStatus: 🔍
Reaction Time: 🔍
0-Day Time: 🔍
Exposure Time: 🔍
Upgrade: OpenSC 0.19.0-rc1
Patch: github.com
Timeline
08/14/2018 🔍09/03/2018 🔍
09/03/2018 🔍
09/04/2018 🔍
09/04/2018 🔍
11/09/2018 🔍
11/10/2018 🔍
05/06/2023 🔍
Sources
Product: github.comAdvisory: 360e95d45ac4123255a4c796db96337f332160ad
Status: Confirmed
CVE: CVE-2018-16424 (🔍)
GCVE (CVE): GCVE-0-2018-16424
GCVE (VulDB): GCVE-100-123548
See also: 🔍
Entry
Created: 09/04/2018 15:44Updated: 05/06/2023 19:03
Changes: 09/04/2018 15:44 (75), 03/20/2020 11:53 (2), 05/06/2023 18:56 (5), 05/06/2023 19:03 (1)
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.