CVE-2022-24881Ballcat Codegen
Critical 9.8 No auth needed
Follow: this CVE · Ballcat · Ballcat Codegen We alert you by email or Slack (account required).
- Priority
- 74
- CVSS 3.1
- 9.8
- EPSS
- 2.9% probability of exploitation in 30 days · percentile 87
- Auth required
- No
- Published
- Apr 26, 2022
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: no · Technical impact: total
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for Codegen.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Maven | com.hccake:ballcat-codegen |
< 1.0.0.beta.2 |
1.0.0.beta.2 |
— |
Per OSV / GitHub Advisories (GHSA-fv3m-xhqw-9m79). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| ballcat | codegen | < 1.0.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch Third Party Advisory
- github.com Issue Tracking Patch Third Party Advisory
- github.com Exploit Patch Third Party Advisory