You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit f87a7e6
Browse filesBrowse the repository at this point in the historyBrowse files
|`safe_eval` sandbox escape via dunder attribute access with `allow_attributes=True` (string-argument indirection, e.g. `().__getattribute__('__class__')`) |[GHSA-m85r-gp57-6p5q](https://github.com/Infinitode/CodeSafe/security/advisories/GHSA-m85r-gp57-6p5q) · CVE pending | 0.0.3 - 0.0.5 |**0.0.6**|
26
26
| Remote code execution in the calling process via unsafe deserialization of the `safe_eval()` result (cloudpickle) |[GHSA-2565-87hp-2588](https://github.com/Infinitode/CodeSafe/security/advisories/GHSA-2565-87hp-2588) · CVE pending | 0.0.6 |**0.0.7**|
You can browse all advisories at https://github.com/Infinitode/CodeSafe/security/advisories
29
30
@@ -63,7 +64,7 @@ You can browse all advisories at https://github.com/Infinitode/CodeSafe/security
63
64
-**Fixed in**: Version **0.0.7** - every `str.format`/`format_map` template is now inspected, and any replacement field naming an attribute or a key is rejected. Plain fields (`'{}'`, `'{0:>3}'`, `'{name}'`) still work, nested spec fields are unwrapped and checked, and non-literal templates (built with concatenation, `join` or `chr()`) are rejected because they cannot be inspected.
64
65
-**Workaround for older versions**: leave `allow_attributes` at its default (`False`), and do not pass secret-bearing objects through `allowed_vars`/`allowed_builtins`. Otherwise, upgrade.
65
66
66
-
**Credit**: Reported by [@stilwel](https://github.com/stilwel) - thank you for the clear write-up.
67
+
**Advisory**:[GHSA-h6v8-q8xm-2cvq](https://github.com/Infinitode/CodeSafe/security/advisories/GHSA-h6v8-q8xm-2cvq). Reported by [@stilwel](https://github.com/stilwel) - thank you for the clear write-up.
***Changed**: The `cloudpickle` dependency was removed - CodeSafe no longer imports pickle on the evaluation path at all.
144
145
* Added regression tests for every item above (see [Vulnerability & Security Testing](#vulnerability--security-testing-test_poc_vulnerabilitypy)).
145
146
***Credit**: The critical result-deserialization issue above was reported by **Juan Lucas Armendares** of **Sunplace Solutions** - many thanks. See [GHSA-2565-87hp-2588](https://github.com/Infinitode/CodeSafe/security/advisories/GHSA-2565-87hp-2588).
146
-
***Credit**: The `str.format` replacement-field traversal (`'{0.__class__}'.format(obj)` and similar) was reported by [@stilwel](https://github.com/stilwel) - many thanks.
147
+
***Credit**: The `str.format` replacement-field traversal (`'{0.__class__}'.format(obj)` and similar) was reported by [@stilwel](https://github.com/stilwel) - many thanks. See [GHSA-h6v8-q8xm-2cvq](https://github.com/Infinitode/CodeSafe/security/advisories/GHSA-h6v8-q8xm-2cvq).
| Remote code execution in the calling process via unsafe deserialization of the `safe_eval()` result |[GHSA-2565-87hp-2588](https://github.com/Infinitode/CodeSafe/security/advisories/GHSA-2565-87hp-2588) · CVE pending | 0.0.6 | 0.0.7 |
0 commit comments