National Vulnerability Database

National Vulnerability Database

National Vulnerability
Database

CVE-2018-14779 Detail

Current Description

A buffer overflow issue was discovered in the Yubico-Piv 1.5.0 smartcard driver. The file lib/ykpiv.c contains the following code in the function `ykpiv_transfer_data()`: {% highlight c %} if(*out_len + recv_len - 2 > max_out) { fprintf(stderr, "Output buffer to small, wanted to write %lu, max was %lu.", *out_len + recv_len - 2, max_out); } if(out_data) { memcpy(out_data, data, recv_len - 2); out_data += recv_len - 2; *out_len += recv_len - 2; } {% endhighlight %} -- it is clearly checked whether the buffer is big enough to hold the data copied using `memcpy()`, but no error handling happens to avoid the `memcpy()` in such cases. This code path can be triggered with malicious data coming from a smartcard.

Source:  MITRE
View Analysis Description

Impact

CVSS v3.0 Severity and Metrics:

Base Score: 6.8 MEDIUM
Vector: AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H (V3.0 legend)
Impact Score: 5.9
Exploitability Score: 0.9


Attack Vector (AV): Physical
Attack Complexity (AC): Low
Privileges Required (PR): None
User Interaction (UI): None
Scope (S): Unchanged
Confidentiality (C): High
Integrity (I): High
Availability (A): High

CVSS v2.0 Severity and Metrics:

Base Score: 7.2 HIGH
Vector: (AV:L/AC:L/Au:N/C:C/I:C/A:C) (V2 legend)
Impact Subscore: 10.0
Exploitability Subscore: 3.9


Access Vector (AV): Local
Access Complexity (AC): Low
Authentication (AU): None
Confidentiality (C): Complete
Integrity (I): Complete
Availability (A): Complete
Additional Information:
Allows unauthorized disclosure of information
Allows unauthorized modification
Allows disruption of service

References to Advisories, Solutions, and Tools

By selecting these links, you will be leaving NIST webspace. We have provided these links to other web sites because they may have information that would be of interest to you. No inferences should be drawn on account of other sites being referenced, or not, from this page. There may be other web sites that are more appropriate for your purpose. NIST does not necessarily endorse the views expressed, or concur with the facts presented on these sites. Further, NIST does not endorse any commercial products that may be mentioned on these sites. Please address comments about this page to nvd@nist.gov.

Hyperlink Resource
http://www.openwall.com/lists/oss-security/2018/08/14/2 Mailing List Third Party Advisory
https://www.x41-dsec.de/lab/advisories/x41-2018-001-Yubico-Piv/ Third Party Advisory
https://www.yubico.com/support/security-advisories/ysa-2018-03/ Vendor Advisory

Technical Details

Vulnerability Type (View All)

  • Improper Restriction of Operations within the Bounds of a Memory Buffer (CWE-119)
  • Out-of-bounds Write (CWE-787)

Known Affected Software Configurations Switch to CPE 2.2

Configuration 1 ( hide )
 cpe:2.3:a:yubico:piv_manager:*:*:*:*:*:*:*:*
     Show Matching CPE(s)
Up to (excluding)
1.4.2
 cpe:2.3:a:yubico:piv_manager:1.4.2:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:yubico:piv_manager:1.4.2b:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:yubico:piv_manager:1.4.2c:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:yubico:piv_manager:1.4.2d:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:yubico:piv_manager:1.4.2e:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:yubico:piv_manager:1.4.2f:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:yubico:piv_manager:1.4.2g:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:yubico:piv_tool:*:*:*:*:*:*:*:*
     Show Matching CPE(s)
Up to (excluding)
1.6.0
 cpe:2.3:a:yubico:smart_card_minidriver:*:*:*:*:*:*:*:*
     Show Matching CPE(s)
Up to (including)
3.7.3.160


Change History

1 change record found - show changes

Quick Info

CVE Dictionary Entry:
CVE-2018-14779
NVD Published Date:
08/15/2018
NVD Last Modified:
10/22/2018