{"id":"CVE-2022-24881","aliases":["CVE-2022-24881","GHSA-fv3m-xhqw-9m79"],"related":[],"kind":"vulnerability","state":"published","title":"Command Injection in Ballcat Codegen","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"en","text":"### Impact\nBallcat Codegen provides the function of online editing code to generate templates.\nIn version < 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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Ballcat Codegen proporciona la función de edición de código en línea para generar plantillas. En versiones anteriores a 1.0.0.beta.2, los atacantes pueden implementar una ejecución de código remota mediante una inyección de código malicioso del motor de plantillas. Esto sucede porque son introducidas plantillas Velocity y freemarker pero no es realizada la verificación de la entrada. El fallo ha sido rectificado en la versión 1.0.0.beta.2","source":"nvd"}],"published":"2022-04-26T16:06:21.000Z","modified":"2026-06-17T04:32:43.277Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","score":7.5,"rating":"HIGH"}],"cwes":["CWE-20","CWE-78","CWE-94"],"affected":[{"ranges":[{"version":"< 1.0.0.beta.2","status":"affected"}],"vendor":"ballcat-projects","product":"ballcat-codegen","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.0.0.beta.2"}],"ecosystem":"Maven","package":"com.hccake:ballcat-codegen","purl":"pkg:maven/com.hccake/ballcat-codegen","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"1.0.0"}],"vendor":"ballcat","product":"codegen","cpe":"cpe:2.3:a:ballcat:codegen:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/ballcat-projects/ballcat-codegen/security/advisories/GHSA-fv3m-xhqw-9m79","tags":["exploit","patch","third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/ballcat-projects/ballcat-codegen/issues/5","tags":["issue-tracking","patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/ballcat-projects/ballcat-codegen/commit/84a7cb38daf0295b93aba21d562ec627e4eb463b","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-24881","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/ballcat-projects/ballcat-codegen","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"total","date":"2025-04-22T15:43:21.948Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-24881","url":"https://www.cve.org/CVERecord?id=CVE-2022-24881","licence":"CVE Terms of Use","modified":"2025-04-22T18:14:01.853Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-fv3m-xhqw-9m79","url":"https://github.com/advisories/GHSA-fv3m-xhqw-9m79","licence":"CC-BY-4.0","modified":"2023-11-08T04:08:39.417Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-24881","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-24881","licence":"Public domain","modified":"2026-06-17T04:32:43.277Z"}],"updatedAt":"2026-11-25T22:58:11.247Z","epss":{"score":0.03197,"percentile":0.88455,"date":"2026-12-01T12:00:22.000Z"}}