> CVE-2026-76825 [HIGH]

« BACK_TO_HOME
PUBLISHED
2026-09-16 15:17
MODIFIED
2026-09-16 15:17
CVSS_SCORE V3
8.4
EPSS (Prob. Exploit)
0.62%
Top 51.2%
DATA SOURCES:
NVD đź”— 2026-09-16 CWE MITRE đź”— 2026-10-01 FIRST EPSS đź”— 2026-10-18 GITHUB đź”— 2026-09-23 OSV đź”— 2026-10-19

> DESCRIPTION

RestrictedPython is a tool that helps define a subset of the Python language for accepting program input in a trusted environment. Prior to 8.4, RestrictedPython could allow a sandbox escape when a custom import policy or globals exposed the standard library string module, the string.Formatter class, a Formatter instance, or a Formatter subclass to restricted code. The string.Formatter methods format, get_field, get_value, and vformat performed attribute and item traversal internally without passing through RestrictedPython's safer_getattr protections. Restricted code could use those live object references to reach function globals, builtins, file access, or code execution primitives, affecting confidentiality, integrity, and availability in the host environment. This issue is fixed in version 8.4.

> AFFECTED_PRODUCTS

ℹ️ Aucun produit affecté n'a encore été publié par NVD pour cette CVE.

> CVSS V3 METRICS

CVSS_VECTOR
CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:H
EXPLOITABILITY
1.7
IMPACT
6.0

> MÉTRIQUES CVSS DÉTAILLÉES

CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:H
Métrique Valeur Interprétation
AV (Vecteur d'Attaque)
Attack Vector
Network (N)
Exploit possible à distance via réseau (HTTP, API, etc.)
AC (Complexité d'Attaque)
Attack Complexity
Low (L)
Peu de conditions requises pour exploiter
PR (Privilèges Requis)
Privileges Required
High (H)
Authentifié avec privilèges administratifs
UI (Interaction Utilisateur)
User Interaction
Required (R)
Nécessite une action utilisateur (clic lien, ouverture fichier, etc.)
S (Périmètre)
Scope
Changed (C)
Impact s'étend au-delà du composant compromis
C (Impact Confidentialité)
Confidentiality Impact
High (H)
Divulgation totale d'informations
I (Impact Intégrité)
Integrity Impact
High (H)
Modification totale des données possible
A (Impact Disponibilité)
Availability Impact
High (H)
Interruption totale du service possible

> RÉSUMÉ DES IMPACTS

Confidentialité
High
Divulgation totale d'informations
Intégrité
High
Modification totale des données possible
Disponibilité
High
Interruption totale du service possible

> WEAKNESSES

CWE-200 CWE-470 CWE-680 CWE-693

> CWE DETAILED DESCRIPTIONS

CWE-200: Exposure of Sensitive Information to an Unauthorized Actor - The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information. | CWE-470: Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection') - The product uses external input with reflection to select which classes or code to use, but it does not sufficiently prevent the input from selecting improper classes or code. | CWE-680: Integer Overflow to Buffer Overflow - The product performs a calculation to determine how much memory to allocate, but an integer overflow can occur that causes less memory to be allocated than expected, leading to a buffer overflow. | CWE-693: Protection Mechanism Failure - The product does not use or incorrectly uses a protection mechanism that provides sufficient defense against directed attacks against the product.

> GITHUB SECURITY ADVISORY

GHSA-hp3v-5vw7-fx9w HIGH

RestrictedPython vulnerable to sandbox escape via string.Formatter field resolution

AFFECTED PACKAGES:
PIP / RestrictedPython
< 8.4
Fixed in: 8.4

> OSV (GOOGLE OPEN SOURCE VULNERABILITIES)

RestrictedPython: Sandbox escape via string.Formatter field resolution

AFFECTED PACKAGES:
Unknown / Unknown
34 versions affected
ALIASES:
GHSA-hp3v-5vw7-fx9w, PYSEC-2026-4161

> HISTORIQUE DES MODIFICATIONS

Première apparition
16/09/2026 15:17
Source: NVD
📊 ENRICHISSEMENT 01/10/2026 06:01
CWE
Champ modifié: Description CWE
Ancienne valeur:
N/A
Nouvelle valeur:
CWE-200: Exposure of Sensitive Information to an Unauthorized Actor - The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information. | CWE-...
Total des modifications: 1 Dernière mise à jour: 3 weeks ago

> REFERENCES

https://github.com/zopefoundation/RestrictedPython/commit/3b47440070b91f8807c2b2...
https://github.com/zopefoundation/RestrictedPython/releases/tag/8.4
https://github.com/zopefoundation/RestrictedPython/security/advisories/GHSA-hp3v...
« BACK_TO_HOME