{"answers":{"affected":"2 open source packages ship an affected version, including org.apache.ranger:ranger. It affects 1 product.","exploited":"There is no known exploitation of CVE-2022-45048 in the wild and no public exploit code.","fix":"Upgrade org.apache.ranger:ranger to 2.4.0 or later.","what":"CVE-2022-45048 is a high-severity code injection vulnerability in Apache Ranger, published on 5 May 2023. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2022-45048 and fix it if it is affected.\n\nWhat it is: CVE-2022-45048 is a high-severity code injection vulnerability in Apache Ranger, published on 5 May 2023. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2022-45048 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- org.apache.ranger:ranger (Maven): affected from 2.3.0; fixed in 2.4.0\n- org.apache.ranger:ranger (Maven): affected from 2.3.0; fixed in 2.4.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-2022-45048/ (Markdown: https://insights.sbomify.com/CVE-2022-45048/index.md)","id":"CVE-2022-45048","markdown":"https://insights.sbomify.com/CVE-2022-45048/index.md","name":"CVE-2022-45048","record":{"aliases":["GHSA-89gw-cffj-mqg9"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Apache Ranger","requires_auth":"high_privilege","summary":"Authenticated users with privileges can execute arbitrary code via malicious policy expressions in Apache Ranger.","user_interaction":"required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"apache","cpe":[{"product":"ranger","vendor":"apache"}],"cvss":{"score":8.4,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-74","name":"Improper Neutralization of Special Elements in Output Used by a Downstream Component"}],"description":"Authenticated users with appropriate privileges can create policies having expressions that can exploit code execution vulnerability. This issue affects Apache Ranger: 2.3.0. Users are recommended to update to version 2.4.0.","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":"Apache Ranger: code execution vulnerability in policy expressions","id":"CVE-2022-45048","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"code_injection","year":"2022"},"n_packages":2,"n_references":1,"next":{"headline":"Reflected XSS in Axiell Iguana CMS","id":"CVE-2022-45049"},"packages":[{"ecosystem":"Maven","fixed":["2.4.0"],"introduced":["2.3.0"],"last_affected":[],"package":"org.apache.ranger:ranger","purl":null,"source":"GHSA-89gw-cffj-mqg9"},{"ecosystem":"Maven","fixed":["2.4.0"],"introduced":["2.3.0"],"last_affected":[],"package":"org.apache.ranger:ranger","purl":"pkg:maven/org.apache.ranger/ranger","source":"GHSA-89gw-cffj-mqg9"}],"prev":{"headline":"Apache MINA SSHD: Java unsafe deserialization vulnerability","id":"CVE-2022-45047"},"products":["Apache Ranger"],"published":"2023-05-05","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"},{"cvss_score":9.8,"headline":"Apache Ranger: Remote Code Execution Vulnerability in NashornScriptEngineCreator","id":"CVE-2025-59059","kev_date_added":null,"published":"2026-03-03"}],"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":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2024-10-15","vendors":["Apache Software Foundation"]},"summary":"Authenticated users with privileges can execute arbitrary code via malicious policy expressions in Apache Ranger.","url":"https://insights.sbomify.com/CVE-2022-45048/"}