{"id":"CVE-2022-24881","aliases":["EUVD-2022-1726","GHSA-fv3m-xhqw-9m79"],"status":"published","title":"Command Injection in Ballcat Codegen","description":"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.","severity":{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-12","score":0.03197,"percentile":0.88301,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-20","CWE-78","CWE-94"],"published":"2022-04-26T16:06:21Z","modified":"2026-10-28T10:25:51Z","fixes":[{"ecosystem":"Maven","package":"com.hccake:ballcat-codegen","fixed_in":["1.0.0.beta.2"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"Maven","package":"com.hccake:ballcat-codegen","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"1.0.0.beta.1"},{"fixed":"1.0.0.beta.2"}]}]},{"source":"osv","ecosystem":"Maven","package":"com.hccake:ballcat-codegen","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.0.0.beta.2"}]}],"versions":["0.0.1"]}],"products":[{"vendor":"ballcat","product":"codegen"},{"vendor":"ballcat-projects","product":"ballcat-codegen"}],"references":[{"url":"https://github.com/ballcat-projects/ballcat-codegen/security/advisories/GHSA-fv3m-xhqw-9m79","tags":["x_refsource_CONFIRM","x_transferred","Exploit","Patch","Third Party Advisory","advisory","web"]},{"url":"https://github.com/ballcat-projects/ballcat-codegen/issues/5","tags":["x_refsource_MISC","x_transferred","Issue Tracking","Patch","Third Party Advisory","report","web"]},{"url":"https://github.com/ballcat-projects/ballcat-codegen/commit/84a7cb38daf0295b93aba21d562ec627e4eb463b","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-24881","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-fv3m-xhqw-9m79"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/24xxx/CVE-2022-24881.json","tags":["advisory"]},{"url":"https://github.com/ballcat-projects/ballcat-codegen","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2022-24881","title":"Command Injection in Ballcat Codegen","description":"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.","status":"published","published":"2022-04-26T16:06:21Z","modified":"2025-04-22T18:14:01.853Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"cna"}],"cwes":["CWE-94"],"updated_at":"2026-11-02T14:34:34.576287Z"}],"euvd":[{"id":"EUVD-2022-1726","description":"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.","status":"published","published":"2022-04-26T16:06:21Z","modified":"2025-04-22T18:14:01Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T20:52:15.026784Z"}],"ghsa":[{"id":"GHSA-fv3m-xhqw-9m79","title":"ballcat-codegen template engine remote code execution injection","description":"### Impact\nBallcat Codegen provides the function of online editing code to generate templates.\nIn version \u003c 1.0.0.beta.2, since Velocity and freemarker templates are introduced but input verification is not done, attackers can implement remote code execution through malicious code injection of the template engine.\n\n### Patches\nThe fault is rectified and needs to be upgraded to the latest version.","status":"published","published":"2022-04-27T21:05:15Z","modified":"2023-01-30T05:00:28Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-20","CWE-78"],"updated_at":"2026-11-02T14:36:26.667347Z"}],"nvd":[{"id":"CVE-2022-24881","description":"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.","status":"published","published":"2022-04-26T16:15:47.737Z","modified":"2026-06-17T04:32:43.277Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"secondary"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary"},{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","level":"high","assessor":"primary"}],"cwes":["CWE-94","CWE-20"],"updated_at":"2026-11-02T14:07:18.660414Z"}],"osv":[{"id":"CVE-2022-24881","title":"Command Injection in Ballcat Codegen","description":"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.","status":"published","published":"2022-04-26T16:06:21Z","modified":"2026-10-28T10:25:51.133829349Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-94"],"updated_at":"2026-11-02T15:44:24.428403Z"},{"id":"GHSA-fv3m-xhqw-9m79","title":"ballcat-codegen template engine remote code execution injection","description":"### Impact\nBallcat Codegen provides the function of online editing code to generate templates.\nIn version \u003c 1.0.0.beta.2, since Velocity and freemarker templates are introduced but input verification is not done, attackers can implement remote code execution through malicious code injection of the template engine.\n\n### Patches\nThe fault is rectified and needs to be upgraded to the latest version.","status":"published","published":"2022-04-27T21:05:15Z","modified":"2023-11-08T04:08:39.417859Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-20","CWE-78"],"updated_at":"2026-11-02T15:46:46.760785Z"}]}}
