From 4f1ade4d3aef9f811f78d4a25b4138610694d4f8 Mon Sep 17 00:00:00 2001 From: CodeSafe Maintainers Date: Sat, 28 Nov 2026 08:33:49 +0000 Subject: [PATCH] docs: credit Juan Lucas Armendares and link the published advisory ID Records the reporter in the README (advisory section and the v0.0.7 changelog) as Juan Lucas Armendares of Sunplace Solutions, and replaces the 'GHSA to be assigned' placeholder with GHSA-2565-87hp-2588 in both the README and SECURITY.md advisory tables. Credit wording is deliberately neutral about handles/links until the reporter confirms how he would like to be credited (and whether he wants a GitHub profile or LinkedIn linked). Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com> --- README.md | 5 ++++- SECURITY.md | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7a70fe0..9d1cc31 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ An open-source Python library for code encryption, decryption, and safe evaluati | :--- | :--- | :--- | :--- | | `safe_eval` sandbox escape via indirect subscript call | CVE-2026-133467 · [GHSA-7gp8-3j6q-v4h8](https://github.com/Infinitode/CodeSafe/security/advisories/GHSA-7gp8-3j6q-v4h8) | 0.0.1 - 0.0.4 | 0.0.5 | | `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** | -| Remote code execution in the calling process via unsafe deserialization of the `safe_eval()` result (cloudpickle) | GHSA to be assigned · CVE pending | 0.0.6 | **0.0.7** | +| 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 @@ -40,6 +40,8 @@ You can browse all advisories at https://github.com/Infinitode/CodeSafe/security **What `safe_eval()` returns in 0.0.7.** Results are restricted to plain data: `None`, `bool`, `int`, `float`, `complex`, `str`, `bytes`, `decimal.Decimal`, `fractions.Fraction`. Containers of plain data (`list`, `tuple`, `dict`, `set`) are returned only when `allow_objects=True` is passed. Lambdas, classes, instances of user-defined types, modules and generators are no longer returned - they raise a clear `RuntimeError` instead of being serialized. If your code relied on returning lambdas or dynamic classes, restructure the expression to return data. +**Advisory**: [GHSA-2565-87hp-2588](https://github.com/Infinitode/CodeSafe/security/advisories/GHSA-2565-87hp-2588). Reported by **Juan Lucas Armendares** of **Sunplace Solutions** - thank you for finding and reporting this. + ### Second sandbox-escape issue fixed in v0.0.6 **Versions 0.0.3 through 0.0.5, when `safe_eval()` is called with `allow_attributes=True` (not the default), allowed dunder attributes to be read indirectly through string arguments that the AST validator never inspects.** @@ -128,6 +130,7 @@ python -m unittest test.py test_poc_vulnerability.py -v * **Changed**: The result transport is a `multiprocessing.Pipe` drained by a reader thread instead of a `Queue`. A result larger than the OS pipe buffer can no longer deadlock the parent, and the timing of `EvaluationTimeoutError` is tighter. * **Changed**: The `cloudpickle` dependency was removed - CodeSafe no longer imports pickle on the evaluation path at all. * Added regression tests for every item above (see [Vulnerability & Security Testing](#vulnerability--security-testing-test_poc_vulnerabilitypy)). +* **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). ### Changelog v0.0.6: diff --git a/SECURITY.md b/SECURITY.md index 5488c43..b66dea3 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -45,7 +45,7 @@ Only the latest release receives fixes. Please upgrade rather than report issues | :--- | :--- | :--- | :--- | | `safe_eval` sandbox escape via indirect subscript call | CVE-2026-133467 · [GHSA-7gp8-3j6q-v4h8](https://github.com/Infinitode/CodeSafe/security/advisories/GHSA-7gp8-3j6q-v4h8) | 0.0.1 - 0.0.4 | 0.0.5 | | `safe_eval` sandbox escape via dunder attribute string-argument (`allow_attributes=True`) | [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 | -| Remote code execution in the calling process via unsafe deserialization of the `safe_eval()` result | GHSA to be assigned · CVE pending | 0.0.6 | 0.0.7 | +| 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 | See https://github.com/Infinitode/CodeSafe/security/advisories for the canonical list.