Mocodo 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 SQL commands and potentially command injection, leading to remote code execution (RCE) under certain conditions.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Python (PyPI) | mocodo | < 4.2.7 | 4.2.7 |
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-35374
- https://github.com/laowantong/mocodo/commit/f9368df28518b6c4a92fd207c260f1978ec34d6e
- https://chocapikk.com/posts/2024/mocodo-vulnerabilities
- https://github.com/laowantong/mocodo
- https://github.com/laowantong/mocodo/blob/11ca879060a68e06844058cd969c6379214cc2a8/web/generate.php#L104-L158
- https://pypi.org/project/mocodo
- https://github.com/advisories/GHSA-j6cv-98jx-mrwr
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H- Weakness (CWE)
CWE-89- Platform
- Python (PyPI)
- Package
mocodo- Disclosed
- 28.05.2024
- Updated
- 11.10.2026 14:17
Sources and licenses
OSV / GitHub Advisory Database - GHSA-j6cv-98jx-mrwr - CC BY 4.0
OSV / GitHub Advisory Database - PYSEC-2026-426 - PyPA Advisory Database; CC BY 4.0
Vulnerability history: mocodo
All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.
This is the only known vulnerability of this package.
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.