CVE-2022-24881

Command Injection in Ballcat Codegen

Published Apr 26, 2022 CVSS 3.1 · 8.8 High EPSS 3.2% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2022-1726 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 GHSA Github GHSA GHSA-fv3m-xhqw-9m79 ballcat-codegen template engine remote code execution injection
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Apr 22, 2025, 6:14 PM
Reserved
Feb 10, 2022, 12:00 AM
Status
Modified
Published
Apr 26, 2022, 4:15 PM
Modified
Jun 17, 2026, 4:32 AM