Skip to content
OpenAdvisories
Critical · 10.0 Public exploit CVE-2021-41269 EUVD-2021-2371GHSA-p9m8-27x8-rg87

Unauthenticated remote code injection in cron-utils

Published Nov 15, 2021 · Updated Aug 4, 2024 · Assigned by GitHub_M

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 products

VendorProductAffectedFixed
jmrozanec cron-utils < 9.1.6 —

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
Maven com.cronutils:cron-utils < 9.1.6 9.1.6 GHSA-p9m8-27x8-rg87

References