An unauthenticated remote code execution issue exists in the SENAITE JSON API due to a chain of missing authorization and unsafe evaluation of input. The state-changing routes in `src/bika/lims/jsonapi/update.py`, including `update`, `update many`, `remove`, `doActionFor`, `doActionFor many`, and `getusers`, do not enforce the `senaite.core: Access JSON API` permission. Additionally, the `set fields from request` function in `src/bika/lims/jsonapi/init.py` passes raw request values for `RecordsField` and `RecordField` instances to the `eval()` function before write-permission checks are performed.
An anonymous attacker can discover the `bika setup` object identifier via the `@@uuid` view and send a malicious payload to the `/@@API/update` endpoint. This allows the execution of arbitrary Python code within the Zope worker process. The same unsafe evaluation pattern is also present in `src/senaite/core/browser/fields/record.py` and `src/senaite/core/browser/fields/records.py`. Successful exploitation can lead to the exposure or modification of laboratory data, files, and accounts, or complete service disruption.