CVE-2021-41269 is a critical-severity (CVSS 9.8) Code Injection vulnerability in com.cronutils:cron-utils. 1 public exploit reference exists, so weaponization risk is real. A fix is available for com.cronutils:cron-utils — see the affected versions and patch details below.
Critical vulnerability found in cron-utils
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
CVE-2021-41269 by exploitation likelihood (EPSS) against impact (CVSS). Outside the shaded patch-first corner.
Where this sits among everything scored
Of 385,738 CVEs with a current EPSS score, this one falls in the < 10% band (highlighted). Counts from FIRST.org, log-scaled.
Real-World Exposure
com.cronutils:cron-utilsReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Maven packages — download data is not available via public APIs for these ecosystems.
Description
Impact
A Template Injection was identified in cron-utils enabling attackers to inject arbitrary Java EL expressions, leading to unauthenticated Remote Code Execution (RCE) vulnerability. Versions up to 9.1.2 are susceptible to this vulnerability. Please note, that only projects using the @Cron annotation to validate untrusted Cron expressions are affected.
Patches
The issue was patched and a new version was released. Please upgrade to version 9.1.6.
Workarounds
There are no known workarounds up to this moment.
References
A description of the issue is provided in issue 461
For more information
If you have any questions or comments about this advisory:
Open an issue in the cron-utils Github repository
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| ☕Maven | com.cronutils:cron-utils | all versions | 9.1.6com.cronutils:cron-utils:9.1.6 |
Affected Products
cron-utilscron-utils_projectResearch use only. For defensive security, authorized penetration testing, and academic research only. Never execute exploit code against systems without explicit written authorization.
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for com.cronutils:cron-utils, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update com.cronutils:cron-utils to 9.1.6 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2021-41269 is resolved across your whole dependency graph.
Workarounds
Stop passing untrusted input into the interpreter or shell: call the affected binary with an argument array rather than a composed command string, reject anything outside a strict allowlist of expected values, and run the component under an account that cannot reach beyond the work it legitimately does.
Fixing This On Your OS
If you run this on a Linux distribution, patch through your package manager against the distro's own security advisory below — it tracks the exact backported fix for your release, which can ship on a different timeline (and sometimes a different severity) than the upstream project.
Only projects using the @Cron annotation to validate untrusted Cron expressions are affected.
| Product | Fixed in | Advisory |
|---|---|---|
| Red Hat build of Quarkus 2.2.5 | see advisory | RHSA-2022:0589 |
| RHINT Camel-Q 2.2.1 | see advisory | RHSA-2022:1013 |
| RHINT Service Registry 2.3.0 GA | cron-utils | RHSA-2022:6835 |
Frequently Asked Questions
Is CVE-2021-41269 in your dependencies?
Find it across Maven, including transitive dependencies.