Read the docs
TI-2022-13168 Aliases CVE-2022-31124GHSA-hm37-9xh2-q499

Possible leak of key's raw field if declared length is incorrect in openssh_key_parser

Priority HIGH 67CWE-209Published · Updated

Key facts

Attack vector
Network
Privileges required
Low
User interaction
None
Attack complexity
Low
Impact type
Information disclosure
Confidentiality · integrity · availability
High · None · None
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-209.

Summary

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.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.01334 71st percentileScored 2026-11-07
Public exploit Yes 1 exploit referenceTagged by NVD
Fix Fixed openssh_key_parser (scottcwang): 0.0.6openssh-key-parser (PyPI): 0.0.6

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
scottcwangopenssh_key_parserbefore 0.0.60.0.6Patch availableCNA
—openssh-key-parser (PyPI)before 0.0.60.0.6Patch availableGHSA-hm37-9xh2-q499
  • openssh_key_parser Vendorscottcwang Affected before 0.0.6 Fixed in 0.0.6 Patch available CNA
  • openssh-key-parser (PyPI) Vendor— Affected before 0.0.6 Fixed in 0.0.6 Patch available GHSA-hm37-9xh2-q499

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:openssh_key_parser_project:openssh_key_parser:*:*:*:*:*:python:*:*before 0.0.6VulnerableOpenssh Key Parser Project
  • cpe:2.3:a:openssh_key_parser_project:openssh_key_parser:*:*:*:*:*:python:*:* Versions before 0.0.6 Vulnerable ·Openssh Key Parser Project

Remediation

  • Fix · CNA openssh_key_parser (scottcwang) Fixed in 0.0.6
  • Fix · GHSA-hm37-9xh2-q499 openssh-key-parser (PyPI) Fixed in 0.0.6 Advisory →

Timeline

  1. 2026-10-02 Threatist record created from CVE-2022-31124
  2. 2026-10-03 Alias added: GHSA-hm37-9xh2-q499

References

Sources