Free and open · new CVEs checked every 20 minutesStatusRSSOpen dataContact

CVE-2022-24881: Ballcat Codegen provides the function of online editing code to generate templates

58
This month
HIGH 8.8UPGRADE

CVE-2022-24881 is a high-severity flaw (CVSS 8.8) affecting codegen. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.

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.

Why this priority

  • High severity
  • Public exploit reference

A fixed release or distro patch exists.

Risk facts

CVSS score8.8 (High)
Attack vectorNetwork (remote)
Attack complexityLow
Privileges neededLow
User interactionNone
EPSS exploit chance3.2% (top 12%)
CISA exploited listNo
WeaknessCWE-94, CWE-20
Published2022-04-26
Last modified2026-06-17
Publisher (CNA): GitHub, Inc. · Vendor: ballcat

Share: LinkedIn · X · Reddit

Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score

Am I affected?

Timeline

ballcat codegen UPGRADE
Affected: < 1.0.0
Fixed in: 1.0.0
Safe to downgrade to: no unaffected older release
1. Check installed version
apt-cache policy codegen || rpm -q codegen || codegen --version
2. UPGRADE to 1.0.0 (Debian / Ubuntu)
sudo apt update && sudo apt install --only-upgrade codegen
2. UPGRADE (RHEL / Amazon Linux / Fedora)
sudo dnf upgrade codegen
Note
Distros often backport fixes without changing the version number. Confirm with the distro advisory or changelog.
Verify at the official source NVD · CVE Program · Report a problem with this page
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.

Quick answers

How do I fix CVE-2022-24881?

codegen: upgrade to 1.0.0. Exact commands for each OS are on this page.

Is CVE-2022-24881 being exploited?

CVE-2022-24881 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.

What does CVE-2022-24881 affect?

CVE-2022-24881 affects codegen. Severity is high (CVSS 8.8). 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 becau

How urgent is CVE-2022-24881?

Priority 58/100. High severity; Public exploit reference

References

← Back to latest CVEs

Get the weekly exploited-CVE digest by emailThe CVEs being attacked this week and how to fix them. No spam, unsubscribe any time.