{"id":"CVE-2022-24881","published":"2022-04-26T16:06:21Z","modified":"2025-04-22T18:14:01Z","title":"Command Injection in Ballcat Codegen","vendor":"ballcat-projects","product":"ballcat-codegen","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.02859,"percentile":0.87468,"provenance":"source"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"references":[{"url":"https://github.com/ballcat-projects/ballcat-codegen/security/advisories/GHSA-fv3m-xhqw-9m79","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/ballcat-projects/ballcat-codegen/issues/5","tags":["x_refsource_MISC"]},{"url":"https://github.com/ballcat-projects/ballcat-codegen/commit/84a7cb38daf0295b93aba21d562ec627e4eb463b","tags":["x_refsource_MISC"]}],"priority":{"score":23.7,"factors":[{"name":"EPSS percentile","points":17.49},{"name":"CVSS severity","points":6.16}]},"vendorSlug":"ballcat-projects","affectedVersions":[{"vendor":"ballcat-projects","product":"ballcat-codegen","versions":["< 1.0.0.beta.2"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2025-04-22T15:43:21.948526Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Maven","package":"com.hccake:ballcat-codegen","vulnerableRanges":["<1.0.0.beta.2"],"patched":["1.0.0.beta.2"],"from":["GHSA-fv3m-xhqw-9m79"],"provenance":"source"}],"summary":{"text":"The flaw is a code injection weakness in the template engine of Ballcat Codegen, a product from ballcat-projects whose component provides online code editing for generating templates, where Velocity and FreeMarker templates are processed without input validation. An attacker with low-privileged authenticated access over the network can achieve remote code execution by injecting malicious code into templates, with no user interaction required and no special configuration needed.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:37:44Z"},"euvd":{"id":"EUVD-2022-1726","exploited":false,"provenance":"source"}}