{"answers":{"affected":"2 open source packages ship an affected version, including org.apache.ranger:ranger-plugins-common. It affects 1 product.","exploited":"There is no known exploitation of CVE-2025-59059 in the wild and no public exploit code.","fix":"Upgrade org.apache.ranger:ranger-plugins-common to 2.8.0 or later.","what":"CVE-2025-59059 is a critical vulnerability in Apache Ranger, published on 3 Mar 2026."},"fix_prompt":"Check this codebase for CVE-2025-59059 and fix it if it is affected.\n\nWhat it is: CVE-2025-59059 is a critical vulnerability in Apache Ranger, published on 3 Mar 2026. \nExploitation: There is no known exploitation of CVE-2025-59059 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- org.apache.ranger:ranger-plugins-common (Maven): affected all versions; fixed in 2.8.0\n- org.apache.ranger:ranger-plugins-common (Maven): affected all versions; fixed in 2.8.0\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-2025-59059/ (Markdown: https://insights.sbomify.com/CVE-2025-59059/index.md)","id":"CVE-2025-59059","markdown":"https://insights.sbomify.com/CVE-2025-59059/index.md","name":"CVE-2025-59059","record":{"aliases":["ECHO-f414-1e9c-fa8f","GHSA-c87w-642h-m97h"],"analysis":null,"analysis_generated_by":null,"assigner":"apache","cpe":[{"product":"ranger","vendor":"apache"}],"cvss":{"score":9.8,"severity":"critical","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"description":"Remote Code Execution Vulnerability in NashornScriptEngineCreator is reported in Apache Ranger versions \u003c= 2.7.0.\nUsers are recommended to upgrade to version 2.8.0, which fixes this issue.","ecosystems":["Maven"],"exploits":{"exploitdb":0,"first_seen":"2026-04-03","github_poc":1,"max_poc_stars":0,"metasploit":0,"nuclei":0,"refs":[{"date":"2026-04-03T11:33:41Z","kind":"github_poc","ref":"https://github.com/pl4tyz/CVE-2025-59059-Misattributed-RCE-in-Apache-Ranger-Static-Analysis-Correction","stars":0,"title":"CVE-2025-59059: Misattributed RCE in Apache Ranger Static Analysis Correction"}],"tier":"poc_unverified"},"has_fix":true,"headline":"Apache Ranger: Remote Code Execution Vulnerability in NashornScriptEngineCreator","id":"CVE-2025-59059","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":null,"year":"2025"},"n_packages":2,"n_references":1,"next":{"headline":"Apache Ranger: Hostname verification bypass in NiFiRegistryClient","id":"CVE-2025-59060"},"packages":[{"ecosystem":"Maven","fixed":["2.8.0"],"introduced":["0"],"last_affected":[],"package":"org.apache.ranger:ranger-plugins-common","purl":null,"source":"GHSA-c87w-642h-m97h"},{"ecosystem":"Maven","fixed":["2.8.0"],"introduced":["0"],"last_affected":[],"package":"org.apache.ranger:ranger-plugins-common","purl":"pkg:maven/org.apache.ranger/ranger-plugins-common","source":"GHSA-c87w-642h-m97h"}],"prev":{"headline":"httpsig-rs's HMAC verification is vulnerable to timing attack","id":"CVE-2025-59058"},"products":["Apache Ranger"],"published":"2026-03-03","related":[{"cvss_score":9.8,"headline":"Apache Ranger: OS Command Injection via Username in UnixUserGroupBuilder","id":"CVE-2026-28672","kev_date_added":null,"published":"2026-08-10"},{"cvss_score":9.8,"headline":"Apache Ranger: SQL Injection vulnerability in lookup functionality","id":"CVE-2026-32227","kev_date_added":null,"published":"2026-08-10"},{"cvss_score":9.8,"headline":"Apache Ranger: Privilege Escalation via URL Parameter","id":"CVE-2026-40920","kev_date_added":null,"published":"2026-08-10"},{"cvss_score":9.8,"headline":"Apache Ranger: Remote Code Execution via JDBC URL Injection","id":"CVE-2026-42537","kev_date_added":null,"published":"2026-08-10"},{"cvss_score":9.8,"headline":"Apache Ranger: Remote Code Execution via Arbitrary Class Instantiation","id":"CVE-2026-44416","kev_date_added":null,"published":"2026-08-10"},{"cvss_score":9.8,"headline":"Apache Ranger: Remote Code Execution Vulnerability in GraalScriptEngineCreator","id":"CVE-2026-55799","kev_date_added":null,"published":"2026-08-10"}],"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)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-03-03","vendors":["Apache Software Foundation"]},"summary":null,"url":"https://insights.sbomify.com/CVE-2025-59059/"}