CVE-2018-14779

CVSS V2 High 7.2 CVSS V3 Medium 6.8
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.
Overview
  • CVE ID
  • CVE-2018-14779
  • Assigner
  • cve@mitre.org
  • Vulnerability Status
  • Modified
  • Published Version
  • 2018-08-15T18:29:00
  • Last Modified Date
  • 2020-02-25T04:15:10
CPE Configuration (Product)
CPE Vulnerable Operator Version Start Version End
cpe:2.3:a:yubico:piv_manager:*:*:*:*:*:*:*:* 1 OR 1.4.2
cpe:2.3:a:yubico:piv_manager:1.4.2:*:*:*:*:*:*:* 1 OR
cpe:2.3:a:yubico:piv_manager:1.4.2b:*:*:*:*:*:*:* 1 OR
cpe:2.3:a:yubico:piv_manager:1.4.2c:*:*:*:*:*:*:* 1 OR
cpe:2.3:a:yubico:piv_manager:1.4.2d:*:*:*:*:*:*:* 1 OR
cpe:2.3:a:yubico:piv_manager:1.4.2e:*:*:*:*:*:*:* 1 OR
cpe:2.3:a:yubico:piv_manager:1.4.2f:*:*:*:*:*:*:* 1 OR
cpe:2.3:a:yubico:piv_manager:1.4.2g:*:*:*:*:*:*:* 1 OR
cpe:2.3:a:yubico:piv_tool:*:*:*:*:*:*:*:* 1 OR 1.6.0
cpe:2.3:a:yubico:smart_card_minidriver:*:*:*:*:*:*:*:* 1 OR 3.7.3.160
CVSS Version 2
  • Version
  • 2.0
  • Vector String
  • AV:L/AC:L/Au:N/C:C/I:C/A:C
  • Access Vector
  • LOCAL
  • Access Compatibility
  • LOW
  • Authentication
  • NONE
  • Confidentiality Impact
  • COMPLETE
  • Integrity Impact
  • COMPLETE
  • Availability Impact
  • COMPLETE
  • Base Score
  • 7.2
  • Severity
  • HIGH
  • Exploitability Score
  • 3.9
  • Impact Score
  • 10
CVSS Version 3
  • Version
  • 3.0
  • Vector String
  • CVSS:3.0/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Attack Vector
  • PHYSICAL
  • Attack Compatibility
  • LOW
  • Privileges Required
  • NONE
  • User Interaction
  • NONE
  • Scope
  • UNCHANGED
  • Confidentiality Impact
  • HIGH
  • Availability Impact
  • HIGH
  • Base Score
  • 6.8
  • Base Severity
  • MEDIUM
  • Exploitability Score
  • 0.9
  • Impact Score
  • 5.9
History
Created Old Value New Value Data Type Notes
2022-05-10 16:48:57 Added to TrackCVE
2022-12-03 11:13:09 2018-08-15T18:29Z 2018-08-15T18:29:00 CVE Published Date updated
2022-12-03 11:13:09 2020-02-25T04:15:10 CVE Modified Date updated
2022-12-03 11:13:09 Modified Vulnerability Status updated