{"answers":{"affected":"24 open source packages ship an affected version, including org.apache.derby:derby. It affects 1 product.","exploited":"There is no known exploitation of CVE-2022-46337 in the wild and no public exploit code.","fix":"Upgrade org.apache.derby:derby to a fixed version for your release line: 10.14.2.1, 10.15.2.1 or 10.16.1.2.","what":"CVE-2022-46337 is a critical authentication bypass vulnerability in Apache Derby, published on 20 Nov 2023. 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-46337 and fix it if it is affected.\n\nWhat it is: CVE-2022-46337 is a critical authentication bypass vulnerability in Apache Derby, published on 20 Nov 2023. 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-46337 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- org.apache.derby:derby (Maven): affected all versions; no fix listed\n- org.apache.derby:derby (Maven): affected all versions; no fix listed\n- org.apache.derby:derby (Maven): affected from 10.1.1.0 up to 10.1.3.1; no fix listed\n- org.apache.derby:derby (Maven): affected from 10.1.1.0 up to 10.1.3.1; no fix listed\n- org.apache.derby:derby (Maven): affected from 10.10.1.1 up to 10.10.2.0; no fix listed\n- org.apache.derby:derby (Maven): affected from 10.10.1.1 up to 10.10.2.0; no fix listed\n- org.apache.derby:derby (Maven): affected from 10.14.2.0; fixed in 10.14.2.1\n- org.apache.derby:derby (Maven): affected from 10.14.2.0; fixed in 10.14.2.1\n- org.apache.derby:derby (Maven): affected from 10.15.1.3; fixed in 10.15.2.1\n- org.apache.derby:derby (Maven): affected from 10.15.1.3; fixed in 10.15.2.1\n- org.apache.derby:derby (Maven): affected from 10.16.1.1; fixed in 10.16.1.2\n- org.apache.derby:derby (Maven): affected from 10.16.1.1; fixed in 10.16.1.2\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-46337/ (Markdown: https://insights.sbomify.com/CVE-2022-46337/index.md)","id":"CVE-2022-46337","markdown":"https://insights.sbomify.com/CVE-2022-46337/index.md","name":"CVE-2022-46337","record":{"aliases":["DEBIAN-CVE-2022-46337","ECHO-e8be-a1ee-9416","GHSA-rcjc-c4pj-xxrp","ROOT-APP-MAVEN-CVE-2022-46337","UBUNTU-CVE-2022-46337"],"analysis":{"component_type":"database","fix_type":"upgrade","impacts":["privilege_escalation","data_read","data_modify","code_execution"],"network_reachable":"yes","non_default_config":true,"product_category":"Apache Derby database","requires_auth":"none","summary":"An LDAP injection flaw in Apache Derby allows attackers to bypass authentication, potentially leading to disk exhaustion, code execution, or data corruption.","user_interaction":"not_required","vuln_class":"auth_bypass"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"apache","cpe":[{"product":"derby","vendor":"apache"}],"cvss":{"score":9.8,"severity":"critical","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/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":"A cleverly devised username might bypass LDAP authentication checks. In \nLDAP-authenticated Derby installations, this could let an attacker fill \nup the disk by creating junk Derby databases. In LDAP-authenticated \nDerby installations, this could also allow the attacker to execute \nmalware which was visible to and executable by the account which booted \nthe Derby server. In LDAP-protected databases which weren't also \nprotected by SQL GRANT/REVOKE authorization, this vulnerability could \nalso let an attacker view and corrupt sensitive data and run sensitive \ndatabase functions and procedures.\n\nMitigation:\n\nUsers should upgrade to Java 21 and Derby 10.17.1.0.\n\nAlternatively, users who wish to remain on older Java versions should \nbuild their own Derby distribution from one of the release families to \nwhich the fix was backported: 10.16, 10.15, and 10.14. Those are the \nreleases which correspond, respectively, with Java LTS versions 17, 11, \nand 8.","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 Derby: LDAP injection vulnerability in authenticator","id":"CVE-2022-46337","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"auth_bypass","year":"2022"},"n_packages":24,"n_references":1,"next":{"headline":"Information disclosure in n/a","id":"CVE-2022-46338"},"packages":[{"ecosystem":"Maven","fixed":[],"introduced":[],"last_affected":[],"package":"org.apache.derby:derby","purl":null,"source":"GHSA-rcjc-c4pj-xxrp"},{"ecosystem":"Maven","fixed":[],"introduced":[],"last_affected":[],"package":"org.apache.derby:derby","purl":"pkg:maven/org.apache.derby/derby","source":"GHSA-rcjc-c4pj-xxrp"},{"ecosystem":"Maven","fixed":[],"introduced":["10.1.1.0"],"last_affected":["10.1.3.1"],"package":"org.apache.derby:derby","purl":null,"source":"GHSA-rcjc-c4pj-xxrp"},{"ecosystem":"Maven","fixed":[],"introduced":["10.1.1.0"],"last_affected":["10.1.3.1"],"package":"org.apache.derby:derby","purl":"pkg:maven/org.apache.derby/derby","source":"GHSA-rcjc-c4pj-xxrp"},{"ecosystem":"Maven","fixed":[],"introduced":["10.10.1.1"],"last_affected":["10.10.2.0"],"package":"org.apache.derby:derby","purl":null,"source":"GHSA-rcjc-c4pj-xxrp"},{"ecosystem":"Maven","fixed":[],"introduced":["10.10.1.1"],"last_affected":["10.10.2.0"],"package":"org.apache.derby:derby","purl":"pkg:maven/org.apache.derby/derby","source":"GHSA-rcjc-c4pj-xxrp"},{"ecosystem":"Maven","fixed":["10.14.2.1"],"introduced":["10.14.2.0"],"last_affected":[],"package":"org.apache.derby:derby","purl":null,"source":"GHSA-rcjc-c4pj-xxrp"},{"ecosystem":"Maven","fixed":["10.14.2.1"],"introduced":["10.14.2.0"],"last_affected":[],"package":"org.apache.derby:derby","purl":"pkg:maven/org.apache.derby/derby","source":"GHSA-rcjc-c4pj-xxrp"},{"ecosystem":"Maven","fixed":["10.15.2.1"],"introduced":["10.15.1.3"],"last_affected":[],"package":"org.apache.derby:derby","purl":null,"source":"GHSA-rcjc-c4pj-xxrp"},{"ecosystem":"Maven","fixed":["10.15.2.1"],"introduced":["10.15.1.3"],"last_affected":[],"package":"org.apache.derby:derby","purl":"pkg:maven/org.apache.derby/derby","source":"GHSA-rcjc-c4pj-xxrp"},{"ecosystem":"Maven","fixed":["10.16.1.2"],"introduced":["10.16.1.1"],"last_affected":[],"package":"org.apache.derby:derby","purl":null,"source":"GHSA-rcjc-c4pj-xxrp"},{"ecosystem":"Maven","fixed":["10.16.1.2"],"introduced":["10.16.1.1"],"last_affected":[],"package":"org.apache.derby:derby","purl":"pkg:maven/org.apache.derby/derby","source":"GHSA-rcjc-c4pj-xxrp"},{"ecosystem":"Maven","fixed":[],"introduced":["10.2.1.6"],"last_affected":["10.2.2.0"],"package":"org.apache.derby:derby","purl":null,"source":"GHSA-rcjc-c4pj-xxrp"},{"ecosystem":"Maven","fixed":[],"introduced":["10.2.1.6"],"last_affected":["10.2.2.0"],"package":"org.apache.derby:derby","purl":"pkg:maven/org.apache.derby/derby","source":"GHSA-rcjc-c4pj-xxrp"},{"ecosystem":"Maven","fixed":[],"introduced":["10.3.1.4"],"last_affected":["10.3.3.0"],"package":"org.apache.derby:derby","purl":null,"source":"GHSA-rcjc-c4pj-xxrp"},{"ecosystem":"Maven","fixed":[],"introduced":["10.3.1.4"],"last_affected":["10.3.3.0"],"package":"org.apache.derby:derby","purl":"pkg:maven/org.apache.derby/derby","source":"GHSA-rcjc-c4pj-xxrp"},{"ecosystem":"Maven","fixed":[],"introduced":["10.4.1.3"],"last_affected":["10.4.2.0"],"package":"org.apache.derby:derby","purl":null,"source":"GHSA-rcjc-c4pj-xxrp"},{"ecosystem":"Maven","fixed":[],"introduced":["10.4.1.3"],"last_affected":["10.4.2.0"],"package":"org.apache.derby:derby","purl":"pkg:maven/org.apache.derby/derby","source":"GHSA-rcjc-c4pj-xxrp"},{"ecosystem":"Maven","fixed":[],"introduced":["10.5.1.1"],"last_affected":["10.5.3.0"],"package":"org.apache.derby:derby","purl":null,"source":"GHSA-rcjc-c4pj-xxrp"},{"ecosystem":"Maven","fixed":[],"introduced":["10.5.1.1"],"last_affected":["10.5.3.0"],"package":"org.apache.derby:derby","purl":"pkg:maven/org.apache.derby/derby","source":"GHSA-rcjc-c4pj-xxrp"},{"ecosystem":"Maven","fixed":[],"introduced":["10.6.1.0"],"last_affected":["10.6.2.1"],"package":"org.apache.derby:derby","purl":null,"source":"GHSA-rcjc-c4pj-xxrp"},{"ecosystem":"Maven","fixed":[],"introduced":["10.6.1.0"],"last_affected":["10.6.2.1"],"package":"org.apache.derby:derby","purl":"pkg:maven/org.apache.derby/derby","source":"GHSA-rcjc-c4pj-xxrp"},{"ecosystem":"Maven","fixed":[],"introduced":["10.8.1.2"],"last_affected":["10.8.3.0"],"package":"org.apache.derby:derby","purl":null,"source":"GHSA-rcjc-c4pj-xxrp"},{"ecosystem":"Maven","fixed":[],"introduced":["10.8.1.2"],"last_affected":["10.8.3.0"],"package":"org.apache.derby:derby","purl":"pkg:maven/org.apache.derby/derby","source":"GHSA-rcjc-c4pj-xxrp"}],"prev":{"headline":"DO NOT USE THIS CANDIDATE NUMBER.","id":"CVE-2022-46336"},"products":["Apache Derby"],"published":"2023-11-20","related":[{"cvss_score":9.1,"headline":"Improper Restriction of XML External Entity Reference in Apace Derby","id":"CVE-2015-1832","kev_date_added":null,"published":"2016-10-03"},{"cvss_score":7.5,"headline":"Improper Access Control in Apache Derby","id":"CVE-2010-2232","kev_date_added":null,"published":"2017-10-23"},{"cvss_score":5.3,"headline":"Improper Access Control in Apache Derby","id":"CVE-2018-1313","kev_date_added":null,"published":"2018-05-07"},{"cvss_score":5,"headline":"Apache Derby exposes user and password attributes","id":"CVE-2005-4849","kev_date_added":null,"published":"2007-07-05"},{"cvss_score":4,"headline":"Missing authorization in n/a","id":"CVE-2006-7216","kev_date_added":null,"published":"2007-07-05"},{"cvss_score":4,"headline":"Apache Derby SQL Injection","id":"CVE-2006-7217","kev_date_added":null,"published":"2007-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":"yes","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-06-10","vendors":["Apache Software Foundation"]},"summary":"An LDAP injection flaw in Apache Derby allows attackers to bypass authentication, potentially leading to disk exhaustion, code execution, or data corruption.","url":"https://insights.sbomify.com/CVE-2022-46337/"}