{"answers":{"affected":"2 open source packages ship an affected version, including org.jeecgframework.boot:jeecg-boot-common. It affects 1 product.","exploited":"There is no known exploitation of CVE-2023-40989 in the wild and no public exploit code.","fix":"Upgrade org.jeecgframework.boot:jeecg-boot-common to 3.6.0 or later.","what":"CVE-2023-40989 is a critical SQL injection vulnerability in Jeecg Jeecg Boot, published on 22 Sep 2023. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2023-40989 and fix it if it is affected.\n\nWhat it is: CVE-2023-40989 is a critical SQL injection vulnerability in Jeecg Jeecg Boot, published on 22 Sep 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2023-40989 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- org.jeecgframework.boot:jeecg-boot-common (Maven): affected all versions; fixed in 3.6.0\n- org.jeecgframework.boot:jeecg-boot-common (Maven): affected all versions; fixed in 3.6.0\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-2023-40989/ (Markdown: https://insights.sbomify.com/CVE-2023-40989/index.md)","id":"CVE-2023-40989","markdown":"https://insights.sbomify.com/CVE-2023-40989/index.md","name":"CVE-2023-40989","record":{"aliases":["GHSA-rwhx-6hx7-pqc8"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["code_execution","data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"JeecgBoot low-code platform","requires_auth":"none","summary":"Remote attackers can execute arbitrary code via SQL injection in the JeecgBoot report component, requiring immediate patching.","user_interaction":"not_required","vuln_class":"sql_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"jeecg_boot","vendor":"jeecg"}],"cvss":{"score":9.8,"severity":"critical","source":"nvd","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/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 vulnerbility in jeecgboot jeecg-boot v 3.0, 3.5.3 that allows a remote attacker to execute arbitrary code via a crafted request to the report/jeecgboot/jmreport/queryFieldBySql component.","ecosystems":["Maven"],"exploits":{"exploitdb":0,"first_seen":"2023-09-20","github_poc":1,"max_poc_stars":0,"metasploit":0,"nuclei":0,"refs":[{"date":"2023-09-20T12:43:23Z","kind":"github_poc","ref":"https://github.com/Zone1-Z/CVE-2023-40989","stars":0,"title":"SQL injection vulnerbility in jeecgboot jeecg-boot v. allows a remote attacker to execute arbitrary code via a crafted request to the report/jeecgboot/jmreport/queryFieldBySql component."}],"tier":"poc_unverified"},"has_fix":true,"headline":"SQL injection in jeecgboot","id":"CVE-2023-40989","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":"jeecg:jeecg_boot","products":["jeecg:jeecg_boot"],"type":"sql_injection","year":"2023"},"n_packages":2,"n_references":1,"next":{"headline":"SQL injection in n/a","id":"CVE-2023-40992"},"packages":[{"ecosystem":"Maven","fixed":["3.6.0"],"introduced":["0"],"last_affected":[],"package":"org.jeecgframework.boot:jeecg-boot-common","purl":null,"source":"GHSA-rwhx-6hx7-pqc8"},{"ecosystem":"Maven","fixed":["3.6.0"],"introduced":["0"],"last_affected":[],"package":"org.jeecgframework.boot:jeecg-boot-common","purl":"pkg:maven/org.jeecgframework.boot/jeecg-boot-common","source":"GHSA-rwhx-6hx7-pqc8"}],"prev":{"headline":"Cross-site scripting in n/a","id":"CVE-2023-40986"},"products":["n/a"],"published":"2023-09-22","related":[{"cvss_score":9.8,"headline":"Code injection in n/a","id":"CVE-2024-40489","kev_date_added":null,"published":"2026-04-01"},{"cvss_score":9.8,"headline":"Command injection in n/a","id":"CVE-2024-43028","kev_date_added":null,"published":"2026-04-01"},{"cvss_score":9.8,"headline":"JeecgBoot SQL Injection vulnerability","id":"CVE-2024-48307","kev_date_added":null,"published":"2024-10-31"},{"cvss_score":9.8,"headline":"Jeecg Boot SQL injection vulnerability","id":"CVE-2023-41542","kev_date_added":null,"published":"2023-12-30"},{"cvss_score":9.8,"headline":"Jeecg Boot SQL Injection","id":"CVE-2023-41543","kev_date_added":null,"published":"2023-12-30"},{"cvss_score":9.8,"headline":"JeecgBoot server-side template injection","id":"CVE-2023-41544","kev_date_added":null,"published":"2023-12-30"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"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":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2024-09-24","vendors":["n/a"]},"summary":"Remote attackers can execute arbitrary code via SQL injection in the JeecgBoot report component, requiring immediate patching.","url":"https://insights.sbomify.com/CVE-2023-40989/"}