Skip to content

ballcat-codegen template engine remote code execution injection

High severity GitHub Reviewed Published Apr 26, 2022 in ballcat-projects/ballcat-codegen • Updated Jan 30, 2023

Package

maven com.hccake:ballcat-codegen (Maven)

Affected versions

<= 1.0.0.beta.1

Patched versions

1.0.0.beta.2

Description

Impact

Ballcat Codegen provides the function of online editing code to generate templates.
In version < 1.0.0.beta.2, since Velocity and freemarker templates are introduced but input verification is not done, attackers can implement remote code execution through malicious code injection of the template engine.

Patches

The fault is rectified and needs to be upgraded to the latest version.

References

@Hccake Hccake published to ballcat-projects/ballcat-codegen Apr 26, 2022
Published by the National Vulnerability Database Apr 26, 2022
Published to the GitHub Advisory Database Apr 27, 2022
Reviewed Apr 27, 2022
Last updated Jan 30, 2023

Severity

High
8.8
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
Low
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

CVE ID

CVE-2022-24881

GHSA ID

GHSA-fv3m-xhqw-9m79

Credits

Checking history
See something to contribute? Suggest improvements for this vulnerability.