Cloudanix VulnDB

CVE-2022-23942

High · 7.5

CVSS

7.5

EPSS

3.4%

Published

Apr 26, 2022

CISA due date

—

Cloudanix analysis

Next patch cycle SSVC: Track

A flaw in Apache Doris could let attackers uncover stored passwords for directory services, risking unauthorized access to user accounts and systems.

Exploitation
Remote Unauthenticated
Attacker needs
None
Complexity
Low
Impact
Data Exposure
Component
Application
Class
Credential Exposure
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

The vulnerability stems from a hardcoded cryptographic key and initialization vector used to encrypt LDAP passwords in Apache Doris versions prior to 1.0.0, enabling unauthorized decryption and exposure of sensitive credentials.

Why it matters to the business

This flaw allows potential exposure of LDAP credentials, which could facilitate unauthorized access to authentication systems and increase risk of data breaches or lateral movement within affected environments.

How an attack unfolds

An attacker with access to the Doris application binaries or configuration files extracts the embedded key and IV, identifies encrypted LDAP password entries, and decrypts them to obtain plaintext credentials for subsequent attacks.

How to fix it

Upgrade Apache Doris to version 1.0.0 or later to eliminate the hardcoded cryptographic material. Additionally, rotate any LDAP credentials that may have been stored under the vulnerable encryption scheme.

How to confirm the fix worked

Verify the deployed version is 1.0.0 or higher. Review configuration and source code to confirm absence of hardcoded key and IV values. Test LDAP integration with new credentials.

Typical attack path

  1. Access Doris deployment artifacts or source
  2. Locate and extract hardcoded key/IV
  3. Identify encrypted LDAP password storage
  4. Decrypt passwords using extracted key
  5. Leverage obtained credentials for unauthorized access

How to detect it

Examine application logs for unexpected LDAP queries or authentication events. Review system access logs for unauthorized reads of configuration files containing encrypted passwords. No specific post-exploitation IOCs due to the nature of static credential exposure.

What your security team should do

  • Prioritize upgrade to fixed version
  • Audit and rotate exposed LDAP passwords
  • Monitor for anomalous LDAP authentication attempts
  • Implement secrets management best practices

The record

Apache Doris, prior to 1.0.0, used a hardcoded key and IV to initialize the cipher used for ldap password, which may lead to information disclosure.

Affected packages

Ecosystem Package Introduced Fixed
PyPI pydoris 0 1.0.0
Ubuntu:16.04:LTS doris 0 No fix
Ubuntu:18.04:LTS doris 0 No fix
Ubuntu:20.04:LTS doris 0 No fix
Ubuntu:22.04:LTS doris 0 No fix
Ubuntu:24.04:LTS doris 0 No fix
Ubuntu:24.10 doris 0 No fix
Ubuntu:25.04 doris 0 No fix
Ubuntu:25.10 doris 0 No fix
Ubuntu:Pro:16.04:LTS doris 0 No fix
Ubuntu:Pro:18.04:LTS doris 0 No fix
Ubuntu:Pro:20.04:LTS doris 0 No fix

Related vulnerabilities