# CVE-2022-1930: ReDoS in eth-account encode_structured_data function

- Severity: Medium 5.9 (CVSS:3.1, scored by JFROG) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.94%, higher than 61% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-08-22T18:15:56.000Z
- Modified: 2026-07-07T11:56:45.678Z
- Also known as: GHSA-v65g-f3cj-fjp4, PYSEC-2026-806
- Weaknesses: CWE-697, CWE-1333
- Assigned by: JFROG

## 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

(As written by CVE List.)

## Affected

- eth-account eth-account: before 0.5.9
- eth-account (PyPI): before 0.5.9
- ethereum eth-account: before 0.5.9

## Every score

- JFROG: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- PyPA Advisory Database: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://research.jfrog.com/vulnerabilities/eth-account-redos-xray-248681/> (exploit, third-party-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-1930> (advisory)
- <https://github.com/ethereum/eth-account/commit/70f89be700df0d5f08ef696252c88741f8414060> (web)
- <https://github.com/ethereum/eth-account> (package)
- <https://research.jfrog.com/vulnerabilities/eth-account-redos-xray-248681> (web)
- <https://pypi.org/project/eth-account> (package)
- <https://github.com/advisories/GHSA-v65g-f3cj-fjp4> (advisory)

## Sources

- CVE List: [CVE-2022-1930](https://www.cve.org/CVERecord?id=CVE-2022-1930), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-v65g-f3cj-fjp4](https://github.com/advisories/GHSA-v65g-f3cj-fjp4), CC-BY-4.0, modified 2026-07-07
- NVD: [CVE-2022-1930](https://nvd.nist.gov/vuln/detail/CVE-2022-1930), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-806](https://osv.dev/vulnerability/PYSEC-2026-806), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2022-1930 · Whole record: https://cve.day/CVE-2022-1930.json · Rebuilt by cve.day 2026-11-25T22:58:14.372Z
