pysec-2022-233
Vulnerability from pysec
Published
2022-07-06 18:15
Modified
2023-05-25 05:07
Details

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.

Impacted products
Name purl
openssh-key-parser pkg:pypi/openssh-key-parser



{
  "affected": [
    {
      "package": {
        "ecosystem": "PyPI",
        "name": "openssh-key-parser",
        "purl": "pkg:pypi/openssh-key-parser"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "d5b53b4b7e76c5b666fc657019dbf864fb04076c"
            },
            {
              "fixed": "26e0a471e9fdb23e635bc3014cf4cbd2323a08d3"
            },
            {
              "fixed": "274447f91b4037b7050ae634879b657554523b39"
            }
          ],
          "repo": "https://github.com/scottcwang/openssh_key_parser",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "0.0.6"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "0.0.1",
        "0.0.2",
        "0.0.3",
        "0.0.4",
        "0.0.5"
      ]
    }
  ],
  "aliases": [
    "CVE-2022-31124",
    "GHSA-hm37-9xh2-q499"
  ],
  "details": "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\u0027s 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.",
  "id": "PYSEC-2022-233",
  "modified": "2023-05-25T05:07:00Z",
  "published": "2022-07-06T18:15:00Z",
  "references": [
    {
      "type": "FIX",
      "url": "https://github.com/scottcwang/openssh_key_parser/commit/d5b53b4b7e76c5b666fc657019dbf864fb04076c"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/scottcwang/openssh_key_parser/security/advisories/GHSA-hm37-9xh2-q499"
    },
    {
      "type": "WEB",
      "url": "https://github.com/scottcwang/openssh_key_parser/pull/5"
    },
    {
      "type": "FIX",
      "url": "https://github.com/scottcwang/openssh_key_parser/commit/26e0a471e9fdb23e635bc3014cf4cbd2323a08d3"
    },
    {
      "type": "FIX",
      "url": "https://github.com/scottcwang/openssh_key_parser/commit/274447f91b4037b7050ae634879b657554523b39"
    }
  ]
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
  • Patched: This vulnerability was successfully patched by the user reporting the sighting.
  • Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
  • Not confirmed: The user expresses doubt about the veracity of the vulnerability.
  • Not patched: This vulnerability was not successfully patched by the user reporting the sighting.


Loading…

Loading…