CVE-2024-35374
CRITICAL 9.8CVSS 3.1Mocodo vulnerable to SQL injection in `/web/generate.php`
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 commands and potentially command injection, leading to remote code execution (RCE) under certain conditions.
- Published
- 24 May 2024
- Last modified
- 16 Nov 2026
- Assigned by
- cve@mitre.org
- NVD status
- Analyzed
- Weakness
- CWE-77CWE-89
- Also known as
- GHSA-j6cv-98jx-mrwrPYSEC-2026-426
- Sources
- NVDJSONOSV GHSA-j6cv-98jx-mrwrJSONOSV PYSEC-2026-426JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | PyPA | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | mocodo | mocodo_onlinecpe:2.3:a:mocodo:mocodo_online:*:*:*:*:*:*:*:* |
<= 4.2.6 | |
| OSV | PyPI | mocodo | < 4.2.7 | 4.2.7 |
References
- https://chocapikk.com/posts/2024/mocodo-vulnerabilities/ · Exploit, Third Party Advisory, WEB
- https://github.com/laowantong/mocodo/blob/11ca879060a68e06844058cd969c6379214cc2a8/web/generate.php#L104-L158 · Product, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-35374 · ADVISORY
- https://github.com/laowantong/mocodo/commit/f9368df28518b6c4a92fd207c260f1978ec34d6e · WEB
- https://github.com/laowantong/mocodo · PACKAGE
- https://github.com/pypa/advisory-database/tree/main/vulns/mocodo/PYSEC-2026-426.yaml · WEB
- https://pypi.org/project/mocodo · WEB, PACKAGE
- https://github.com/advisories/GHSA-j6cv-98jx-mrwr · ADVISORY
History
- 25 Nov 2026 20:55 UTC · NVD: first stored (published 24 May 2024)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 29 Jun 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 28 May 2024)