PT-2022-20546 · Pypi · Openssh Key Parser

Mike-Arnica

·

Published

2022-07-06

·

Updated

2022-07-14

·

CVE-2022-31124

CVSS v3.1

7.7

High

VectorAV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N
Name of the Vulnerable Software and Affected Versions openssh key parser versions prior to 0.0.6
Description The openssh key parser package is an open source Python utility for parsing and packing 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.
Recommendations For openssh key parser versions prior to 0.0.6, upgrade to version 0.0.6, which no longer includes the raw field value in the error message. As there are no known workarounds for this issue, upgrading to the latest version is the recommended course of action.

Exploit

Fix

Generation of Error Message Containing Sensitive Information

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2022-31124
GHSA-HM37-9XH2-Q499
PYSEC-2022-233

Affected Products

Openssh Key Parser