8.8high
Command Injection in Ballcat Codegen
- Severity
- 8.8high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 3.20% (higher than 88% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-fv3m-xhqw-9m79
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| ballcat-projects ballcat-codegen | < 1.0.0.beta.2 | CVE List |
| com.hccake:ballcat-codegen (Maven) | before 1.0.0.beta.2 | GitHub Advisory Database |
| ballcat codegen | before 1.0.0 | NVD |
All scores
| GitHub_M | 8.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 8.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 7.5high CVSS:2.0 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Classification
What each source says
CVE List
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.
GitHub Advisory Database
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.
NVD (es)
Ballcat Codegen proporciona la función de edición de código en línea para generar plantillas. En versiones anteriores a 1.0.0.beta.2, los atacantes pueden implementar una ejecución de código remota mediante una inyección de código malicioso del motor de plantillas. Esto sucede porque son introducidas plantillas Velocity y freemarker pero no es realizada la verificación de la entrada. El fallo ha sido rectificado en la versión 1.0.0.beta.2
References
| https://github.com/ballcat-projects/ballcat-codegen/security/advisories/GHSA-fv3m-xhqw-9m79 | exploit, patch, third-party-advisory, web | |
| https://github.com/ballcat-projects/ballcat-codegen/issues/5 | issue-tracking, patch, third-party-advisory, web | |
| https://github.com/ballcat-projects/ballcat-codegen/commit/84a7cb38daf0295b93aba21d562ec627e4eb463b | patch, third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2022-24881 | advisory | |
| https://github.com/ballcat-projects/ballcat-codegen | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2022-24881 changed 2025-04-22 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-fv3m-xhqw-9m79 changed 2023-11-08 | CC-BY-4.0 |
| NVD | CVE-2022-24881 changed 2026-06-17 | Public domain |