CVE-2022-4969: Rockhopper Rockhopper Buffer Overflow Vulnerability Vulnerability

MODERATE
Advisory Identifier: GHSA-4r4c-66gf-g9g5
CVSS 5.3
CWE-120
Published
Advisory Summary

CVE-2022-4969 is a MODERATE (CVSS 5.3) rockhopper buffer overflow vulnerability vulnerability (CWE-120: Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')) affecting Rockhopper libraries in the PyPI ecosystem. The issue involves rockhopper buffer overflow vulnerability. Remediation is available by upgrading affected packages to version 0.2.0.

CVE-2022-4969 at a Glance

CVE Identifier CVE-2022-4969
GHSA Identifier GHSA-4r4c-66gf-g9g5
Severity MODERATE
CVSS v3.1 Base Score 5.3
CWE Classification CWE-120: Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')
Affected Product Rockhopper
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 5.3

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L).

Attack Vector Local (AV:L)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability Low (A:L)

How to Fix CVE-2022-4969

To remediate this vulnerability, upgrade all affected Rockhopper dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

rockhopper fixed: 0.2.0
pip install rockhopper>=0.2.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show rockhopper

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2022-4969, inspect your installed packages using pip:

pip show rockhopper

Analyze the terminal output to locate any version of Rockhopper in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.2.0), your application is affected.

Note: The pip show rockhopper command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-120: Buffer Copy without Checking Size of Input ('Classic Buffer Overflow'), where the product copies an input buffer to an output buffer without verifying that the size of the input buffer is less than the size of the output buffer. In Rockhopper, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

A vulnerability, which was classified as critical, has been found in bwoodsend rockhopper up to 0.1.2. Affected by this issue is the function `count_rows` of the file `rockhopper/src/ragged_array.c` of the component Binary Parser. The manipulation of the argument raw leads to buffer overflow. Local access is required to approach this attack. Upgrading to version 0.2.0 is able to address this issue. The name of the patch is 1a15fad5e06ae693eb9b8908363d2c8ef455104e. It is recommended to upgrade the affected component. The identifier of this vulnerability is VDB-266312.

CVE-2022-4969 Affected Rockhopper Versions

1 component(s)
Fixed Versions:
0.2.0
Product / Package Ecosystem Affected Versions Fixed Version
rockhopper
PyPI
< 0.2.0
0.2.0

References

Frequently Asked Questions

What is CVE-2022-4969?
CVE-2022-4969 is a security vulnerability in Rockhopper involving rockhopper Buffer Overflow vulnerability under CWE-120: Buffer Copy without Checking Size of Input ('Classic Buffer Overflow').
Which Rockhopper versions are affected?
Affected versions include releases prior to 0.2.0 across affected packages: rockhopper.
What version fixes CVE-2022-4969?
Upgrading to 0.2.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is rockhopper affected?
Yes, rockhopper is affected in releases prior to 0.2.0. Upgrade your dependency to 0.2.0 or later.
What is the CVSS score of CVE-2022-4969?
CVE-2022-4969 has a CVSS v3.1 base score of 5.3 (MODERATE) with vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L.
What CWE is associated with CVE-2022-4969?
CVE-2022-4969 is classified under CWE-120: Buffer Copy without Checking Size of Input ('Classic Buffer Overflow') (The product copies an input buffer to an output buffer without verifying that the size of the input buffer is less than the size of the output buffer.).
How can I check PyPI dependencies for CVE-2022-4969?
Run the dependency tree command: 'pip show rockhopper'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-4r4c-66gf-g9g5",
  "modified" : "2024-05-28T21:22:45Z",
  "published" : "2024-05-28T21:22:45Z",
  "aliases" : [ "CVE-2022-4969" ],
  "summary" : "rockhopper Buffer Overflow vulnerability",
  "details" : "A vulnerability, which was classified as critical, has been found in bwoodsend rockhopper up to 0.1.2. Affected by this issue is the function `count_rows` of the file `rockhopper/src/ragged_array.c` of the component Binary Parser. The manipulation of the argument raw leads to buffer overflow. Local access is required to approach this attack. Upgrading to version 0.2.0 is able to address this issue. The name of the patch is 1a15fad5e06ae693eb9b8908363d2c8ef455104e. It is recommended to upgrade the affected component. The identifier of this vulnerability is VDB-266312.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "rockhopper"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.2.0"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 0.1.2"
    }
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-4969"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/bwoodsend/rockhopper/commit/1a15fad5e06ae693eb9b8908363d2c8ef455104e"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/bwoodsend/rockhopper"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/bwoodsend/rockhopper/releases/tag/v0.2.0"
  }, {
    "type" : "WEB",
    "url" : "https://vuldb.com/?ctiid.266312"
  }, {
    "type" : "WEB",
    "url" : "https://vuldb.com/?id.266312"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-120" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-05-28T21:22:45Z",
    "nvd_published_at" : "2024-05-27T17:15:09Z"
  }
}