VAITP Dataset

← Back to the dataset

CVE-2026-54569

Unauthenticated RCE via unsafe eval in SENAITE.CORE JSON API endpoints.

  • CVSS 9.8
  • 95
  • Authentication, Authorization, and Session Management
  • Remote

SENAITE.CORE is the core framework for the SENAITE laboratory information management system. From 2.0.0 to 2.6.0, the SENAITE.CORE JSON API permits unauthenticated remote code execution through a two-request chain involving missing authorization and unsafe evaluation. 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 before resolving attacker-selected objects. In src/bika/lims/jsonapi/init.py, set_fields_from_request passes raw request values for RecordsField and RecordField instances to eval() before field mutator write-permission checks execute. An anonymous attacker can discover the bika_setup object identifier through @@uuid, send a value such as RejectionReasons to /@@API/update, and execute arbitrary Python in the Zope worker before a later mutation failure rolls back ZODB changes. The same unsafe evaluation pattern is present in src/senaite/core/browser/fields/record.py and src/senaite/core/browser/fields/records.py. Successful exploitation can expose or modify laboratory data, files, and accounts and can disrupt the service.

CWE
95
CVSS base score
9.8
Published
2026-08-26
OWASP
A03 Injection
Orthogonal defect classification
Checking
Code defect classification
Missing Check
Category
Authentication, Authorization, and Session Management
Subcategory
Privilege Escalation
Accessibility scope
Remote
Impact
Arbitrary Code Execution
Affected component
SENAITE.CORE
Fixed by upgrading
Yes

Solution

Upgrade SENAITE.CORE to version 2.6.1 or newer, where the unauthorized JSON‑API code execution vulnerability is patched.

Vulnerable code sample

from senaite.core.browser.fields.record import RecordField

def set_fields_from_request(record, request):
    """
    Populate a RecordField from raw request data.
    """
    for name, field in record._fields.items():
        if isinstance(field, RecordField):
            # VULNERABLE: unsafe eval of client‑supplied data
            raw = request.get(name)
            if raw is not None:
                value = eval(raw)  # executes attacker‑controlled code
                field.set(value)

Patched code sample

from senaite.core.browser.fields.record import RecordField
import ast

def set_fields_from_request(record, request):
    """
    Populate a RecordField from raw request data.
    """
    for name, field in record._fields.items():
        if isinstance(field, RecordField):
            # FIX: use safe literal evaluation instead of eval
            raw = request.get(name)
            if raw is not None:
                try:
                    value = ast.literal_eval(raw)  # only safe literals are allowed
                except (ValueError, SyntaxError):
                    continue
                field.set(value)

Payload

__VAITP_MODEL_REFUSED__

Cite this entry

@misc{vaitp:cve202654569,
  title        = {{Unauthenticated RCE via unsafe eval in SENAITE.CORE JSON API endpoints.}},
  author       = {Bogaerts, Fr\'ed\'eric and Ivaki, Naghmeh and Fonseca, Jos\'e},
  year         = {2026},
  note         = {VAITP Python Vulnerability Dataset, entry CVE-2026-54569},
  howpublished = {\url{https://netpack.pt/vaitp/vulnerability/CVE-2026-54569/}}
}
Introducing the "VAITP dataset": a specialized repository of Python vulnerabilities and patches, meticulously compiled for the use of the security research community. As Python's prominence grows, understanding and addressing potential security vulnerabilities become crucial. Crafted by and for the cybersecurity community, this dataset offers a valuable resource for researchers, analysts, and developers to analyze and mitigate the security risks associated with Python. Through the comprehensive exploration of vulnerabilities and corresponding patches, the VAITP dataset fosters a safer and more resilient Python ecosystem, encouraging collaborative advancements in programming security.

The supreme art of war is to subdue the enemy without fighting.

Sun Tzu – “The Art of War”

:: Shaping the future through research and ingenuity ::