# CVE-2022-24881: Command Injection in Ballcat Codegen

- Severity: High 8.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 3.20%, higher than 88% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-04-26T16:06:21.000Z
- Modified: 2026-06-17T04:32:43.277Z
- Also known as: GHSA-fv3m-xhqw-9m79
- Weaknesses: CWE-20, CWE-78, CWE-94
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- ballcat-projects ballcat-codegen: < 1.0.0.beta.2
- com.hccake:ballcat-codegen (Maven): before 1.0.0.beta.2
- ballcat codegen: before 1.0.0

## Every score

- GitHub_M: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 7.5 High `AV:N/AC:L/Au:N/C:P/I:P/A:P`

## References

- <https://github.com/ballcat-projects/ballcat-codegen/security/advisories/GHSA-fv3m-xhqw-9m79> (exploit, patch, third-party-advisory, web)
- <https://github.com/ballcat-projects/ballcat-codegen/issues/5> (issue-tracking, patch, third-party-advisory, web)
- <https://github.com/ballcat-projects/ballcat-codegen/commit/84a7cb38daf0295b93aba21d562ec627e4eb463b> (patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-24881> (advisory)
- <https://github.com/ballcat-projects/ballcat-codegen> (package)

## Sources

- CVE List: [CVE-2022-24881](https://www.cve.org/CVERecord?id=CVE-2022-24881), CVE Terms of Use, modified 2025-04-22
- GitHub Advisory Database: [GHSA-fv3m-xhqw-9m79](https://github.com/advisories/GHSA-fv3m-xhqw-9m79), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2022-24881](https://nvd.nist.gov/vuln/detail/CVE-2022-24881), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-24881 · Whole record: https://cve.day/CVE-2022-24881.json · Rebuilt by cve.day 2026-11-25T22:58:11.247Z
