{"schema_version":"1.9.0","id":"GHSA-fv3m-xhqw-9m79","published":"2022-04-27T21:05:15Z","modified":"2023-11-08T04:08:39.417859Z","aliases":["CVE-2022-24881"],"summary":"ballcat-codegen template engine remote code execution injection","details":"### 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.","affected":[{"package":{"name":"com.hccake:ballcat-codegen","ecosystem":"Maven","purl":"pkg:maven/com.hccake/ballcat-codegen"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.0.0.beta.2"}]}],"versions":["0.0.1"],"database_specific":{"last_known_affected_version_range":"<= 1.0.0.beta.1","source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/04/GHSA-fv3m-xhqw-9m79/GHSA-fv3m-xhqw-9m79.json"}}],"references":[{"type":"WEB","url":"https://github.com/ballcat-projects/ballcat-codegen/security/advisories/GHSA-fv3m-xhqw-9m79"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-24881"},{"type":"WEB","url":"https://github.com/ballcat-projects/ballcat-codegen/issues/5"},{"type":"WEB","url":"https://github.com/ballcat-projects/ballcat-codegen/commit/84a7cb38daf0295b93aba21d562ec627e4eb463b"},{"type":"PACKAGE","url":"https://github.com/ballcat-projects/ballcat-codegen"}],"database_specific":{"cwe_ids":["CWE-20","CWE-78"],"github_reviewed":true,"github_reviewed_at":"2022-04-27T21:05:15Z","nvd_published_at":"2022-04-26T16:15:00Z","severity":"HIGH"},"severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"}]}