{"answers":{"affected":"2 open source packages ship an affected version, including com.cronutils:cron-utils. It affects 1 product.","exploited":"There is no known exploitation of CVE-2020-26238 in the wild and no public exploit code.","fix":"Upgrade com.cronutils:cron-utils to 9.1.3 or later.","what":"CVE-2020-26238 is a high-severity code injection vulnerability in jmrozanec cron-utils, published on 24 Nov 2020. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2020-26238 and fix it if it is affected.\n\nWhat it is: CVE-2020-26238 is a high-severity code injection vulnerability in jmrozanec cron-utils, published on 24 Nov 2020. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2020-26238 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- com.cronutils:cron-utils (Maven): affected all versions; fixed in 9.1.3\n- com.cronutils:cron-utils (Maven): affected all versions; fixed in 9.1.3\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2020-26238/ (Markdown: https://insights.sbomify.com/CVE-2020-26238/index.md)","id":"CVE-2020-26238","markdown":"https://insights.sbomify.com/CVE-2020-26238/index.md","name":"CVE-2020-26238","record":{"aliases":["GHSA-pfj3-56hm-jwq5"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"adjacent_or_local","non_default_config":true,"product_category":"Java cron library","requires_auth":"low_privilege","summary":"Attackers can achieve remote code execution by injecting Java EL expressions into untrusted Cron expressions validated via the @Cron annotation.","user_interaction":"required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"cron-utils","vendor":"cron-utils_project"}],"cvss":{"score":7.9,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-74","name":"Improper Neutralization of Special Elements in Output Used by a Downstream Component"}],"description":"Cron-utils is a Java library to parse, validate, migrate crons as well as get human readable descriptions for them. In cron-utils before version 9.1.3, a template Injection vulnerability is present. This enables attackers to inject arbitrary Java EL expressions, leading to unauthenticated Remote Code Execution (RCE) vulnerability. Only projects using the @Cron annotation to validate untrusted Cron expressions are affected. This issue was patched in version 9.1.3.","ecosystems":["Maven"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Critical vulnerability found in cron-utils","id":"CVE-2020-26238","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"code_injection","year":"2020"},"n_packages":2,"n_references":13,"next":{"headline":"Cross-Site Scripting in Scratch browser addons","id":"CVE-2020-26239"},"packages":[{"ecosystem":"Maven","fixed":["9.1.3"],"introduced":["0"],"last_affected":[],"package":"com.cronutils:cron-utils","purl":null,"source":"GHSA-pfj3-56hm-jwq5"},{"ecosystem":"Maven","fixed":["9.1.3"],"introduced":["0"],"last_affected":[],"package":"com.cronutils:cron-utils","purl":"pkg:maven/com.cronutils/cron-utils","source":"GHSA-pfj3-56hm-jwq5"}],"prev":{"headline":"Prototype Pollution in highlight.js","id":"CVE-2020-26237"},"products":["cron-utils"],"published":"2020-11-24","related":[{"cvss_score":10,"headline":"Unauthenticated remote code injection in cron-utils","id":"CVE-2021-41269","kev_date_added":null,"published":"2021-11-15"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-04","vendors":["jmrozanec"]},"summary":"Attackers can achieve remote code execution by injecting Java EL expressions into untrusted Cron expressions validated via the @Cron annotation.","url":"https://insights.sbomify.com/CVE-2020-26238/"}