CVE-2023-51384
NixOS vulnerability analysis and mitigation

Overview

CVE-2023-51384 affects ssh-agent in OpenSSH versions before 9.6. When destination constraints are specified during addition of PKCS#11-hosted private keys, these constraints are only applied to the first key, even if a PKCS#11 token returns multiple keys (OpenSSH Release, NVD).

Technical details

The vulnerability is a logic error in the ssh-agent component where destination constraints are incompletely applied to PKCS#11-hosted private keys. The issue only affects cases where destination constraints are specified and multiple keys are returned from a PKCS#11 token. Regular private keys, FIDO tokens, and unconstrained keys are not affected. The vulnerability has been assigned a CVSS v3.1 base score of 5.5 (Medium) with vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N (NVD).

Impact

The vulnerability could lead to unauthorized access as destination constraints meant to limit key usage are not properly applied to all PKCS#11-hosted keys returned by a token. This means additional keys could be used without the intended restrictions (OpenSSH Release).

Mitigation and workarounds

The issue has been fixed in OpenSSH 9.6. Users should upgrade to this version or later to address the vulnerability. The fix ensures destination constraints are properly applied to all keys returned by PKCS#11 tokens (OpenSSH Release, Debian Advisory).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management