Lucene search

K
veracodeVeracode Vulnerability DatabaseVERACODE:40838
HistoryJun 08, 2023 - 11:05 a.m.

Heap-based Buffer Overflow

2023-06-0811:05:02
Veracode Vulnerability Database
sca.analysiscenter.veracode.com
4
libopensc
vulnerability
heap-based buffer overflow
pkcs15-cardos.c
asn1 buffer
attacker

7.1 High

CVSS3

Attack Vector

LOCAL

Attack Complexity

LOW

Privileges Required

LOW

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

NONE

Availability Impact

HIGH

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H

0.0004 Low

EPSS

Percentile

5.1%

libopensc.so is vulnerable to Heap-based Buffer Overflow. The vulnerability exists due to the cardos_have_verifyrc_package function in pkcs15-cardos.c because it scans the ASN1 buffer for 2 tags, but the remaining length can be wrongly calculated due to a moved starting pointer, allowing an attacker to cause heap-based buffer overflows.

7.1 High

CVSS3

Attack Vector

LOCAL

Attack Complexity

LOW

Privileges Required

LOW

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

NONE

Availability Impact

HIGH

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H

0.0004 Low

EPSS

Percentile

5.1%