Command Injection in Ballcat Codegen
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub. Impact type from CWE-94.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| ballcat-projects | ballcat-codegen | before 1.0.0.beta.2 | 1.0.0.beta.2 | Patch available | CNA |
| — | com.hccake:ballcat-codegen (Maven) | before 1.0.0.beta.2 | 1.0.0.beta.2 | Patch available | GHSA-fv3m-xhqw-9m79 |
- ballcat-codegen Vendorballcat-projects Affected before 1.0.0.beta.2 Fixed in 1.0.0.beta.2 Patch available CNA
- com.hccake:ballcat-codegen (Maven) Vendor— Affected before 1.0.0.beta.2 Fixed in 1.0.0.beta.2 Patch available GHSA-fv3m-xhqw-9m79
Remediation
- Fix · CNA ballcat-codegen (ballcat-projects) Fixed in 1.0.0.beta.2
- Fix · GHSA-fv3m-xhqw-9m79 com.hccake:ballcat-codegen (Maven) Fixed in 1.0.0.beta.2 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2022-24881
- 2026-10-03 Alias added: GHSA-fv3m-xhqw-9m79
References
Exploit 1
Patch 2
Sources
- CVE-2022-24881 · CVE Program
- CVE-2022-24881 · NVD
- FIRST EPSS
- GHSA-fv3m-xhqw-9m79 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences