PT-2023-27754 · Python+3 · Restrictedpython+3

Abhishek Govindarasu

+2

·

Publicado

2023-08-30

·

Atualizado

2025-03-18

·

CVE-2023-41039

CVSS v3.1

8.3

Alta

VetorAV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:L
Name of the Vulnerable Software and Affected Versions RestrictedPython versions prior to 5.4 RestrictedPython versions prior to 6.2
Description 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.
Recommendations Upgrade to version 5.4 or later. Upgrade to version 6.2 or later. As a temporary workaround, consider restricting access to the format and format map methods of str (and unicode) until a patch is available. Avoid using the string.Formatter until the issue is resolved. At the moment, there is no other information about additional workarounds for this vulnerability.

Exploit

Correção

Special Elements Injection

Encontrou algum problema na descrição? Tem algo a acrescentar? Fique à vontade para nos escrever 👾

Enumeração de Fraquezas

Identificadores relacionados

CVE-2023-41039
GHSA-XJW2-6JM9-RF67
PYSEC-2023-159
USN-7355-1

Produtos afetados

Debian
Linuxmint
Restrictedpython
Ubuntu