# CVE-2024-46076: RuoYi v4.7.9 and before has a security flaw that allows escaping from comments within the code generation feature, enabling the injection o…

- Severity: Critical 9.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.51%, higher than 44% of CVEs (2026-12-01)
- Published: 2024-10-07T00:00:00.000Z
- Modified: 2026-06-17T07:55:09.207Z
- Weaknesses: CWE-94
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: mitre

## Description

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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- ruoyi ruoyi: up to 4.7.9

## References

- <https://github.com/yangzongzhuan/RuoYi> (product)
- <https://gist.github.com/kkll5875/f237f200bae6db6b47eea3236d82ad0d> (third-party-advisory)

## Sources

- CVE List: [CVE-2024-46076](https://www.cve.org/CVERecord?id=CVE-2024-46076), CVE Terms of Use, modified 2024-10-07
- NVD: [CVE-2024-46076](https://nvd.nist.gov/vuln/detail/CVE-2024-46076), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-46076 · Whole record: https://cve.day/CVE-2024-46076.json · Rebuilt by cve.day 2026-11-25T22:58:46.134Z
