Skip to content

CVE-2022-24881 Command Injection in Ballcat Codegen

CriticalCVSS 9.8 EPSS 3.2%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: no · technical impact: total

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.

Upgrade path

3 packages: 2 fixed.

PackageAffectedFixed inStatus
ballcat codegen < 1.0.0 1.0.0 Fixed
com.hccake/ballcat-codegen(Maven) < 1.0.0.beta.2; <= 1.0.0.beta.1; = 0.0.1 1.0.0.beta.2 Fixed
ballcat-projects ballcat-codegen = < 1.0.0.beta.2 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
com.hccake/ballcat-codegen(Maven) <= 1.0.0.beta.1 No fix listed
com.hccake/ballcat-codegen(Maven) < 1.0.0.beta.2 1.0.0.beta.2
com.hccake/ballcat-codegen(Maven) = 0.0.1 No fix listed
ballcat-projects ballcat-codegen = < 1.0.0.beta.2 No fix listed
ballcat codegen < 1.0.0 1.0.0

References