« Volver al listado

CVE-2026-40072

Estado: AnalizadaBaja (1.7)—

web3.py allows you to interact with the Ethereum blockchain using Python. From 6.0.0b3 to before 7.15.0 and 8.0.0b2, web3.py implements CCIP Read / OffchainLookup (EIP-3668) by performing HTTP requests to URLs supplied by smart contracts in offchain_lookup_payload["urls"]. The implementation uses these contract-supplied URLs directly (after {sender} / {data} template substitution) without any destination validation. CCIP Read is enabled by default (global_ccip_read_enabled = True on all providers), meaning any application using web3.py's .call() method is exposed without explicit opt-in.

Leer descripción completaMostrar menos

This results in Server-Side Request Forgery (SSRF) when web3.py is used in backend services, indexers, APIs, or any environment that performs eth_call / .call() against untrusted or user-supplied contract addresses. A malicious contract can force the web3.py process to issue HTTP requests to arbitrary destinations, including internal network services and cloud metadata endpoints. This vulnerability is fixed in 7.15.0 and 8.0.0b2.

CVSS

Probabilidad de explotación (EPSS)

EPSS (Exploit Prediction Scoring System, de FIRST) estima la probabilidad de que una vulnerabilidad sea explotada en 30 días. Complementa a CVSS (impacto) y a CISA KEV (explotación confirmada).

Tecnologías afectadas (1)

CWE

Referencias

JSON original (NVD)

