Vulnerability Details : CVE-2022-24881
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.
Vulnerability category: Input validationExecute code
Products affected by CVE-2022-24881
- cpe:2.3:a:ballcat:codegen:*:*:*:*:*:*:*:*
Exploit prediction scoring system (EPSS) score for CVE-2022-24881
1.59%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 87 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2022-24881
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
7.5
|
HIGH | AV:N/AC:L/Au:N/C:P/I:P/A:P |
10.0
|
6.4
|
NIST | |
9.8
|
CRITICAL | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
3.9
|
5.9
|
NIST | |
8.8
|
HIGH | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
2.8
|
5.9
|
GitHub, Inc. |
CWE ids for CVE-2022-24881
-
The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.Assigned by: nvd@nist.gov (Primary)
-
The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.Assigned by: security-advisories@github.com (Secondary)
References for CVE-2022-24881
-
https://github.com/ballcat-projects/ballcat-codegen/issues/5
ballcat-codegen template engine injection RCE · Issue #5 · ballcat-projects/ballcat-codegen · GitHubIssue Tracking;Patch;Third Party Advisory
-
https://github.com/ballcat-projects/ballcat-codegen/commit/84a7cb38daf0295b93aba21d562ec627e4eb463b
:lock: 修改模板引擎的默认安全策略,以防止RCE · ballcat-projects/ballcat-codegen@84a7cb3 · GitHubPatch;Third Party Advisory
-
https://github.com/ballcat-projects/ballcat-codegen/security/advisories/GHSA-fv3m-xhqw-9m79
ballcat-codegen exists for template engine remote code execution injection · Advisory · ballcat-projects/ballcat-codegen · GitHubExploit;Patch;Third Party Advisory
Jump to