Skip to content

CVE-2022-31124 Possible leak of key's raw field if declared length is incorrect in openssh_key_parser

MediumCVSS 6.5 EPSS 1.3%
Published
Updated
Exploit status
No public exploit known

Description

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.

Affected products

ProductAffected versionsFixed in
pypi openssh-key-parser(PyPI) < 0.0.6 0.0.6
pypi openssh-key-parser(PyPI) = 0.0.1 No fix listed
pypi openssh-key-parser(PyPI) = 0.0.2 No fix listed
pypi openssh-key-parser(PyPI) = 0.0.3 No fix listed
pypi openssh-key-parser(PyPI) = 0.0.4 No fix listed
pypi openssh-key-parser(PyPI) = 0.0.5 No fix listed
scottcwang openssh_key_parser = < 0.0.6 No fix listed
openssh key parser project openssh key parser < 0.0.6 0.0.6

References