{"id":"CVE-2021-27217","sourceIdentifier":"cve@mitre.org","published":"2021-03-04T18:15:14.050","lastModified":"2026-06-17T03:44:29.127","vulnStatus":"Modified","cveTags":[],"descriptions":[{"lang":"en","value":"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. Out-of-bounds reads performed by aes_remove_padding() can crash the running process, depending on the memory layout. This could be used by an attacker to cause a client-side denial of service. The yubihsm-shell project is included in the YubiHSM 2 SDK product."},{"lang":"es","value":"Se detectó un problema en la función _send_secure_msg() de Yubico yubihsm-shell versiones hasta de 2.0.3.&#xa0;La función no comprueba correctamente el campo de longitud insertado de un mensaje autenticado recibido del dispositivo.&#xa0;Lecturas fuera de límites llevadas a cabo por la función aes_remove_padding() pueden bloquear el proceso en ejecución, dependiendo del diseño de la memoria.&#xa0;Esto podría ser usado por un atacante para conllevar una denegación de servicio del lado del cliente.&#xa0;El proyecto yubihsm-shell está incluido en el producto YubiHSM 2 SDK"}],"affected":[{"source":"cve@mitre.org","affectedData":[{"vendor":"n/a","product":"n/a","versions":[{"version":"n/a","status":"affected"}]}]}],"metrics":{"cvssMetricV31":[{"source":"nvd@nist.gov","type":"Primary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:N/I:N/A:H","baseScore":4.4,"baseSeverity":"MEDIUM","attackVector":"NETWORK","attackComplexity":"HIGH","privilegesRequired":"HIGH","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"NONE","availabilityImpact":"HIGH"},"exploitabilityScore":0.7,"impactScore":3.6}],"cvssMetricV2":[{"source":"nvd@nist.gov","type":"Primary","cvssData":{"version":"2.0","vectorString":"AV:N/AC:M/Au:S/C:N/I:N/A:P","baseScore":3.5,"accessVector":"NETWORK","accessComplexity":"MEDIUM","authentication":"SINGLE","confidentialityImpact":"NONE","integrityImpact":"NONE","availabilityImpact":"PARTIAL"},"baseSeverity":"LOW","exploitabilityScore":6.8,"impactScore":2.9,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}]},"weaknesses":[{"source":"nvd@nist.gov","type":"Primary","description":[{"lang":"en","value":"CWE-125"}]}],"configurations":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:a:yubico:yubihsm-shell:*:*:*:*:*:*:*:*","versionEndIncluding":"2.0.3","matchCriteriaId":"9F7C9BAC-A77B-4333-A29C-4EABAF1B7003"}]}]}],"references":[{"url":"https://blog.inhq.net/posts/yubico-libyubihsm-vuln2","source":"cve@mitre.org","tags":["Exploit","Third Party Advisory"]},{"url":"https://github.com/Yubico/yubihsm-shell/releases","source":"cve@mitre.org","tags":["Release Notes","Third Party Advisory"]},{"url":"https://www.yubico.com/support/security-advisories/ysa-2021-01/","source":"cve@mitre.org","tags":["Vendor Advisory"]},{"url":"https://blog.inhq.net/posts/yubico-libyubihsm-vuln2","source":"af854a3a-2127-422b-91ae-364da2661108","tags":["Exploit","Third Party Advisory"]},{"url":"https://github.com/Yubico/yubihsm-shell/releases","source":"af854a3a-2127-422b-91ae-364da2661108","tags":["Release Notes","Third Party Advisory"]},{"url":"https://www.yubico.com/support/security-advisories/ysa-2021-01/","source":"af854a3a-2127-422b-91ae-364da2661108","tags":["Vendor Advisory"]}]}