Information disclosure in OpenSSH Key Parser Project
CVE-2022-31124
openssh_key_parser is an open source Python package providing utilities to parse and pack OpenSSH private and public key files. In versions prior to 0.0.6 if a field of a key is shorter than it is declared to be, the parser raises an error with a message containing the raw field value. An attacker able to modify the declared length of a key's sensitive field can thus expose the raw value of that field. Users are advised to upgrade to version 0.0.6, which no longer includes the raw field value in the error message. There are no known workarounds for this issue.
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.7 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N.
EPSS exploit prediction
EPSS 0.013, 71.6th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- OpenSSH Key Parser Project
- Scottcwang OpenSSH Key Parser — versions < 0.0.6
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 3 other repositories (ARPSyndicate/cvemon, Lukembou/Vulnerability-Scanning, scottcwang/openssh_key_parser). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- github.com/scottcwang/openssh_key_parser/security/advisories/GHSA-hm37-9xh2-q499 (Third Party Advisory)
- github.com/scottcwang/openssh_key_parser/pull/5 (Exploit, Third Party Advisory, Issue Tracking)
- github.com/scottcwang/openssh_key_parser/commit/26e0a471e9fdb23e635bc3014cf4cbd… (Patch, Third Party Advisory)
- github.com/scottcwang/openssh_key_parser/commit/274447f91b4037b7050ae634879b657… (Patch, Third Party Advisory)
- github.com/scottcwang/openssh_key_parser/commit/d5b53b4b7e76c5b666fc657019dbf86… (Patch, Third Party Advisory)