{"answers":{"affected":"2 open source packages ship an affected version, including mysql:mysql-connector-java. It affects 6 products.","exploited":"There is no known exploitation of CVE-2021-2471 in the wild and no public exploit code.","fix":"Upgrade mysql:mysql-connector-java to 8.0.27 or later.","what":"CVE-2021-2471 is a medium-severity vulnerability in Oracle Communications Cloud Native Core Policy, published on 20 Oct 2021. An attacker needs administrator access to exploit it, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2021-2471 and fix it if it is affected.\n\nWhat it is: CVE-2021-2471 is a medium-severity vulnerability in Oracle Communications Cloud Native Core Policy, published on 20 Oct 2021. An attacker needs administrator access to exploit it, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2021-2471 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- mysql:mysql-connector-java (Maven): affected from 8.0.0; fixed in 8.0.27\n- mysql:mysql-connector-java (Maven): affected from 8.0.0; fixed in 8.0.27\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-2021-2471/ (Markdown: https://insights.sbomify.com/CVE-2021-2471/index.md)","id":"CVE-2021-2471","markdown":"https://insights.sbomify.com/CVE-2021-2471/index.md","name":"CVE-2021-2471","record":{"aliases":["CLSA-2026-1775521830","GHSA-w6f2-8wx4-47r5","SUSE-SU-2022:1142-1","UBUNTU-CVE-2021-2471","openSUSE-SU-2022:0658-1","openSUSE-SU-2024:11883-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read","denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"MySQL Connector/J","requires_auth":"high_privilege","summary":"A high-privileged attacker can access critical data or cause a denial of service in MySQL Connector/J via network access.","user_interaction":"not_required","vuln_class":"information_disclosure"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"oracle","cpe":[{"product":"communications_cloud_native_core_console","vendor":"oracle"},{"product":"communications_cloud_native_core_network_slice_selection_function","vendor":"oracle"},{"product":"communications_cloud_native_core_policy","vendor":"oracle"},{"product":"communications_cloud_native_core_security_edge_protection_proxy","vendor":"oracle"},{"product":"mysql_connectors","vendor":"oracle"},{"product":"quarkus","vendor":"quarkus"}],"cvss":{"score":5.9,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:N/A:H","version":"3.1"},"cwes":[],"description":"Vulnerability in the MySQL Connectors product of Oracle MySQL (component: Connector/J). Supported versions that are affected are 8.0.26 and prior. Difficult to exploit vulnerability allows high privileged attacker with network access via multiple protocols to compromise MySQL Connectors. Successful attacks of this vulnerability can result in unauthorized access to critical data or complete access to all MySQL Connectors accessible data and unauthorized ability to cause a hang or frequently repeatable crash (complete DOS) of MySQL Connectors. CVSS 3.1 Base Score 5.9 (Confidentiality and Availability impacts). CVSS Vector: (CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:N/A:H).","ecosystems":["Maven","SUSE:HPE Helion OpenStack 8","SUSE:Linux Enterprise Software Development Kit 12 SP5","SUSE:OpenStack Cloud 8","SUSE:OpenStack Cloud 9","SUSE:OpenStack Cloud Crowbar 8","SUSE:OpenStack Cloud Crowbar 9","openSUSE:Leap 15.3","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":"2021-10-22","github_poc":3,"max_poc_stars":54,"metasploit":0,"nuclei":0,"refs":[{"date":"2021-10-22T07:14:25Z","kind":"github_poc","ref":"https://github.com/SecCoder-Security-Lab/jdbc-sqlxml-xxe","stars":54,"title":"h2-jdbc(https://github.com/h2database/h2database/issues/3195) \u0026 mysql-jdbc(CVE-2021-2471) SQLXML XXE vulnerability reproduction."},{"date":"2021-10-22T15:36:38Z","kind":"github_poc","ref":"https://github.com/cckuailong/CVE-2021-2471","stars":3,"title":null},{"date":"2021-10-22T17:59:16Z","kind":"github_poc","ref":"https://github.com/DrunkenShells/CVE-2021-2471","stars":3,"title":"PoC for CVE-2021-2471 - XXE in MySQL Connector/J"}],"tier":"poc_unverified"},"has_fix":true,"headline":"Incorrect Authorization in MySQL Connector Java","id":"CVE-2021-2471","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":"oracle:communications_cloud_native_core_policy","products":["oracle:communications_cloud_native_core_policy"],"type":"information_disclosure","year":"2021"},"n_packages":10,"n_references":2,"next":{"headline":"Missing authorization in Web Analytics","id":"CVE-2021-2474"},"packages":[{"ecosystem":"Maven","fixed":["8.0.27"],"introduced":["8.0.0"],"last_affected":[],"package":"mysql:mysql-connector-java","purl":null,"source":"GHSA-w6f2-8wx4-47r5"},{"ecosystem":"Maven","fixed":["8.0.27"],"introduced":["8.0.0"],"last_affected":[],"package":"mysql:mysql-connector-java","purl":"pkg:maven/mysql/mysql-connector-java","source":"GHSA-w6f2-8wx4-47r5"},{"ecosystem":"SUSE:HPE Helion OpenStack 8","fixed":["8.0.25-5.13.1"],"introduced":["0"],"last_affected":[],"package":"mysql-connector-java","purl":"pkg:rpm/suse/mysql-connector-java\u0026distro=HPE%20Helion%20OpenStack%208","source":"SUSE-SU-2022:1142-1"},{"ecosystem":"SUSE:Linux Enterprise Software Development Kit 12 SP5","fixed":["8.0.25-5.13.1"],"introduced":["0"],"last_affected":[],"package":"mysql-connector-java","purl":"pkg:rpm/suse/mysql-connector-java\u0026distro=SUSE%20Linux%20Enterprise%20Software%20Development%20Kit%2012%20SP5","source":"SUSE-SU-2022:1142-1"},{"ecosystem":"SUSE:OpenStack Cloud 8","fixed":["8.0.25-5.13.1"],"introduced":["0"],"last_affected":[],"package":"mysql-connector-java","purl":"pkg:rpm/suse/mysql-connector-java\u0026distro=SUSE%20OpenStack%20Cloud%208","source":"SUSE-SU-2022:1142-1"},{"ecosystem":"SUSE:OpenStack Cloud 9","fixed":["8.0.25-5.13.1"],"introduced":["0"],"last_affected":[],"package":"mysql-connector-java","purl":"pkg:rpm/suse/mysql-connector-java\u0026distro=SUSE%20OpenStack%20Cloud%209","source":"SUSE-SU-2022:1142-1"},{"ecosystem":"SUSE:OpenStack Cloud Crowbar 8","fixed":["8.0.25-5.13.1"],"introduced":["0"],"last_affected":[],"package":"mysql-connector-java","purl":"pkg:rpm/suse/mysql-connector-java\u0026distro=SUSE%20OpenStack%20Cloud%20Crowbar%208","source":"SUSE-SU-2022:1142-1"},{"ecosystem":"SUSE:OpenStack Cloud Crowbar 9","fixed":["8.0.25-5.13.1"],"introduced":["0"],"last_affected":[],"package":"mysql-connector-java","purl":"pkg:rpm/suse/mysql-connector-java\u0026distro=SUSE%20OpenStack%20Cloud%20Crowbar%209","source":"SUSE-SU-2022:1142-1"},{"ecosystem":"openSUSE:Leap 15.3","fixed":["5.1.47-3.6.1"],"introduced":["0"],"last_affected":[],"package":"mysql-connector-java","purl":"pkg:rpm/opensuse/mysql-connector-java\u0026distro=openSUSE%20Leap%2015.3","source":"openSUSE-SU-2022:0658-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["8.0.28-1.1"],"introduced":["0"],"last_affected":[],"package":"mysql-connector-java","purl":"pkg:rpm/opensuse/mysql-connector-java\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:11883-1"}],"prev":{"headline":"Privilege escalation in Oracle Linux","id":"CVE-2021-2464"},"products":["MySQL Connectors"],"published":"2021-10-20","related":[{"cvss_score":5.9,"headline":"Uncontrolled Resource Consumption in XNIO","id":"CVE-2020-14340","kev_date_added":null,"published":"2021-06-02"},{"cvss_score":4.3,"headline":"Log entry injection in Spring Framework","id":"CVE-2021-22060","kev_date_added":null,"published":"2022-01-07"}],"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":"CC BY 4.0","name":"SUSE","prefix":"SUSE"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-09-25","vendors":["Oracle Corporation"]},"summary":"A high-privileged attacker can access critical data or cause a denial of service in MySQL Connector/J via network access.","url":"https://insights.sbomify.com/CVE-2021-2471/"}