Paper/Archive/CVE-2022-24881

CVE-2022-24881

ballcat-projects ballcat-codegen — Command Injection in Ballcat Codegen

Description · from the CVE record

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.

Affected

ProductAffectedFixed inSource
ballcat-codegen< 1.0.0.beta.2–CNA

Scores by source

NVD9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
GitHub_M (CNA)8.8CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CISA ADPSSVCExploitation: poc · Automatable: no · Technical impact: total

References

refgithub.com/ballcat-projects/ballcat-codegen/security/advisories/GHSA-fv3m-xhqw-9m79refgithub.com/ballcat-projects/ballcat-codegen/issues/5refgithub.com/ballcat-projects/ballcat-codegen/commit/84a7cb38daf0295b93aba21d562ec627e4eb463b