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
References
https://github.com/ballcat-projects/ballcat-codegen/commit/84a7cb38daf0295b93aba21d562ec627e4eb463b
https://github.com/ballcat-projects/ballcat-codegen/issues/5
https://github.com/ballcat-projects/ballcat-codegen/security/advisories/GHSA-fv3m-xhqw-9m79
Related Vulnerabilities
CVE-2022-0436 Vulnerability in npm package grunt
CVE-2023-45135 Vulnerability in maven package org.xwiki.platform:xwiki-platform-web-templates
CVE-2018-15531 Vulnerability in maven package net.bull.javamelody:javamelody-core
CVE-2020-11971 Vulnerability in maven package org.apache.camel:camel-spring
CVE-2023-46652 Vulnerability in maven package org.jenkins-ci.plugins:lambdatest-automation