CVE-2024-47532: Attributeerror Sandbox Leak

A wrapper class delegates attribute access using `getattr()` without handling `AttributeError`. In Python 3.10+, `AttributeError` instances include an `obj` attribute that contains the object being accessed. If the `getattr()` call is allowed to propagate an `AttributeError` from the wrapped object, untrusted code catching this exception can extract the wrap

Provally CuratedPublic repositoryMediumMedium confidenceVerifiedApache-2.0Python
greprules fetch cve-2024-47532-attributeerror-sandbox-leak --engine opengrep

Description

A wrapper class delegates attribute access using `getattr()` without handling `AttributeError`. In Python 3.10+, `AttributeError` instances include an `obj` attribute that contains the object being accessed. If the `getattr()` call is allowed to propagate an `AttributeError` from the wrapped object, untrusted code catching this exception can extract the wrap