Mostrar
{
  "id": "CVE-2026-40072",
  "cveTags": [],
  "metrics": {
    "ssvcV203": [
      {
        "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
        "ssvcData": {
          "id": "CVE-2026-40072",
          "role": "CISA Coordinator",
          "options": [
            {
              "exploitation": "poc"
            },
            {
              "automatable": "no"
            },
            {
              "technicalImpact": "partial"
            }
          ],
          "version": "2.0.3",
          "timestamp": "2026-04-09T19:36:55.666029Z"
        }
      }
    ],
    "cvssMetricV31": [
      {
        "type": "Primary",
        "source": "nvd@nist.gov",
        "cvssData": {
          "scope": "CHANGED",
          "version": "3.1",
          "baseScore": 7.2,
          "attackVector": "NETWORK",
          "baseSeverity": "HIGH",
          "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N",
          "integrityImpact": "LOW",
          "userInteraction": "NONE",
          "attackComplexity": "LOW",
          "availabilityImpact": "NONE",
          "privilegesRequired": "NONE",
          "confidentialityImpact": "LOW"
        },
        "impactScore": 2.7,
        "exploitabilityScore": 3.9
      }
    ],
    "cvssMetricV40": [
      {
        "type": "Secondary",
        "source": "security-advisories@github.com",
        "cvssData": {
          "Safety": "NOT_DEFINED",
          "version": "4.0",
          "Recovery": "NOT_DEFINED",
          "baseScore": 1.7,
          "Automatable": "NOT_DEFINED",
          "attackVector": "NETWORK",
          "baseSeverity": "LOW",
          "valueDensity": "NOT_DEFINED",
          "vectorString": "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:U/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X",
          "exploitMaturity": "UNREPORTED",
          "providerUrgency": "NOT_DEFINED",
          "userInteraction": "NONE",
          "attackComplexity": "LOW",
          "attackRequirements": "PRESENT",
          "privilegesRequired": "NONE",
          "subIntegrityImpact": "LOW",
          "vulnIntegrityImpact": "NONE",
          "integrityRequirement": "NOT_DEFINED",
          "modifiedAttackVector": "NOT_DEFINED",
          "subAvailabilityImpact": "NONE",
          "vulnAvailabilityImpact": "NONE",
          "availabilityRequirement": "NOT_DEFINED",
          "modifiedUserInteraction": "NOT_DEFINED",
          "modifiedAttackComplexity": "NOT_DEFINED",
          "subConfidentialityImpact": "LOW",
          "vulnConfidentialityImpact": "NONE",
          "confidentialityRequirement": "NOT_DEFINED",
          "modifiedAttackRequirements": "NOT_DEFINED",
          "modifiedPrivilegesRequired": "NOT_DEFINED",
          "modifiedSubIntegrityImpact": "NOT_DEFINED",
          "modifiedVulnIntegrityImpact": "NOT_DEFINED",
          "vulnerabilityResponseEffort": "NOT_DEFINED",
          "modifiedSubAvailabilityImpact": "NOT_DEFINED",
          "modifiedVulnAvailabilityImpact": "NOT_DEFINED",
          "modifiedSubConfidentialityImpact": "NOT_DEFINED",
          "modifiedVulnConfidentialityImpact": "NOT_DEFINED"
        }
      }
    ]
  },
  "affected": [
    {
      "source": "security-advisories@github.com",
      "affectedData": [
        {
          "vendor": "ethereum",
          "product": "web3.py",
          "versions": [
            {
              "status": "affected",
              "version": ">= 6.0.0b3, < 7.15.0"
            },
            {
              "status": "affected",
              "version": ">= 8.0.0b1, < 8.0.0b2"
            }
          ]
        }
      ]
    }
  ],
  "published": "2026-04-09T18:17:03.510",
  "references": [
    {
      "url": "https://github.com/ethereum/web3.py/commit/b1c57bb0a124359c9902daaefab4d8af7c3c4c1e",
      "tags": [
        "Patch"
      ],
      "source": "security-advisories@github.com"
    },
    {
      "url": "https://github.com/ethereum/web3.py/security/advisories/GHSA-5hr4-253g-cpx2",
      "tags": [
        "Exploit",
        "Mitigation",
        "Vendor Advisory"
      ],
      "source": "security-advisories@github.com"
    }
  ],
  "vulnStatus": "Analyzed",
  "weaknesses": [
    {
      "type": "Secondary",
      "source": "security-advisories@github.com",
      "description": [
        {
          "lang": "en",
          "value": "CWE-918"
        }
      ]
    }
  ],
  "descriptions": [
    {
      "lang": "en",
      "value": "web3.py allows you to interact with the Ethereum blockchain using Python. From 6.0.0b3 to before 7.15.0 and 8.0.0b2, web3.py implements CCIP Read / OffchainLookup (EIP-3668) by performing HTTP requests to URLs supplied by smart contracts in offchain_lookup_payload[\"urls\"]. The implementation uses these contract-supplied URLs directly (after {sender} / {data} template substitution) without any destination validation. CCIP Read is enabled by default (global_ccip_read_enabled = True on all providers), meaning any application using web3.py's .call() method is exposed without explicit opt-in. This results in Server-Side Request Forgery (SSRF) when web3.py is used in backend services, indexers, APIs, or any environment that performs eth_call / .call() against untrusted or user-supplied contract addresses. A malicious contract can force the web3.py process to issue HTTP requests to arbitrary destinations, including internal network services and cloud metadata endpoints. This vulnerability is fixed in 7.15.0 and 8.0.0b2."
    }
  ],
  "lastModified": "2026-06-17T10:44:41.320",
  "configurations": [
    {
      "nodes": [
        {
          "negate": false,
          "cpeMatch": [
            {
              "criteria": "cpe:2.3:a:apeworx:web3.py:*:*:*:*:*:python:*:*",
              "vulnerable": true,
              "matchCriteriaId": "21C388F4-12FA-49A6-A82F-82F2B596B8F6",
              "versionEndExcluding": "7.15.0",
              "versionStartIncluding": "6.1.0"
            },
            {
              "criteria": "cpe:2.3:a:apeworx:web3.py:6.0.0:-:*:*:*:python:*:*",
              "vulnerable": true,
              "matchCriteriaId": "4F57B105-4085-4270-AB48-87888BFDA980"
            },
            {
              "criteria": "cpe:2.3:a:apeworx:web3.py:6.0.0:beta10:*:*:*:python:*:*",
              "vulnerable": true,
              "matchCriteriaId": "800E433F-EAF1-4E68-8A8C-CB04AEAFA9CC"
            },
            {
              "criteria": "cpe:2.3:a:apeworx:web3.py:6.0.0:beta11:*:*:*:python:*:*",
              "vulnerable": true,
              "matchCriteriaId": "9D617EE7-6666-47E7-BACD-64960873E377"
            },
            {
              "criteria": "cpe:2.3:a:apeworx:web3.py:6.0.0:beta3:*:*:*:python:*:*",
              "vulnerable": true,
              "matchCriteriaId": "DF87D8C3-542F-48D8-86BE-7F9A140BA02E"
            },
            {
              "criteria": "cpe:2.3:a:apeworx:web3.py:6.0.0:beta4:*:*:*:python:*:*",
              "vulnerable": true,
              "matchCriteriaId": "AF9B94BD-8748-474A-BFD2-CE0FC6C86AB4"
            },
            {
              "criteria": "cpe:2.3:a:apeworx:web3.py:6.0.0:beta5:*:*:*:python:*:*",
              "vulnerable": true,
              "matchCriteriaId": "07094081-F344-488D-9D0F-679E8F1C5060"
            },
            {
              "criteria": "cpe:2.3:a:apeworx:web3.py:6.0.0:beta6:*:*:*:python:*:*",
              "vulnerable": true,
              "matchCriteriaId": "1B25F26C-D637-44E6-ACFC-8B31B61C1C77"
            },
            {
              "criteria": "cpe:2.3:a:apeworx:web3.py:6.0.0:beta7:*:*:*:python:*:*",
              "vulnerable": true,
              "matchCriteriaId": "D0B35286-37D3-4353-A858-79304A453EC1"
            },
            {
              "criteria": "cpe:2.3:a:apeworx:web3.py:6.0.0:beta8:*:*:*:python:*:*",
              "vulnerable": true,
              "matchCriteriaId": "E5A3F6FD-A489-4877-A8D8-CD90B48448B8"
            },
            {
              "criteria": "cpe:2.3:a:apeworx:web3.py:6.0.0:beta9:*:*:*:python:*:*",
              "vulnerable": true,
              "matchCriteriaId": "BE5801C7-419F-4FC1-8071-D3710B77A2C3"
            },
            {
              "criteria": "cpe:2.3:a:apeworx:web3.py:8.0.0:beta1:*:*:*:python:*:*",
              "vulnerable": true,
              "matchCriteriaId": "66813562-1068-4639-A179-E753E1DE90CD"
            }
          ],
          "operator": "OR"
        }
      ]
    }
  ],
  "sourceIdentifier": "security-advisories@github.com"
}