---
title: "CVE-2024-35374: Mocodo vulnerable to SQL injection in `/web/generate.php`"
url: https://erroneo.us/security/cve/CVE-2024-35374/
description: "CVE-2024-35374 (mocodo (PyPI)): Mocodo Mocodo Online 4.2.6 and below does not properly sanitize the sqlcase input field in /web/generate.php, allowing…"
type: vulnerability-record
section: "Security Digest"
date_published: 2024-05-24
date_modified: 2025-02-13
publisher: erroneo.us
author: erroneo.us Security Desk
cve: "CVE-2024-35374"
kev: false
cvss: 9.8
epss: 0.02767
license: All rights reserved. Quote with attribution and a link.
---

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

**Signal:** Critical and remotely reachable. No known exploitation yet, but it is network-reachable without credentials. (Computed from CISA KEV, EPSS and CVSS; not an editorial verdict.)

## Should you act?

- No confirmed exploitation. It is not in CISA’s KEV catalog and CISA’s SSVC assessment records no known exploitation. That can change quickly after a public write-up; re-check if you are affected.
- EPSS 2.8% , percentile 86: FIRST’s model estimates a 2.8% chance of exploitation activity in the next 30 days, higher than 86% of all scored CVEs (elevated). EPSS is a probability, not a verdict.
- Remotely reachable with no login and no user interaction. If the vulnerable service is exposed to the internet, prioritize it.
- Only applies if your dependency tree includes mocodo (PyPI) <= 4.2.6, fixed in 4.2.7 . Check your lockfile, including transitive dependencies.

## What it is

Mocodo Mocodo Online 4.2.6 and below does not properly sanitize the sqlcase 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.

## Affected packages

- PyPI `mocodo` <= 4.2.6 → fixed: 4.2.7

## Affected products (CVE record)

- n/a n/a: see advisory

## Severity

- CISA-ADP CVSS 3.1: 9.8 `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 `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## Exploitation

- CISA KEV: not listed (no confirmed in-the-wild exploitation known to CISA).
- CISA SSVC assessment: exploitation none , automatable yes , technical impact total .
- FIRST EPSS (model of 2026-10-21): 2.77% probability of exploitation activity in the next 30 days; percentile 86.

## Sources

- [GitHub Advisory GHSA-j6cv-98jx-mrwr](https://github.com/advisories/GHSA-j6cv-98jx-mrwr)
- [CVE.org record CVE-2024-35374](https://www.cve.org/CVERecord?id=CVE-2024-35374)
- [NVD entry CVE-2024-35374](https://nvd.nist.gov/vuln/detail/CVE-2024-35374)
- [github.com](https://github.com/laowantong/mocodo/blob/11ca879060a68e06844058cd969c6379214cc2a8/web/generate.php#L104-L158)
- [chocapikk.com](https://chocapikk.com/posts/2024/mocodo-vulnerabilities/)
- [github.com](https://github.com/laowantong/mocodo/commit/f9368df28518b6c4a92fd207c260f1978ec34d6e)

---
Source page: https://erroneo.us/security/cve/CVE-2024-35374/ · Security Digest: https://erroneo.us/security/ · More: https://erroneo.us/llms.txt
