High
Security advisory
An issue was discovered in the yh_create_session() function of yubihsm-shell through 2.0.2. The function does not explicitly check the returned session id from the device. An invalid session id would lead to out-of-bounds read and write operations in the session array. This could be used by an attacker to cause a denial of service attack.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2020-24387
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 11:06 UTC · Revision 1
Source evidence
An issue was discovered in the yh_create_session() function of yubihsm-shell through 2.0.2. The function does not explicitly check the returned session id from the device. An invalid session id would lead to out-of-bounds read and write operations in the session array. This could be used by an attacker to cause a denial of service attack.
osv:CVE-2020-24387
Complete source record
{
"id": "72e51dbd9d205bc9e35c6373848169c6d538e742f747d0a700e772e4d79ae695",
"url": "https://osv.dev/vulnerability/CVE-2020-24387",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2020-24387",
"summary": "An issue was discovered in the yh_create_session() function of yubihsm-shell through 2.0.2. The function does not explicitly check the returned session id from the device. An invalid session id would lead to out-of-bounds read and write operations in the session array. This could be used by an attacker to cause a denial of service attack.",
"evidence": "osv:CVE-2020-24387",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2020-24387",
"aliases": [
"CVE-2020-24387"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/yubico/yubihsm-shell",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"last_affected": "8ada38bdcaa032c0747487fcd72eb7c5267369d1"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:yubico:yubihsm-shell:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"last_affected": "2.0.2"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"2.0.2",
"2.0.1",
"2.0.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2020-24387.json"
}
}
],
"modified": "2026-10-20T10:52:51.412414853Z",
"provider": "osv",
"references": [
"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/Y77KQJW76M3PFOBFLBT6DLH2NWHYRNZO/",
"https://developers.yubico.com/yubihsm-shell/",
"https://github.com/Yubico/yubihsm-shell",
"https://www.yubico.com/support/security-advisories/ysa-2020-06/",
"https://blog.inhq.net/posts/yubico-libyubihsm-vuln/"
],
"provider_metadata": {
"unresolved_ranges": [
{
"cpes": [
"cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:*"
],
"vendor_product": "fedoraproject:fedora",
"extracted_events": [
{
"range": [
{
"introduced": "33"
},
{
"last_affected": "33"
}
],
"source": "CPE_STRING"
}
]
}
]
}
},
"related_cves": [
{
"value": "CVE-2020-24387",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 383957,
"published_at": "2020-10-19T20:15:12.947+00:00"
}