Vulnerability · Published Aug 22, 2022 · Assigned by JFROG
CVE-2022-1930ReDoS in eth-account encode_structured_data function
Medium 5.9
In plain English
A medium-severity regular-expression denial of service in eth-account from eth-account. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.9% (higher than 60% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)5.9Medium
Exploit odds (30 days)0.9%top 39.8% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known
Official description
An exponential ReDoS (Regular Expression Denial of Service) can be triggered in the eth-account PyPI package, when an attacker is able to supply arbitrary input to the encode_structured_data method
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| PyPI | eth-account | 0.5.9 | GHSA-v65g-f3cj-fjp4 |
| PyPI | eth-account | 0.5.9 | PYSEC-2026-806 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| eth-account | eth-account | 0 – before 0.5.9 |
Weakness: CWE-1333 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H