{"id":"CVE-2024-46076","details":"RuoYi v4.7.9 and before has a security flaw that allows escaping from comments within the code generation feature, enabling the injection of malicious code.","modified":"2026-07-15T01:49:13.393611893Z","published":"2024-10-07T00:00:00Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/46xxx/CVE-2024-46076.json","cna_assigner":"mitre"},"references":[{"type":"WEB","url":"https://gist.github.com/kkll5875/f237f200bae6db6b47eea3236d82ad0d"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/46xxx/CVE-2024-46076.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-46076"},{"type":"PACKAGE","url":"https://github.com/yangzongzhuan/RuoYi"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/yangzongzhuan/ruoyi","events":[{"introduced":"0"},{"last_affected":"4f5bf990bf5663b729ea5b14d13e14adb3d26d5a"}],"database_specific":{"extracted_events":[{"introduced":"0"},{"last_affected":"4.7.9"}],"source":"CPE_RANGE","cpe":"cpe:2.3:a:ruoyi:ruoyi:*:*:*:*:*:*:*:*"}}],"versions":["v4.7.9","v4.7.8","v4.7.7","v4.7.6","v4.7.5","v4.7.4","v4.7.3","v4.7.2","v4.7.1","v4.7.0","v4.6.2","v4.6.1","v4.6.0","v4.5.1","v4.5.0","v4.4","v4.3.1","v4.3","v4.2","v4.1","v4.0","v3.4","v3.3","v3.2","v3.1","v2.4","v2.3","v2.2"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-46076.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}