Critical vulnerability found in cron-utils
Description
Cron-utils before 9.1.3 has a template injection vulnerability in the @Cron annotation, allowing unauthenticated remote code execution via crafted cron expressions.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Cron-utils before 9.1.3 has a template injection vulnerability in the @Cron annotation, allowing unauthenticated remote code execution via crafted cron expressions.
Vulnerability
Overview
Cron-utils is a Java library for parsing and validating cron expressions. In versions prior to 9.1.3, a template injection vulnerability exists when the @Cron annotation is used to validate untrusted cron expressions. The library fails to sanitize user-supplied cron strings, allowing attackers to inject arbitrary Java Expression Language (EL) expressions. This flaw is rooted in the use of a vulnerable Hibernate Validator dependency that processes EL expressions during validation [1][4].
Exploitation
An attacker can exploit this vulnerability by providing a malicious cron expression to any application that uses the @Cron annotation for validation. No authentication is required; the attacker only needs to supply a crafted input that includes EL syntax. The expression is then evaluated by the Java EL engine, leading to code execution in the context of the application server [1][4].
Impact
Successful exploitation results in unauthenticated remote code execution (RCE). An attacker can execute arbitrary commands, potentially gaining full control over the affected system. The severity is critical, as the vulnerability can be triggered without any prior access [1][4].
Mitigation
The issue has been patched in cron-utils version 9.1.3. The fix involved replacing the Hibernate Validator dependency with Apache BVal, which does not evaluate EL expressions in the same insecure manner [3]. Users are strongly advised to upgrade to version 9.1.3 or later. No workarounds are available [4].
AI Insight generated on May 21, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
com.cronutils:cron-utilsMaven | < 9.1.3 | 9.1.3 |
Affected products
2- Range: < 9.1.3
Patches
14cf373f7352fUpdate dependencies to fix security vulnerability.
1 file changed · +4 −3
pom.xml+4 −3 modified@@ -121,11 +121,12 @@ <scope>test</scope> </dependency> <dependency> - <groupId>org.hibernate</groupId> - <artifactId>hibernate-validator</artifactId> + <groupId>org.apache.bval</groupId> + <artifactId>bval-jsr</artifactId> + <version>1.1.2</version> + <!--The Hibernate dependency is no longer used, due to security vulnerabilities --> <!-- https://stackoverflow.com/questions/48323244/java-lang-nosuchmethoderror-javax-validation-bootstrapconfiguration-getclockproExecutionTimeQuartzIntegrationTest --> <!-- https://stackoverflow.com/questions/24386771/javax-validation-validationexception-hv000183-unable-to-load-javax-el-express --> - <version>5.3.6.Final</version> <scope>test</scope> </dependency> <dependency>
Vulnerability mechanics
Generated on May 9, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.
References
25- github.com/advisories/GHSA-pfj3-56hm-jwq5ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2020-26238ghsaADVISORY
- github.com/jmrozanec/cron-utils/commit/4cf373f7352f5d95f0bf6512af8af326b31c835eghsax_refsource_MISCWEB
- github.com/jmrozanec/cron-utils/issues/461ghsax_refsource_MISCWEB
- github.com/jmrozanec/cron-utils/security/advisories/GHSA-pfj3-56hm-jwq5ghsax_refsource_CONFIRMWEB
- lists.apache.org/thread.html/r390bb7630b7ea8f02bf7adbbe69c0ae8b562c527d663c543d965f959%40%3Cgitbox.hive.apache.org%3Emitremailing-listx_refsource_MLIST
- lists.apache.org/thread.html/r390bb7630b7ea8f02bf7adbbe69c0ae8b562c527d663c543d965f959@%3Cgitbox.hive.apache.org%3EghsaWEB
- lists.apache.org/thread.html/r432a69a1a85cbcb1f1bad2aa0fbfce0367bf894bf917f6ed7118e7f0%40%3Cissues.hive.apache.org%3Emitremailing-listx_refsource_MLIST
- lists.apache.org/thread.html/r432a69a1a85cbcb1f1bad2aa0fbfce0367bf894bf917f6ed7118e7f0@%3Cissues.hive.apache.org%3EghsaWEB
- lists.apache.org/thread.html/r50e1b5544c37e408ed7e9a958b28237b1cb9660ba2b3dba46f343e23%40%3Cissues.hive.apache.org%3Emitremailing-listx_refsource_MLIST
- lists.apache.org/thread.html/r50e1b5544c37e408ed7e9a958b28237b1cb9660ba2b3dba46f343e23@%3Cissues.hive.apache.org%3EghsaWEB
- lists.apache.org/thread.html/r5f601d15292e3302ad0ae0e89527029546945b1cd5837af7e838d354%40%3Cdev.hive.apache.org%3Emitremailing-listx_refsource_MLIST
- lists.apache.org/thread.html/r5f601d15292e3302ad0ae0e89527029546945b1cd5837af7e838d354@%3Cdev.hive.apache.org%3EghsaWEB
- lists.apache.org/thread.html/r71083c759dc627f198571b3d48b6745fe798b1d53c34f7ef8de9e7dd%40%3Cissues.hive.apache.org%3Emitremailing-listx_refsource_MLIST
- lists.apache.org/thread.html/r71083c759dc627f198571b3d48b6745fe798b1d53c34f7ef8de9e7dd@%3Cissues.hive.apache.org%3EghsaWEB
- lists.apache.org/thread.html/r737406bc17d49ffe8fe6a8828d390ee0a02e45e5a5b4f931180b9a93%40%3Cissues.hive.apache.org%3Emitremailing-listx_refsource_MLIST
- lists.apache.org/thread.html/r737406bc17d49ffe8fe6a8828d390ee0a02e45e5a5b4f931180b9a93@%3Cissues.hive.apache.org%3EghsaWEB
- lists.apache.org/thread.html/r855aead591697dc2e85faf66c99036e49f492431940b78d4e6d895b5%40%3Cgitbox.hive.apache.org%3Emitremailing-listx_refsource_MLIST
- lists.apache.org/thread.html/r855aead591697dc2e85faf66c99036e49f492431940b78d4e6d895b5@%3Cgitbox.hive.apache.org%3EghsaWEB
- lists.apache.org/thread.html/r96937fc9c82f3201b59311c067e97bce71123944f93102169a95bf5c%40%3Cissues.hive.apache.org%3Emitremailing-listx_refsource_MLIST
- lists.apache.org/thread.html/r96937fc9c82f3201b59311c067e97bce71123944f93102169a95bf5c@%3Cissues.hive.apache.org%3EghsaWEB
- lists.apache.org/thread.html/r9ae9a9fb1c8e2bf95c676e7e4cd06aa04f0a3a8a9ec1a6b787afb00f%40%3Cissues.hive.apache.org%3Emitremailing-listx_refsource_MLIST
- lists.apache.org/thread.html/r9ae9a9fb1c8e2bf95c676e7e4cd06aa04f0a3a8a9ec1a6b787afb00f@%3Cissues.hive.apache.org%3EghsaWEB
- lists.apache.org/thread.html/ra9e81244d323898dde3c979dd7df6996e4037d14a01b6629ea443548%40%3Cissues.hive.apache.org%3Emitremailing-listx_refsource_MLIST
- lists.apache.org/thread.html/ra9e81244d323898dde3c979dd7df6996e4037d14a01b6629ea443548@%3Cissues.hive.apache.org%3EghsaWEB
News mentions
0No linked articles in our index yet.