CVE-2022-24881: Ballcat Codegen provides the function of online editing code to generate templates
CVE-2022-24881 is a high-severity flaw (CVSS 8.8) affecting codegen. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
Ballcat Codegen provides the function of online editing code to generate templates. In versions prior to 1.0.0.beta.2, attackers can implement remote code execution through malicious code injection of the template engine. This happens because Velocity and freemarker templates are introduced but input verification is not done. The fault is rectified in version 1.0.0.beta.2.
Why this priority
- High severity
- Public exploit reference
A fixed release or distro patch exists.
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2022-24881?
codegen: upgrade to 1.0.0. Exact commands for each OS are on this page.
Is CVE-2022-24881 being exploited?
CVE-2022-24881 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2022-24881 affect?
CVE-2022-24881 affects codegen. Severity is high (CVSS 8.8). Ballcat Codegen provides the function of online editing code to generate templates. In versions prior to 1.0.0.beta.2, attackers can implement remote code execution through malicious code injection of the template engine. This happens becau
How urgent is CVE-2022-24881?
Priority 58/100. High severity; Public exploit reference