Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. RestrictedPython
  4. ›
  5. CVE-2025-22153

CVE-2025-22153: try/except* clauses could allow bypass RestrictedPython via type confusion bug in the CPython interpreter

January 23, 2025

Via a type confusion bug in the CPython interpreter when using try/except* RestrictedPython could be bypassed.

We believe this should be fixed upstream in Python itself until that we remove support for try/except* from RestrictedPython. (It has been fixed for some Python versions.)

References

  • github.com/advisories/GHSA-gmj9-h825-chq2
  • github.com/zopefoundation/RestrictedPython
  • github.com/zopefoundation/RestrictedPython/commit/48a92c5bb617a647cffd0dadd4d5cfe626bcdb2f
  • github.com/zopefoundation/RestrictedPython/security/advisories/GHSA-gmj9-h825-chq2
  • nvd.nist.gov/vuln/detail/CVE-2025-22153

Code Behaviors & Features

Detect and mitigate CVE-2025-22153 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 6.0 before 8.0

Fixed versions

  • 8.0

Solution

Upgrade to version 8.0 or above.

Impact 7.9 HIGH

CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:L

Learn more about CVSS

Weakness

  • CWE-843: Access of Resource Using Incompatible Type ('Type Confusion')

Source file

pypi/RestrictedPython/CVE-2025-22153.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:16:04 +0000.