CVE-2024-35374 json
Mocodo vulnerable to SQL injection in `/web/generate.php`
published 2024-05-24 2 y ago modified 2026-07-13 3 mo ago also GHSA-j6cv-98jx-mrwr , PYSEC-2026-426 , EUVD-2024-1660
- cvss
- 9.8
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 2.8%
- EPSS 2.8% chance of exploitation in 30 days, percentile 86%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
CISA SSVC
- Exploitation
- none
- Automatable
- yes
- Technical impact
- total
- Assessed
- 2 y ago
Exploit prediction
2.77% chance of exploitation in the next 30 days, higher than 86% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- chocapikk.com https://chocapikk.com/posts/2024/mocodo-vulnerabilities/ referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CISA ADP | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| CNA | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | mocodo | <4.2.7 |
4.2.7 |
Affected products
- mocodo mocodo_online
Classification
References
-
github.com
/laowantong/mocodo/commit/f9368df28518b6c4a92fd207c260f1978ec34d6e
web
-
chocapikk.com
/posts/2024/mocodo-vulnerabilities/
exploit, third-party-advisory
-
github.com
/laowantong/mocodo/blob/11ca879060a68e06844058cd969c6379214cc2a8/web/generate.php#L104-L158
web, product
-
nvd.nist.gov
/vuln/detail/CVE-2024-35374
advisory
-
chocapikk.com
/posts/2024/mocodo-vulnerabilities
web
-
github.com
/laowantong/mocodo
package
-
pypi.org
/project/mocodo
package
-
github.com
/advisories/GHSA-j6cv-98jx-mrwr
advisory
Sources
- CVE List CVE-2024-35374
- GitHub Advisory GHSA-j6cv-98jx-mrwr
- NVD CVE-2024-35374
- OSV PYSEC-2026-426
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.