{"cve":"CVE-2022-24881","nvd":{"published":"2022-04-26T16:15:47.737","modified":"2026-06-17T04:32:43.277","status":"Modified","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.","cvss_v4":null,"cvss_v3":{"version":"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},"cwes":["CWE-20","CWE-94"],"references":["https://github.com/ballcat-projects/ballcat-codegen/commit/84a7cb38daf0295b93aba21d562ec627e4eb463b","https://github.com/ballcat-projects/ballcat-codegen/issues/5","https://github.com/ballcat-projects/ballcat-codegen/security/advisories/GHSA-fv3m-xhqw-9m79","https://github.com/ballcat-projects/ballcat-codegen/commit/84a7cb38daf0295b93aba21d562ec627e4eb463b","https://github.com/ballcat-projects/ballcat-codegen/issues/5"],"products":["ballcat:codegen"],"source":"nvd","synced_at":"2026-10-19T21:30:03.577988018+00:00"},"epss":{"cve":"CVE-2022-24881","score":0.03197,"percentile":0.88122,"date":"2026-11-01"},"kev":null,"osv":[{"id":"GHSA-fv3m-xhqw-9m79","url":"https://osv.dev/vulnerability/GHSA-fv3m-xhqw-9m79","summary":"ballcat-codegen template engine remote code execution injection","modified":"2023-11-08T04:08:39.417859Z","packages":[{"ecosystem":"Maven","name":"com.hccake:ballcat-codegen","purl":"pkg:maven/com.hccake/ballcat-codegen","ranges":["<1.0.0.beta.2"],"fixed":["1.0.0.beta.2"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}