Skip to content
Heist/ feed
Back to feed
Medium

ReDoS in eth-account encode_structured_data function

Type: advisorySources: OSV

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

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2022-1930
Confirmed fixed CVEs
Not specified
Updated in this feed
8 Nov 2026, 00:37 UTC · Revision 1

Source evidence

ReDoS in eth-account encode_structured_data function

core-osv · Original source

Published 22 Aug 2022, 18:15 UTC

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

osv:CVE-2022-1930
Complete source record
{
  "id": "22841e1d4b1f603350c4156357d8b4ec55e74eee39fb0d3ca970284e0099ba31",
  "url": "https://osv.dev/vulnerability/CVE-2022-1930",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "ReDoS in eth-account encode_structured_data function",
    "summary": "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",
    "evidence": "osv:CVE-2022-1930",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2022-1930",
      "aliases": [
        "CVE-2022-1930",
        "GHSA-v65g-f3cj-fjp4",
        "PYSEC-2026-806"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/ApeWorX/eth-account",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "c0060ca25e8461b9622eab318d922c0a48e8d5a8"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:ethereum:eth-account:*:*:*:*:*:python:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "0.5.9"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v0.5.8",
            "v0.5.7",
            "v0.5.6",
            "v0.5.5",
            "v0.5.4",
            "v0.5.3",
            "v0.5.2",
            "v0.5.1",
            "v0.5.0",
            "v0.4.0",
            "v0.3.0",
            "v0.2.3",
            "v0.2.2",
            "v0.2.1",
            "v0.2.0",
            "v0.2.0-alpha.0",
            "v0.1.0-alpha.2"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-1930.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:52.317966835Z",
      "provider": "osv",
      "references": [
        "https://research.jfrog.com/vulnerabilities/eth-account-redos-xray-248681/",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/1xxx/CVE-2022-1930.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2022-1930"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-1333"
        ],
        "cna_assigner": "JFROG",
        "unresolved_ranges": [
          {
            "extracted_events": [
              {
                "range": [
                  {
                    "fixed": "0.5.9"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              }
            ]
          }
        ],
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/1xxx/CVE-2022-1930.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2022-1930",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 521024,
  "published_at": "2022-08-22T18:15:56+00:00"
}