{"id":"GHSA-fv3m-xhqw-9m79","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 \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.","aliases":["CVE-2022-24881"],"modified":"2023-11-01T04:58:11.631780Z","published":"2022-04-27T21:05:15Z","database_specific":{"severity":"HIGH","github_reviewed":true,"github_reviewed_at":"2022-04-27T21:05:15Z","nvd_published_at":"2022-04-26T16:15:00Z","cwe_ids":["CWE-20","CWE-78"]},"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"}],"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":"\u003c= 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"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"}]}