# CVE-2024-35374: Mocodo vulnerable to SQL injection in `/web/generate.php`

- Severity: Critical 9.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.77%, higher than 86% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-05-24T20:29:35.384Z
- Modified: 2026-11-16T15:45:10.631Z
- Also known as: GHSA-j6cv-98jx-mrwr, PYSEC-2026-426
- Weaknesses: CWE-77, CWE-89
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: mitre

## Description

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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- mocodo mocodo_online: 4.2.6; up to 4.2.6
- mocodo (PyPI): before 4.2.7

## Every score

- CISA-ADP: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://chocapikk.com/posts/2024/mocodo-vulnerabilities/> (exploit, third-party-advisory)
- <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://chocapikk.com/posts/2024/mocodo-vulnerabilities> (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> (package, web)
- <https://github.com/advisories/GHSA-j6cv-98jx-mrwr> (advisory)

## Sources

- CVE List: [CVE-2024-35374](https://www.cve.org/CVERecord?id=CVE-2024-35374), CVE Terms of Use, modified 2025-02-13
- GitHub Advisory Database: [GHSA-j6cv-98jx-mrwr](https://github.com/advisories/GHSA-j6cv-98jx-mrwr), CC-BY-4.0, modified 2026-11-16
- NVD: [CVE-2024-35374](https://nvd.nist.gov/vuln/detail/CVE-2024-35374), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-426](https://osv.dev/vulnerability/PYSEC-2026-426), CC-BY-4.0, modified 2026-07-13

---

Page: https://cve.day/CVE-2024-35374 · Whole record: https://cve.day/CVE-2024-35374.json · Rebuilt by cve.day 2026-11-25T22:58:40.860Z
