Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. com.hccake/ballcat-codegen
  4. ›
  5. CVE-2022-24881

CVE-2022-24881: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

April 27, 2022

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.

References

  • github.com/advisories/GHSA-fv3m-xhqw-9m79
  • github.com/ballcat-projects/ballcat-codegen/commit/84a7cb38daf0295b93aba21d562ec627e4eb463b
  • github.com/ballcat-projects/ballcat-codegen/issues/5
  • github.com/ballcat-projects/ballcat-codegen/security/advisories/GHSA-fv3m-xhqw-9m79
  • nvd.nist.gov/vuln/detail/CVE-2022-24881

Code Behaviors & Features

Detect and mitigate CVE-2022-24881 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions up to 1.0.0.beta.1

Fixed versions

  • 1.0.0.beta.2

Solution

Upgrade to version 1.0.0.beta.2 or above.

Impact 9.8 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Source file

maven/com.hccake/ballcat-codegen/CVE-2022-24881.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:50 +0000.