Hoch

Sandbox escape via various forms of "format".

  • Veröffentlicht: 30.08.2023
  • Aktualisiert: 11.10.2026 11:19

Impact

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.

Patches

The issue will be fixed in 5.4 and 6.2.

Workarounds

There are no workarounds to fix the issue without upgrading.

References

For more information

If you have any questions or comments about this advisory:

Credits

Thanks for analysing and reporting the go to:

  • Abhishek Govindarasu
  • Ankush Menat
  • Ward Theunisse

Betroffene Software

Klicken Sie auf eine Technologie, um alle zugehörigen Schwachstellen anzuzeigen.

PlattformPaketAnfällige VersionenBehoben in
Python (PyPI) restrictedpython < 5.4, >= 6.0, < 6.2 5.4, 6.2

Verweise

CVSS-Wert 8.3/10
CVSS-Vektor
CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:L
Schwäche (CWE)
CWE-74
Plattform
Python (PyPI)
Paket
restrictedpython
Veröffentlicht
30.08.2023
Aktualisiert
11.10.2026 11:19

Quellen und Lizenzen

OSV / GitHub Advisory Database - PYSEC-2023-159 - PyPA Advisory Database; CC BY 4.0

OSV / GitHub Advisory Database - GHSA-xjw2-6jm9-rf67 - CC BY 4.0

Schwachstellenhistorie: restrictedpython

Alle veröffentlichten Schwachstellen dieses Pakets (Python (PyPI)), neueste zuerst. Zeigt, ob es ein einmaliger Ausrutscher ist oder ein Paket, das man im Auge behalten muss.

Einträge insgesamt
6
Erste → letzte
07.2023 09.2026
Ohne Fix
0
In Angriffen ausgenutzt
0

Verteilung nach Schweregrad

  • Hoch 6

Veröffentlichungen pro Jahr

  1. 2023: 2
  2. 2024: 1
  3. 2025: 1
  4. 2026: 2
  1. Sandbox escape via various forms of "format". dieser Eintrag
    Hoch · 8.3 CVE-2023-41039 < 5.4, >= 6.0, < 6.2 5.4, 6.2
  2. Hoch · 8.4 CVE-2023-37271 < 5.3, >= 6.0a1.dev0, < 6.1, < 5.3 5.3, 6.1

Erkennen Sie Schwachstellen in Ihrer Anwendung

Mit der DockRay-Integration und aktivierter Softwareinventarisierung prüft DockRay gemeldete Komponentenversionen auf bekannte Schwachstellen und benachrichtigt Sie über bestätigte Treffer. Die Abdeckung hängt von der unterstützten Technologie und den verfügbaren Meldungen ab.

Anwendung verbinden
DockRay Newsletter

Anwendungssicherheit in Ihrem Postfach

Wichtige Schwachstellen, konkrete Empfehlungen und praktische Tipps für Ihre Anwendungen. Wählen Sie Ihre Technologien und verfolgen Sie, was für Ihr Projekt relevant ist.

  • Eine tägliche Zusammenfassung neuer Schwachstellen, auch kritischer.
  • Benachrichtigungen über wichtige Updates.
  • Praktische Tipps zur Sicherheit und Überwachung von Anwendungen.

Leer lassen, um Meldungen zu allen Technologien zu erhalten.

Kostenlos anmelden. In jeder E-Mail mit einem Klick abmelden.