CVE-2022-1930: Regular expression denial of service in eth-account
5.9
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.23948%
CWE
Published
8/23/2022
Updated
1/28/2023
KEV Status
No
Technology
Python
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| eth-account | pip | < 0.5.9 | 0.5.9 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from the TYPE_REGEX pattern in validation.py which was modified in the patch. The original regex had nested quantifiers that could cause catastrophic backtracking. The added test case demonstrates this by passing a 30-character '1' string that would cause >1 second delay with the old regex. While the exact function name isn't visible in diffs, the regex is clearly used in structured data validation flow called by encode_structured_data, as shown in the test's load_and_validate_structured_message call. The file path and regex usage context provide high confidence.