The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2022-46337

CVE-2022-46337: Apache Derby Auth Bypass Vulnerability

CVE-2022-46337 is an authentication bypass flaw in Apache Derby that allows attackers to circumvent LDAP authentication checks. This post covers the technical details, affected versions, security impact, and mitigation.

Published: February 18, 2026

CVE-2022-46337 Overview

CVE-2022-46337 is an LDAP Injection vulnerability in Apache Derby that allows attackers to bypass LDAP authentication checks through a cleverly devised username. This authentication bypass vulnerability can lead to multiple severe impacts including disk exhaustion attacks, malware execution, and unauthorized access to sensitive database operations.

Critical Impact

This vulnerability enables complete authentication bypass in LDAP-authenticated Derby installations, potentially allowing attackers to execute malicious code, corrupt sensitive data, and run privileged database functions.

Affected Products

  • Apache Derby versions prior to 10.17.1.0
  • Apache Derby 10.16.1.1 and earlier in the 10.16 release family
  • LDAP-authenticated Derby installations across all affected versions

Discovery Timeline

  • 2023-11-20 - CVE CVE-2022-46337 published to NVD
  • 2025-06-10 - Last updated in NVD database

Technical Details for CVE-2022-46337

Vulnerability Analysis

This vulnerability is classified under CWE-74 (Improper Neutralization of Special Elements in Output Used by a Downstream Component), commonly known as Injection. The flaw exists in how Apache Derby handles username inputs during LDAP authentication, allowing specially crafted usernames to bypass authentication mechanisms entirely.

In LDAP-authenticated Derby environments, the vulnerability creates three distinct attack scenarios. First, an attacker can fill up disk space by creating arbitrary junk Derby databases, leading to denial of service conditions. Second, if malware is visible to and executable by the Derby server's service account, an attacker can leverage this bypass to execute that malicious code. Third, in databases protected only by LDAP authentication (without SQL GRANT/REVOKE authorization), attackers can view and corrupt sensitive data while executing privileged database functions and procedures.

Root Cause

The root cause lies in insufficient input validation and sanitization of usernames during the LDAP authentication process. Apache Derby fails to properly neutralize special elements within username inputs before passing them to the LDAP authentication subsystem. This allows attackers to craft malicious usernames that manipulate the LDAP query logic, effectively bypassing the intended authentication controls.

Attack Vector

The vulnerability is exploitable over the network without requiring any prior authentication or user interaction. An attacker targets LDAP-authenticated Derby installations by submitting a specially crafted username during the authentication process. The malicious username contains special characters or sequences that alter the LDAP authentication query behavior, causing the system to incorrectly validate the attacker's credentials.

The attack exploits the trust relationship between Derby and its configured LDAP server by manipulating the authentication flow rather than compromising the LDAP server directly. Once authentication is bypassed, the attacker gains unauthorized access to the Derby database server with the privileges of legitimate users.

Detection Methods for CVE-2022-46337

Indicators of Compromise

  • Unusual or malformed usernames in Derby authentication logs containing special LDAP characters such as *, (, ), \, or null bytes
  • Unexpected creation of new Derby databases, particularly with random or suspicious naming patterns
  • Authentication success events for unknown or suspicious user accounts
  • Abnormal disk usage patterns or sudden disk space exhaustion on Derby server hosts

Detection Strategies

  • Monitor Derby authentication logs for usernames containing LDAP injection patterns or special metacharacters
  • Implement alerting for database creation events that occur outside normal operational windows
  • Deploy file integrity monitoring on Derby data directories to detect unauthorized database creation
  • Review Derby server service account activity for unexpected process execution or file access

Monitoring Recommendations

  • Enable verbose logging for Derby's LDAP authentication module to capture all authentication attempts
  • Configure disk space monitoring with alerts for unusual growth patterns in Derby database directories
  • Implement network monitoring for connections to Derby servers from unexpected source addresses
  • Establish baseline metrics for database operations and alert on significant deviations

How to Mitigate CVE-2022-46337

Immediate Actions Required

  • Upgrade to Java 21 and Apache Derby 10.17.1.0 immediately for production environments
  • For environments requiring older Java versions, build custom Derby distributions from patched release families: 10.16 (Java 17), 10.15 (Java 11), or 10.14 (Java 8)
  • Implement SQL GRANT/REVOKE authorization as an additional layer of defense for all Derby databases
  • Restrict network access to Derby servers using firewall rules to limit exposure

Patch Information

Apache has released Derby version 10.17.1.0 which addresses this vulnerability. The fix has also been backported to the 10.16, 10.15, and 10.14 release families to support organizations running Java LTS versions 17, 11, and 8 respectively. Organizations should obtain the patched source code and build their own distributions for these older release families.

For additional details, refer to the Apache Mailing List Discussion regarding this vulnerability.

Workarounds

  • Enable SQL GRANT/REVOKE authorization on all Derby databases as a defense-in-depth measure to limit damage from authentication bypass
  • Restrict the Derby server service account permissions to minimize the impact of potential malware execution
  • Implement network segmentation to isolate Derby servers from untrusted network segments
  • Consider temporarily disabling LDAP authentication and using alternative authentication mechanisms until patches can be applied
bash
# Configuration example - Enable SQL authorization in Derby
# Add to derby.properties file
derby.database.sqlAuthorization=true
derby.connection.requireAuthentication=true

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeAuth Bypass

  • Vendor/TechApache Derby

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability0.05%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-74
  • Technical References
  • Apache Mailing List Discussion
  • Latest CVEs
  • CVE-2025-70797: LimeSurvey XSS Vulnerability

  • CVE-2025-30650: Juniper Junos OS Auth Bypass Vulnerability

  • CVE-2026-35471: Goshs Path Traversal Vulnerability

  • CVE-2026-35393: Goshs Path Traversal Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English