{
  "id": "CVE-2025-22153",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-22153",
  "published_at": "2025-01-23T17:34:27.056Z",
  "title": "try/except* clauses could allow bypass RestrictedPython via type confusion bug in the CPython interpreter",
  "vendor": "zopefoundation",
  "product": "RestrictedPython",
  "cvss": {
    "score": 7.9,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:L"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "RestrictedPython is a tool that helps to define a subset of the Python language which allows to provide a program input into a trusted environment. Via a type confusion bug in versions of the CPython interpreter starting in 3.11 and prior to 3.13.2 when using `try/except*`, RestrictedPython starting in version 6.0 and prior to version 8.0 could be bypassed. The issue is patched in version 8.0 of RestrictedPython by removing support for `try/except*` clauses. No known workarounds are available.",
  "cwe": "CWE-843",
  "cvss_by_source": {
    "cna": 7.9
  },
  "repos": [
    {
      "repo": "Andy-you/CVE-Reproducer-System",
      "url": "https://github.com/Andy-you/CVE-Reproducer-System",
      "created_at": "2026-05-02T09:16:33Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 1,
      "is_poc": "no",
      "kind": "unrelated",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2022-10-05T01:56:44Z"
    }
  ],
  "remediation": {
    "affected": [
      {
        "vendor": "zopefoundation",
        "product": "RestrictedPython",
        "ranges": [
          "\u003e= 6.0, \u003c 8.0"
        ],
        "fixed_in": [
          "8.0"
        ]
      }
    ],
    "upgrade": [
      "Upgrade RestrictedPython to 8.0 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/zopefoundation/RestrictedPython/security/advisories/GHSA-gmj9-h825-chq2"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/zopefoundation/RestrictedPython/commit/48a92c5bb617a647cffd0dadd4d5cfe626bcdb2f"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
