Vulnerability · Published Nov 15, 2021 · Assigned by GitHub_M
CVE-2021-41269Unauthenticated remote code injection in cron-utils
Critical 10.0
In plain English
A critical-severity code injection in cron-utils from jmrozanec. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 4.3% (higher than 91% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Maven | com.cronutils:cron-utils | 9.1.6 | GHSA-p9m8-27x8-rg87 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| jmrozanec | cron-utils | < 9.1.6 |
Weakness: CWE-94 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
References
- https://github.com/jmrozanec/cron-utils/issues/461 x_refsource_MISC
- https://github.com/jmrozanec/cron-utils/security/advisories/GHSA-p9m8-27x8-rg87 x_refsource_CONFIRM
- https://github.com/jmrozanec/cron-utils/commit/cfd2880f80e62ea74b92fa83474c2aabdb9899da x_refsource_MISC
- https://github.com/jmrozanec/cron-utils/commit/d6707503ec2f20947f79e38f861dba93b39df9da x_refsource_MISC