Sandbox escape via various forms of "format" in RestrictedPython (zopefoundation RestrictedPython)
En bref
- Source
- NVD
- EPSS
- EPSS 0.68 % · centile 54 ()
- État
- PUBLISHED
- Publiée
- Mise à jour
- Attribuée par
- GitHub_M
- Produits affectés
- zopefoundation · RestrictedPython
- Statut NVD
- Modified
Rechercher sur…
Description
RestrictedPython is a restricted execution environment for Python to run untrusted code. Python's "format" functionality allows someone controlling the format string to "read" all objects accessible through recursive attribute lookup and subscription from objects he can access. This can lead to critical information disclosure. With `RestrictedPython`, the format functionality is available via the `format` and `format_map` methods of `str` (and `unicode`) (accessed either via the class or its instances) and via `string.Formatter`. All known versions of `RestrictedPython` are vulnerable. This issue has been addressed in commit `4134aedcff1` which has been included in the 5.4 and 6.2 releases. Users are advised to upgrade. There are no known workarounds for this vulnerability.
Faiblesses (CWE)
- CWE-74 — Neutralisation incorrecte d'éléments spéciaux (injection)
Références
Scores
| Version | Score | Vecteur | Évalué par |
|---|---|---|---|
| CVSS 3.1 | HIGH 8.3 | CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:L | GitHub_M |
| CVSS 3.1 | HIGH 8.3 | CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:L | NVD · security-advisories@github.com (Secondary) |
| CVSS 3.1 | HIGH 7.7 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N | NVD · nvd@nist.gov (Primary) |
Avis
- GHSA-xjw2-6jm9-rf67 — Sandbox escape via various forms of "format".
- PYSEC-2023-159 — RestrictedPython is a restricted execution environment for Python to run untrusted code. Python's "format" functionality allows someone controlling the format s
Références européennes
- ENISA EUVD · EUVD-2023-0229
- GCVE · GCVE-0-2023-41039
Configurations affectées (CPE NVD)
cpe:2.3:a:zope:restrictedpython:*:*:*:*:*:*:*:*< 5.4cpe:2.3:a:zope:restrictedpython:*:*:*:*:*:*:*:*≥ 6.0 < 6.2
Produits affectés
| Produit | Versions affectées |
|---|---|
| zopefoundation · RestrictedPython | affectée : < 5.4 affectée : >= 6.0, < 6.1 |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST — attribution requested |
| ENISA EUVD | ENISA — reproduction authorised, source acknowledged |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain — this product uses data from the NVD API but is not endorsed or certified by the NVD |