{"answers":{"affected":"2 open source packages ship an affected version, including org.apache.santuario:xmlsec. It affects 3 products.","exploited":"There is no known exploitation of CVE-2019-12400 in the wild and no public exploit code.","fix":"Upgrade org.apache.santuario:xmlsec to 2.1.4 or later.","what":"CVE-2019-12400 is a medium-severity code injection vulnerability in Oracle Weblogic Server, published on 23 Aug 2019. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2019-12400 and fix it if it is affected.\n\nWhat it is: CVE-2019-12400 is a medium-severity code injection vulnerability in Oracle Weblogic Server, published on 23 Aug 2019. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2019-12400 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- org.apache.santuario:xmlsec (Maven): affected from 2.0.3; fixed in 2.1.4\n- org.apache.santuario:xmlsec (Maven): affected from 2.0.3; fixed in 2.1.4\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-2019-12400/ (Markdown: https://insights.sbomify.com/CVE-2019-12400/index.md)","id":"CVE-2019-12400","markdown":"https://insights.sbomify.com/CVE-2019-12400/index.md","name":"CVE-2019-12400","record":{"aliases":["DEBIAN-CVE-2019-12400","GHSA-4q98-wr72-h35w","UBUNTU-CVE-2019-12400"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution","security_bypass"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Java XML Security Library","requires_auth":"low_privilege","summary":"Attackers can inject malicious code via thread context class loader caching, compromising XML document validation in Apache Santuario.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"apache","cpe":[{"product":"santuario_xml_security_for_java","vendor":"apache"},{"product":"weblogic_server","vendor":"oracle"},{"product":"jboss_enterprise_application_platform","vendor":"redhat"}],"cvss":{"score":5.5,"severity":"medium","source":"nvd","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"}],"description":"In version 2.0.3 Apache Santuario XML Security for Java, a caching mechanism was introduced to speed up creating new XML documents using a static pool of DocumentBuilders. However, if some untrusted code can register a malicious implementation with the thread context class loader first, then this implementation might be cached and re-used by Apache Santuario - XML Security for Java, leading to potential security flaws when validating signed documents, etc. The vulnerability affects Apache Santuario - XML Security for Java 2.0.x releases from 2.0.3 and all 2.1.x releases before 2.1.4.","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":"Improper input validation in Apache Santuario XML Security for Java","id":"CVE-2019-12400","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":"oracle:weblogic_server","products":["oracle:weblogic_server","redhat:jboss_enterprise_application_platform"],"type":"code_injection","year":"2019"},"n_packages":2,"n_references":14,"next":{"headline":"Apache Solr vulnerable to XML Bomb","id":"CVE-2019-12401"},"packages":[{"ecosystem":"Maven","fixed":["2.1.4"],"introduced":["2.0.3"],"last_affected":[],"package":"org.apache.santuario:xmlsec","purl":null,"source":"GHSA-4q98-wr72-h35w"},{"ecosystem":"Maven","fixed":["2.1.4"],"introduced":["2.0.3"],"last_affected":[],"package":"org.apache.santuario:xmlsec","purl":"pkg:maven/org.apache.santuario/xmlsec","source":"GHSA-4q98-wr72-h35w"}],"prev":{"headline":"Exposure of Sensitive Information to an Unauthorized Actor in Apache Kafka","id":"CVE-2019-12399"},"products":["Apache Santuario - XML Security for Java"],"published":"2019-08-23","related":[{"cvss_score":6.5,"headline":"Apache Santuario: Private Key disclosure in debug-log output","id":"CVE-2023-44483","kev_date_added":null,"published":"2023-10-20"},{"cvss_score":5,"headline":"Improper Input Validation in Apache Santuario XML Security","id":"CVE-2014-8152","kev_date_added":null,"published":"2015-01-21"},{"cvss_score":4.3,"headline":"Improper Input Validation in Apache Santuario XML Security","id":"CVE-2013-4517","kev_date_added":null,"published":"2014-01-11"},{"cvss_score":4.3,"headline":"Inefficient Algorithmic Complexity in Apache Santuario XML Security","id":"CVE-2013-2172","kev_date_added":null,"published":"2013-08-20"}],"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":["Apache"]},"summary":"Attackers can inject malicious code via thread context class loader caching, compromising XML document validation in Apache Santuario.","url":"https://insights.sbomify.com/CVE-2019-12400/"}