CVE-2021-32489

Source
https://cve.org/CVERecord?id=CVE-2021-32489
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-32489.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2021-32489
Published
2021-05-10T22:15:06.213Z
Modified
2026-07-09T00:05:47.363265Z
Severity
  • 4.4 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
[none]
Details

An issue was discovered in the sendsecuremsg() function of Yubico yubihsm-shell through 2.0.3. The function does not correctly validate the embedded length field of an authenticated message received from the device because responsemsg.st.len=8 can be accepted but triggers an integer overflow, which causes CRYPTOcbc128decrypt (in OpenSSL) to encounter an undersized buffer and experience a segmentation fault. The yubihsm-shell project is included in the YubiHSM 2 SDK product.

References

Affected packages

Git / github.com/yubico/yubihsm-shell

Affected ranges

Type
GIT
Repo
https://github.com/yubico/yubihsm-shell
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Database specific
{
    "source": "CPE_RANGE",
    "cpe": "cpe:2.3:a:yubico:yubihsm-shell:*:*:*:*:*:*:*:*",
    "extracted_events": [
        {
            "introduced": "0"
        },
        {
            "last_affected": "2.0.3"
        }
    ]
}

Affected versions

2.*
2.0.0
2.0.1
2.0.2
2.0.3

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-32489.json"