{"answers":{"affected":"It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-57521 exists.","fix":"No fix has been published for CVE-2024-57521 yet. Limit exposure of the affected software until one is available.","what":"CVE-2024-57521 is a critical SQL injection vulnerability in Ruoyi Ruoyi, published on 23 Dec 2025. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-57521 and fix it if it is affected.\n\nWhat it is: CVE-2024-57521 is a critical SQL injection vulnerability in Ruoyi Ruoyi, published on 23 Dec 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-57521 exists.\n\nAffected product: Ruoyi Ruoyi. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-57521/ (Markdown: https://insights.sbomify.com/CVE-2024-57521/index.md)","id":"CVE-2024-57521","markdown":"https://insights.sbomify.com/CVE-2024-57521/index.md","name":"CVE-2024-57521","record":{"aliases":["GHSA-r6g5-8v9h-7ww8"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["code_execution","data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"RuoYi admin framework","requires_auth":"none","summary":"Remote attackers can execute arbitrary code via SQL injection in the createTable function of the RuoYi admin framework.","user_interaction":"not_required","vuln_class":"sql_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"ruoyi","vendor":"ruoyi"}],"cvss":{"score":10,"severity":"critical","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command"}],"description":"SQL Injection vulnerability in RuoYi v.4.7.9 and before allows a remote attacker to execute arbitrary code via the createTable function in SqlUtil.java.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":"2024-12-18","github_poc":2,"max_poc_stars":0,"metasploit":0,"nuclei":0,"refs":[{"date":"2024-12-18T16:03:59Z","kind":"github_poc","ref":"https://github.com/mrlihd/CVE-2024-57521-SQL-Injection-PoC","stars":0,"title":null},{"date":"2026-09-19T07:10:34Z","kind":"github_poc","ref":"https://github.com/xs2024770/CVE-2024-57521-RuoYi-SQLi","stars":0,"title":"Description: CVE-2024-57521 RuoYi SQL 注入漏洞代码审计、%0b 绕过与自动化 PoC"}],"tier":"weaponised"},"has_fix":false,"headline":"SQL injection in n/a","id":"CVE-2024-57521","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":"ruoyi:ruoyi","products":["ruoyi:ruoyi"],"type":"sql_injection","year":"2024"},"n_packages":0,"n_references":4,"next":{"headline":"Cross-site scripting in n/a","id":"CVE-2024-57522"},"packages":[],"prev":{"headline":"Path traversal in n/a","id":"CVE-2024-57520"},"products":["n/a"],"published":"2025-12-23","related":[{"cvss_score":9.8,"headline":"Privilege escalation in n/a","id":"CVE-2025-28402","kev_date_added":null,"published":"2025-04-07"},{"cvss_score":9.8,"headline":"Privilege escalation in n/a","id":"CVE-2025-28405","kev_date_added":null,"published":"2025-04-07"},{"cvss_score":9.8,"headline":"Privilege escalation in n/a","id":"CVE-2025-28406","kev_date_added":null,"published":"2025-04-07"},{"cvss_score":9.8,"headline":"Missing authorization in n/a","id":"CVE-2025-28408","kev_date_added":null,"published":"2025-04-07"},{"cvss_score":9.8,"headline":"Missing authorization in n/a","id":"CVE-2025-28410","kev_date_added":null,"published":"2025-04-07"},{"cvss_score":9.8,"headline":"Privilege escalation in n/a","id":"CVE-2025-28411","kev_date_added":null,"published":"2025-04-07"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-12-23","vendors":["n/a"]},"summary":"Remote attackers can execute arbitrary code via SQL injection in the createTable function of the RuoYi admin framework.","url":"https://insights.sbomify.com/CVE-2024-57521/"}