CVE-2024-35374: Mocodo Vulnerable to SQL Injection
Affects mocodoSource GCVE Database
Not known to be exploited · CVSS 9.8 Critical : upgrade to 4.2.7 as a priority.
Data as of 16 Nov 2026, 16:50 UTC
- Patch
- Available – fixed in 4.2.7
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 28 May 2024
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 15 Nov 2026.
What to do
Upgrade mocodo to 4.2.7.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| PyPImocodo | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Apply the official patch by upgrading Mocodo Online to version 4.2.7 or later, which fixes the SQL injection vulnerability. Since a patch is available, remediation should focus on timely updating to the fixed version.
Description
Mocodo Online versions 4.2.6 and earlier contain a critical SQL injection vulnerability in the `/web/generate.php` endpoint via the `sql_case` input parameter. This flaw allows remote attackers to execute arbitrary SQL commands and potentially escalate to remote code execution under certain conditions. The vulnerability is fixed in version 4.2.7.
References
- nvd.nist.gov/vuln/detail/CVE-2024-35374 (opens in a new tab)
- github.com/laowantong/mocodo/commit/f9368df28518b6c4a92fd207c260f1978ec34d6e (opens in a new tab)
- chocapikk.com/posts/2024/mocodo-vulnerabilities (opens in a new tab)
- github.com/laowantong/mocodo (opens in a new tab)
- github.com/laowantong/mocodo/blob/11ca879060a68e06844058cd969c6379214cc2a8/web/generate.php (opens in a new tab)
- github.com/pypa/advisory-database/tree/main/vulns/mocodo/PYSEC-2026-426.yaml (opens in a new tab)
- pypi.org/project/mocodo (opens in a new tab)