{"answers":{"affected":"2 open source packages ship an affected version, including org.codehaus.plexus:plexus-utils. It affects 2 products.","exploited":"There is no known exploitation of CVE-2022-4245 in the wild and no public exploit code.","fix":"Upgrade org.codehaus.plexus:plexus-utils to 3.0.24 or later.","what":"CVE-2022-4245 is a medium-severity vulnerability in Red Hat A-MQ Clients 2, published on 25 Sep 2023. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2022-4245 and fix it if it is affected.\n\nWhat it is: CVE-2022-4245 is a medium-severity vulnerability in Red Hat A-MQ Clients 2, published on 25 Sep 2023. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2022-4245 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- org.codehaus.plexus:plexus-utils (Maven): affected all versions; fixed in 3.0.24\n- org.codehaus.plexus:plexus-utils (Maven): affected all versions; fixed in 3.0.24\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-4245/ (Markdown: https://insights.sbomify.com/CVE-2022-4245/index.md)","id":"CVE-2022-4245","markdown":"https://insights.sbomify.com/CVE-2022-4245/index.md","name":"CVE-2022-4245","record":{"aliases":["CLSA-2026-1791965617","CLSA-2026-1791965620","CLSA-2026-1791965626","CLSA-2026-1791965636","CLSA-2026-1791965637","CLSA-2026-1793136969","CLSA-2026-1793136993","CLSA-2026-1793137156","CLSA-2026-1793137245","DEBIAN-CVE-2022-4245","GHSA-jcwr-x25h-x5fh","UBUNTU-CVE-2022-4245"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read","denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Java XML utility library","requires_auth":"low_privilege","summary":"An attacker can inject XML via unsanitized comments in Plexus XML utilities, potentially reading sensitive data or causing denial of service.","user_interaction":"not_required","vuln_class":"xxe"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"redhat","cpe":[{"product":"plexus-utils","vendor":"codehaus-plexus"},{"product":"integration_camel_k","vendor":"redhat"}],"cvss":{"score":4.3,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-611","name":"Improper Restriction of XML External Entity Reference"},{"id":"CWE-91","name":"XML Injection"}],"description":"A flaw was found in codehaus-plexus. The org.codehaus.plexus.util.xml.XmlWriterUtil#writeComment fails to sanitize comments for a --\u003e sequence. This issue means that text contained in the command string could be interpreted as XML and allow for XML injection.","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":"Codehaus-plexus: xml external entity (xxe) injection","id":"CVE-2022-4245","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"xxe","year":"2022"},"n_packages":2,"n_references":4,"next":{"headline":"Kakao PotPlayer MID File denial of service","id":"CVE-2022-4246"},"packages":[{"ecosystem":"Maven","fixed":["3.0.24"],"introduced":["0"],"last_affected":[],"package":"org.codehaus.plexus:plexus-utils","purl":null,"source":"GHSA-jcwr-x25h-x5fh"},{"ecosystem":"Maven","fixed":["3.0.24"],"introduced":["0"],"last_affected":[],"package":"org.codehaus.plexus:plexus-utils","purl":"pkg:maven/org.codehaus.plexus/plexus-utils","source":"GHSA-jcwr-x25h-x5fh"}],"prev":{"headline":"Codehaus-plexus: directory traversal","id":"CVE-2022-4244"},"products":["A-MQ Clients 2","RHINT Camel-K-1.10.1","RHPAM 7.13.1 async","Red Hat A-MQ Online","Red Hat Data Grid 8","Red Hat Decision Manager 7","Red Hat Enterprise Linux 7","Red Hat Enterprise Linux 8","Red Hat Enterprise Linux 9","Red Hat Integration Camel Quarkus","Red Hat Integration Change Data Capture","Red Hat Integration Service Registry","Red Hat JBoss A-MQ 7","Red Hat JBoss Data Grid 7","Red Hat JBoss Enterprise Application Platform 6","Red Hat JBoss Enterprise Application Platform 7","Red Hat JBoss Enterprise Application Platform Expansion Pack","Red Hat JBoss Fuse 6","Red Hat JBoss Fuse 7","Red Hat JBoss Fuse Service Works 6","Red Hat JBoss Web Server 3","Red Hat JBoss Web Server 5","Red Hat OpenShift Application Runtimes","Red Hat Process Automation 7","Red Hat Single Sign-On 7","Red Hat Software Collections","Red Hat build of Apache Camel for Spring Boot","Red Hat build of Quarkus","Red Hat support for Spring Boot"],"published":"2023-09-25","related":[{"cvss_score":9.8,"headline":"OS Command Injection in Plexus-utils","id":"CVE-2017-1000487","kev_date_added":null,"published":"2018-01-03"},{"cvss_score":8.8,"headline":"Plexus-Utils has a Directory Traversal vulnerability in its extractFile method","id":"CVE-2025-67030","kev_date_added":null,"published":"2026-03-25"},{"cvss_score":7.5,"headline":"Codehaus-plexus: directory traversal","id":"CVE-2022-4244","kev_date_added":null,"published":"2023-09-25"}],"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":"partial"},"state":"PUBLISHED","updated":"2024-08-03","vendors":["Red Hat"]},"summary":"An attacker can inject XML via unsanitized comments in Plexus XML utilities, potentially reading sensitive data or causing denial of service.","url":"https://insights.sbomify.com/CVE-2022-4245/"}