Advisory

PYSEC-2026-426

Also known as: CVE-2024-35374, GHSA-j6cv-98jx-mrwr

Summary

Mocodo vulnerable to SQL injection in /web/generate.php

Details

Mocodo Mocodo Online 4.2.6 and below does not properly sanitize the sql_case input field in /web/generate.php, allowing remote attackers to execute arbitrary SQL commands and potentially command injection, leading to remote code execution (RCE) under certain conditions.

Severity

Critical Basis: CVSS v3 score 9.8, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Dates

Published
2026-06-29 11:50 UTC
Modified
2026-07-13 16:15 UTC

Affected packages and fixes

mocodo

PyPI · All systems

Affected

  • introduced 0, fixed 4.2.7 (ecosystem)

Fixed versions

4.2.7

Fix

  • Fixed version 4.2.7
    pip install --upgrade mocodo==4.2.7

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences