Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ 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.
**Advisory**: [GHSA-2565-87hp-2588](https://github.com/Infinitode/CodeSafe/security/advisories/GHSA-2565-87hp-2588). Reported by **Juan Lucas Armendares** of **[Sunplace Solutions](https://github.com/sunplacesolutions)** ([@sunplacesolutions](https://github.com/sunplacesolutions)) - thank you for finding and reporting this.

### Second sandbox-escape issue fixed in v0.0.6

Expand Down Expand Up @@ -143,7 +143,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).
* **Credit**: The critical result-deserialization issue above was reported by **Juan Lucas Armendares** of **[Sunplace Solutions](https://github.com/sunplacesolutions)** ([@sunplacesolutions](https://github.com/sunplacesolutions)) - many thanks. See [GHSA-2565-87hp-2588](https://github.com/Infinitode/CodeSafe/security/advisories/GHSA-2565-87hp-2588).
* **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).

### Changelog v0.0.6:
Expand Down
Loading