CVE-2022-24881 json
Command Injection in Ballcat Codegen
published 4y ago modified 4mo ago also GHSA-fv3m-xhqw-9m79 , EUVD-2022-1726
- cvss
- 8.8
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 3.2%
- EPSS 3.2% chance of exploitation in 30 days, percentile 88%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- maven com.hccake:ballcat-codegen 1.0.0.beta.2
- ballcat codegen 1.0.0
Is CVE-2022-24881 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerCISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- total
- Assessed
- last yr.
Exploit prediction
3.20% chance of exploitation in the next 30 days, higher than 88% of all scored CVEs (FIRST EPSS, 2026-11-09).
Exploits and checks
- github.com https://github.com/ballcat-projects/ballcat-codegen/security/advisories/GHSA-fv3m-xhqw-9m79 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
| GitHub | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| maven | com.hccake:ballcat-codegen | <1.0.0.beta.2 |
1.0.0.beta.2 |
Affected products
- ballcat-projects ballcat-codegen
Classification
References
-
github.com
/ballcat-projects/ballcat-codegen/commit/84a7cb38daf0295b93aba21d562ec627e4eb463b
web, patch, third-party-advisory
-
github.com
/ballcat-projects/ballcat-codegen/security/advisories/GHSA-fv3m-xhqw-9m79
web, exploit, patch, third-party-advisory
-
github.com
/ballcat-projects/ballcat-codegen/issues/5
web, issue-tracking, patch, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2022-24881
advisory
-
github.com
/ballcat-projects/ballcat-codegen
package
Sources
- CVE List CVE-2022-24881
- GitHub Advisory GHSA-fv3m-xhqw-9m79
- NVD CVE-2022-24881
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.