{"id":"CVE-2024-35374","aliases":["CVE-2024-35374","GHSA-j6cv-98jx-mrwr","PYSEC-2026-426"],"related":[],"kind":"vulnerability","state":"published","title":"Mocodo vulnerable to SQL injection in `/web/generate.php`","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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Mocodo Mocodo Online 4.2.6 y versiones anteriores no desinfecta adecuadamente el campo de entrada sql_case en /web/generate.php, lo que permite a atacantes remotos ejecutar comandos SQL arbitrarios y potencialmente inyección de comandos, lo que lleva a la ejecución remota de código (RCE) bajo ciertas condiciones.","source":"nvd"}],"published":"2024-05-24T20:29:35.384Z","modified":"2026-11-16T15:45:10.631Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":["CWE-77","CWE-89"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"version":"4.2.6","status":"affected"}],"vendor":"mocodo","product":"mocodo_online","cpe":"cpe:2.3:a:mocodo:mocodo_online:4.2.6:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"4.2.7"}],"ecosystem":"PyPI","package":"mocodo","purl":"pkg:pypi/mocodo","source":"ghsa"},{"ranges":[{"status":"affected","lastAffected":"4.2.6"}],"vendor":"mocodo","product":"mocodo_online","cpe":"cpe:2.3:a:mocodo:mocodo_online:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"4.2.7"}],"ecosystem":"PyPI","package":"mocodo","purl":"pkg:pypi/mocodo","source":"pysec"}],"references":[{"url":"https://github.com/laowantong/mocodo/blob/11ca879060a68e06844058cd969c6379214cc2a8/web/generate.php#L104-L158","tags":["product","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://chocapikk.com/posts/2024/mocodo-vulnerabilities/","tags":["exploit","third-party-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-35374","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/laowantong/mocodo/commit/f9368df28518b6c4a92fd207c260f1978ec34d6e","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://chocapikk.com/posts/2024/mocodo-vulnerabilities","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/laowantong/mocodo","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/mocodo/PYSEC-2026-426.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://pypi.org/project/mocodo","tags":["package","web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/advisories/GHSA-j6cv-98jx-mrwr","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"mitre","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"total","date":"2024-08-20T14:39:50.853Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-35374","url":"https://www.cve.org/CVERecord?id=CVE-2024-35374","licence":"CVE Terms of Use","modified":"2025-02-13T15:58:36.006Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-j6cv-98jx-mrwr","url":"https://github.com/advisories/GHSA-j6cv-98jx-mrwr","licence":"CC-BY-4.0","modified":"2026-11-16T15:45:10.631Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-35374","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-35374","licence":"Public domain","modified":"2026-06-17T07:34:50.340Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-426","url":"https://osv.dev/vulnerability/PYSEC-2026-426","licence":"CC-BY-4.0","modified":"2026-07-13T16:15:28.556Z"}],"updatedAt":"2026-11-25T22:58:40.860Z","epss":{"score":0.02767,"percentile":0.86696,"date":"2026-12-01T12:00:22.000Z"}}