{"id":"CVE-2021-41269","published":"2021-11-15T20:30:14Z","modified":"2024-08-04T03:08:31Z","title":"Unauthenticated remote code injection in cron-utils","vendor":"jmrozanec","product":"cron-utils","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":10,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.04349,"percentile":0.91449,"provenance":"source"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"references":[{"url":"https://github.com/jmrozanec/cron-utils/issues/461","tags":["x_refsource_MISC"]},{"url":"https://github.com/jmrozanec/cron-utils/security/advisories/GHSA-p9m8-27x8-rg87","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/jmrozanec/cron-utils/commit/cfd2880f80e62ea74b92fa83474c2aabdb9899da","tags":["x_refsource_MISC"]},{"url":"https://github.com/jmrozanec/cron-utils/commit/d6707503ec2f20947f79e38f861dba93b39df9da","tags":["x_refsource_MISC"]}],"priority":{"score":25.3,"factors":[{"name":"EPSS percentile","points":18.29},{"name":"CVSS severity","points":7.0}]},"vendorSlug":"jmrozanec","affectedVersions":[{"vendor":"jmrozanec","product":"cron-utils","versions":["< 9.1.6"]}],"affected":[{"ecosystem":"Maven","package":"com.cronutils:cron-utils","vulnerableRanges":["<9.1.6"],"patched":["9.1.6"],"from":["GHSA-p9m8-27x8-rg87"],"provenance":"source"}],"summary":{"text":"The cron-utils Java library, which parses, validates, and describes cron expressions, contains a template injection flaw that lets attackers inject arbitrary Java EL expressions, affecting versions up to 9.1.2 and only projects that use the @Cron annotation to validate untrusted cron expressions. An unauthenticated remote attacker can exploit this by supplying a crafted cron expression to the affected validation path, with no authentication or user interaction required, to achieve remote code execution.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-21T07:24:04Z"},"euvd":{"id":"EUVD-2021-2371","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2020-26238","published":"2020-11-24","fixed":"9.1.3","kev":false,"link":{"from":"CVE-2020-26238","to":"CVE-2021-41269","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Maven:com.cronutils:cron-utils","fromFixed":"9.1.3","toFixed":"9.1.6","daysApart":356}]}},{"cve":"CVE-2021-41269","published":"2021-11-15","fixed":"9.1.6","kev":false}],"package":"Maven:com.cronutils:cron-utils"}}