CVE-2022-24881
In versions prior to 1.0.0.beta.2, attackers can implement remote code execution through malicious code injection of the template engine.
Does this matter?
High impact if exploited, but EPSS currently rates exploitation as unlikely (3.00%). Schedule it in the normal patch cycle and watch for a rise in EPSS or a public exploit.
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.
- CVSS 3.1
- 9.8 CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS
- 3.00% probability · 87th percentile
- CISA KEV
- Not listed
- Weakness
- CWE-94, CWE-20
- Affected
- ballcat/codegen
- Source
- security-advisories@github.com
References
- https://github.com/ballcat-projects/ballcat-codegen/commit/84a7cb38daf0295b93aba21d562ec627e4eb463bPatch, Third Party Advisory
- https://github.com/ballcat-projects/ballcat-codegen/issues/5Issue Tracking, Patch, Third Party Advisory
- https://github.com/ballcat-projects/ballcat-codegen/security/advisories/GHSA-fv3m-xhqw-9m79Exploit, Patch, Third Party Advisory
- https://github.com/ballcat-projects/ballcat-codegen/commit/84a7cb38daf0295b93aba21d562ec627e4eb463bPatch, Third Party Advisory
- https://github.com/ballcat-projects/ballcat-codegen/issues/5Issue Tracking, Patch, Third Party Advisory
- https://github.com/ballcat-projects/ballcat-codegen/security/advisories/GHSA-fv3m-xhqw-9m79Exploit, Patch, Third Party Advisory
Source: NVD record, EPSS from FIRST.org, KEV from CISA. Refreshed daily.