try/except* clauses could allow bypass RestrictedPython via type confusion bug in the CPython interpreter (zopefoundation RestrictedPython)

CVE-2025-22153
HIGH 7.9

En bref

Source
NVD
EPSS
EPSS 0.40 % · centile 36 ()
État
PUBLISHED
Publiée
Mise à jour
Attribuée par
GitHub_M
Produits affectés
zopefoundation · RestrictedPython
Statut NVD
Deferred

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.

Faiblesses (CWE)

  • CWE-843 — Confusion de type (accès à une ressource via un type incompatible)

Références

Scores

VersionScoreVecteurÉvalué par
CVSS 3.1HIGH 7.9CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:LGitHub_M
CVSS 3.1HIGH 7.9CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:LNVD · security-advisories@github.com (Secondary)

Avis

Références européennes

Produits affectés

ProduitVersions affectées
zopefoundation · RestrictedPython
affectée : >= 6.0, < 8.0

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD