CVE-2021-41269
Critical vulnerability found in cron-utils
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 Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| com.cronutils » cron-utils | < 9.1.6 | 9.1.6 |
Blast radius
26% of the dependent artifacts (175) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 4,101 |
| 2 hops | 12,323 |
| 3 hops | 11,017 |
| 4 hops | 7,855 |
| 5 hops | 3,405 |
| 6 hops | 1,183 |
Most used dependents
- org.apache.spark » spark-sql3,177 usages
- org.apache.spark » spark-core2,901 usages
- org.apache.spark » spark-mllib831 usages
- org.apache.hive » hive-exec699 usages
- org.apache.spark » spark-streaming671 usages
- org.apache.spark » spark-hive633 usages
- org.apache.spark » spark-catalyst503 usages
- org.apache.hive » hive-metastore480 usages
- org.apache.hive » hive-jdbc404 usages
- org.apache.hive » hive-common305 usages
- org.apache.hive » hive-service301 usages
- org.apache.hive » hive-serde206 usages
- org.apache.spark » spark-sql-kafka-0-10147 usages
- org.apache.spark » spark-graphx143 usages
- org.apache.spark » spark-yarn130 usages
Computed from the dependency graph of build 20261129.0021 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
References
| Advisory | NVD CVE-2021-41269 | nvd.nist.gov |
| Package | jmrozanec/cron-utils | github.com |
| Web | jmrozanec/cron-utils advisory GHSA-p9m8-27x8-rg87 | github.com |
| Web | jmrozanec/cron-utils issue #461 | github.com |
| Web | jmrozanec/cron-utils commit cfd2880 | github.com |
| Web | jmrozanec/cron-utils commit d670750 | github.com |
