# CVE-2021-32489: An issue was discovered in the sendsecuremsg() function of Yubico yubihsm-shell through 2.0.3.

- Severity: Medium 4.4 (CVSS:3.1, scored by mitre) `CVSS:3.1/AC:H/AV:N/A:H/C:N/I:N/PR:H/S:U/UI:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.92%, higher than 59% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-05-10T21:20:49.000Z
- Modified: 2026-06-17T03:53:03.050Z
- Weaknesses: CWE-190
- Assigned by: mitre

## Description

An issue was discovered in the _send_secure_msg() 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 response_msg.st.len=8 can be accepted but triggers an integer overflow, which causes CRYPTO_cbc128_decrypt (in OpenSSL) to encounter an undersized buffer and experience a segmentation fault. The yubihsm-shell project is included in the YubiHSM 2 SDK product.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- yubico yubihsm-shell: up to 2.0.3

## Every score

- mitre: CVSS:3.1 4.4 Medium `CVSS:3.1/AC:H/AV:N/A:H/C:N/I:N/PR:H/S:U/UI:N`
- NVD: CVSS:3.1 4.4 Medium `CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:2.0 3.5 Low `AV:N/AC:M/Au:S/C:N/I:N/A:P`

## References

- <https://blog.inhq.net/posts/yubico-libyubihsm-vuln2/#second-attack-variant-cve-pending> (exploit, third-party-advisory)

## Sources

- CVE List: [CVE-2021-32489](https://www.cve.org/CVERecord?id=CVE-2021-32489), CVE Terms of Use, modified 2024-08-03
- NVD: [CVE-2021-32489](https://nvd.nist.gov/vuln/detail/CVE-2021-32489), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-32489 · Whole record: https://cve.day/CVE-2021-32489.json · Rebuilt by cve.day 2026-11-25T22:58:01.264Z
