CVE-2022-1930 ReDoS in eth-account encode_structured_data function
Attackers can cause denial of service in applications using eth-account by supplying malicious input to the encode_structured_data method.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-1930?
CVE-2022-1930 is a medium-severity denial of service vulnerability in eth-account, published on 22 Aug 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.
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
Weakness: CWE-1333
Which versions are affected by CVE-2022-1930?
3 open source packages ship an affected version, including eth-account. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
eth-account PyPI | All versions | 0.5.9 |
eth-account PyPI | All versions | 0.5.9 |
eth-account PyPI | All versions | 0.5.9 |
Products include Ethereum Eth-Account.
How do I fix CVE-2022-1930?
Upgrade eth-account to 0.5.9 or later.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is CVE-2022-1930 being exploited?
There is no known exploitation of CVE-2022-1930 in the wild and no public exploit code.
Sources
Also known as GHSA-v65g-f3cj-fjp4, PYSEC-2026-806.