GitHub Advisoryadvisory · Maven
GHSA-fv3m-xhqw-9m79 ballcat-codegen template engine remote code execution injection
HIGH
Official page ↗
- Aliases
- CVE-2022-24881
- Ecosystem
- Maven
- Packages
- com.hccake:ballcat-codegen
- Severity
- High
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Weaknesses
- CWE-20, CWE-78
- Reviewed
- 2022-04-27
Affected packages
• Maven com.hccake:ballcat-codegen: < 1.0.0.beta.2 → fixed in 1.0.0.beta.2
Description
Impact
Ballcat Codegen provides the function of online editing code to generate templates.
In 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.
Patches
The fault is rectified and needs to be upgraded to the latest version.
Related
Alias · CVE (1)
- CVE-2022-24881 Ballcat Codegen provides the function of online editing code to generate templates. vulnerability
References
- https://github.com/ballcat-projects/ballcat-codegen/security/advisories/GHSA-fv3m-xhqw-9m79 web
- https://nvd.nist.gov/vuln/detail/CVE-2022-24881 advisory
- https://github.com/ballcat-projects/ballcat-codegen/issues/5 web
- https://github.com/ballcat-projects/ballcat-codegen/commit/84a7cb38daf0295b93aba21d562ec627e4eb463b web
- https://github.com/ballcat-projects/ballcat-codegen package