CVE-2022-4969
Python vulnerability analysis and mitigation

Overview

A critical vulnerability has been identified in bwoodsend rockhopper up to version 0.1.2. The vulnerability affects the countrows function in the rockhopper/src/raggedarray.c file of the Binary Parser component. The issue was discovered and disclosed in May 2024 (NVD).

Technical details

The vulnerability is classified as a buffer overflow issue that occurs in the count_rows function when manipulating the raw argument. The vulnerability has received multiple CVSS scores: CVSS v4.0 score of 4.8 (MEDIUM) with vector CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N, and CVSS v3.1 score of 5.3 (MEDIUM) with vector CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L (VulDB).

Impact

When parsing binary data with ldtype=np.uint64, if a length is sufficiently close to 2^64, it can cause the parsing buffer pointer (starting from &buffer) to overflow. This allows reading of arbitrary memory owned by the current process whose address is < &buffer. If the overflow maps the pointer to a location not owned by the current process, a segfault will occur (GitHub Commit).

Mitigation and workarounds

The vulnerability has been patched in version 0.2.0. Users are recommended to upgrade to this version. The fix includes implementing overflow detection which now raises a ValueError when parsing fails, preventing potential security exploits (GitHub Release).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

“Best User Experience I have ever seen, provides full visibility to cloud workloads.”
David EstlickCISO
“Wiz provides a single pane of glass to see what is going on in our cloud environments.”
Adam FletcherChief Security Officer
“We know that if Wiz identifies something as critical, it actually is.”
Greg PoniatowskiHead of Threat and Vulnerability Management