{"answers":{"affected":"2 open source packages ship an affected version, including org.apache.any23:apache-any23. It affects 1 product.","exploited":"There is no known exploitation of CVE-2022-25312 in the wild and no public exploit code.","fix":"Upgrade org.apache.any23:apache-any23 to 2.7 or later.","what":"CVE-2022-25312 is a critical vulnerability in Apache Any23, published on 4 Mar 2022. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2022-25312 and fix it if it is affected.\n\nWhat it is: CVE-2022-25312 is a critical vulnerability in Apache Any23, published on 4 Mar 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2022-25312 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- org.apache.any23:apache-any23 (Maven): affected all versions; fixed in 2.7\n- org.apache.any23:apache-any23 (Maven): affected all versions; fixed in 2.7\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-25312/ (Markdown: https://insights.sbomify.com/CVE-2022-25312/index.md)","id":"CVE-2022-25312","markdown":"https://insights.sbomify.com/CVE-2022-25312/index.md","name":"CVE-2022-25312","record":{"aliases":["GHSA-2rmm-87v7-34rj"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read","security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"Apache Any23 library","requires_auth":"none","summary":"An XXE vulnerability in Apache Any23 allows attackers to read server files and interact with backend systems via crafted XML data.","user_interaction":"not_required","vuln_class":"xxe"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"apache","cpe":[{"product":"any23","vendor":"apache"}],"cvss":{"score":9.1,"severity":"critical","source":"nvd","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-611","name":"Improper Restriction of XML External Entity Reference"}],"description":"An XML external entity (XXE) injection vulnerability was discovered in the Any23 RDFa XSLTStylesheet extractor and is known to affect Any23 versions \u003c 2.7. XML external entity injection (also known as XXE) is a web security vulnerability that allows an attacker to interfere with an application's processing of XML data. It often allows an attacker to view files on the application server filesystem, and to interact with any back-end or external systems that the application itself can access. This issue is fixed in Apache Any23 2.7.","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":"An XML external entity (XXE) injection vulnerability exists in the Apache Any23 RDFa XSLTStylesheet extractor","id":"CVE-2022-25312","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"xxe","year":"2022"},"n_packages":2,"n_references":2,"next":{"headline":"Denial of service in n/a","id":"CVE-2022-25313"},"packages":[{"ecosystem":"Maven","fixed":["2.7"],"introduced":["0"],"last_affected":[],"package":"org.apache.any23:apache-any23","purl":null,"source":"GHSA-2rmm-87v7-34rj"},{"ecosystem":"Maven","fixed":["2.7"],"introduced":["0"],"last_affected":[],"package":"org.apache.any23:apache-any23","purl":"pkg:maven/org.apache.any23/apache-any23","source":"GHSA-2rmm-87v7-34rj"}],"prev":{"headline":"Privilege escalation in SINEC NMS","id":"CVE-2022-25311"},"products":["Apache Any23"],"published":"2022-03-04","related":[{"cvss_score":9.8,"headline":"A Remote Code Execution (RCE) vulnerability exists in Apache Any23 YAMLExtractor.java","id":"CVE-2021-40146","kev_date_added":null,"published":"2021-09-11"},{"cvss_score":9.1,"headline":"An XML external entity (XXE) injection vulnerability exists in Apache Any23 StreamUtils.java","id":"CVE-2021-38555","kev_date_added":null,"published":"2021-09-11"},{"cvss_score":6.5,"headline":"Apache Any23: Possible excessive allocation of resources reading input.","id":"CVE-2023-34150","kev_date_added":null,"published":"2023-07-05"}],"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-03","vendors":["Apache Software Foundation"]},"summary":"An XXE vulnerability in Apache Any23 allows attackers to read server files and interact with backend systems via crafted XML data.","url":"https://insights.sbomify.com/CVE-2022-25312/"}