ballcat-projects/ballcat-codegen · Security
ballcat-codegen template engine remote code execution injection
- GHSA ID
- GHSA-fv3m-xhqw-9m79
- CVE ID
- CVE-2022-24881
- Severity
- high
- Published
- Updated
- CVSS
- 8.8 · CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- CVSS v3
- 8.8 · CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
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.
CWEs
- CWE-20 · Improper Input Validation
- CWE-78 · Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
References
- https://github.com/ballcat-projects/ballcat-codegen/security/advisories/GHSA-fv3m-xhqw-9m79 ↗
- https://nvd.nist.gov/vuln/detail/CVE-2022-24881 ↗
- https://github.com/ballcat-projects/ballcat-codegen/issues/5 ↗
- https://github.com/ballcat-projects/ballcat-codegen/commit/84a7cb38daf0295b93aba21d562ec627e4eb463b ↗
- https://github.com/advisories/GHSA-fv3m-xhqw-9m79 ↗