Live threats

All CVEs / Ballcat

CVE-2022-24881Ballcat Codegen

Critical 9.8 No auth needed

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
Weakness (CWE)
CWE-94, CWE-20
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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Codegen.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
ballcatcodegen< 1.0.0

Official sources

References

Links published by the sources. Open them with care.