SCA: security update for RestrictedPython (GHSA-xjw2-6jm9-rf67)

high Tenable Self-Hosted Container Security Plugin ID 420558

Description

There are packages installed that are affected by a vulnerability referenced in the following CVE:

- 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. (CVE-2023-41039)

See Also

https://github.com/advisories/GHSA-xjw2-6jm9-rf67

Plugin Details

Severity: High

ID: 420558

Version: Revision 1.7

Type: Local

Family: SCA Checks

Published: 1/23/2025

Updated: 7/2/2026

Supported Sensors: Tenable Cloud Security, Tenable Self-Hosted Container Security

Risk Information

VPR

Risk Factor: Low

Score: 3.3

Percentile: 51.16

Vendor

Vendor Severity: High

CVSS v2

Risk Factor: Medium

Base Score: 6.8

Temporal Score: 5

Vector: CVSS2#AV:N/AC:L/Au:S/C:C/I:N/A:N

CVSS Score Source: CVE-2023-41039

CVSS v3

Risk Factor: High

Base Score: 7.7

Temporal Score: 6.7

Vector: CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

Vulnerability Information

Exploit Ease: No known exploits are available

Patch Publication Date: 8/30/2023

Vulnerability Publication Date: 8/30/2023

Reference Information

CVE: CVE-2023-41039

cwe: CWE-74