Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. mocodo
  4. ›
  5. CVE-2024-35374

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

May 28, 2024

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.

References

  • chocapikk.com/posts/2024/mocodo-vulnerabilities
  • github.com/advisories/GHSA-j6cv-98jx-mrwr
  • github.com/laowantong/mocodo
  • github.com/laowantong/mocodo/blob/11ca879060a68e06844058cd969c6379214cc2a8/web/generate.php
  • github.com/laowantong/mocodo/commit/f9368df28518b6c4a92fd207c260f1978ec34d6e
  • nvd.nist.gov/vuln/detail/CVE-2024-35374

Code Behaviors & Features

Detect and mitigate CVE-2024-35374 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 4.2.7

Fixed versions

  • 4.2.7

Solution

Upgrade to version 4.2.7 or above.

Impact 9.8 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

Source file

pypi/mocodo/CVE-2024-35374.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:49 +0000.