CVE-2021-22533
Executive Summary
CVE-2021-22533 is a medium-severity vulnerability in OpenText™ eDirectory 9.2.4.0000 that allows insertion of sensitive information into log files. This flaw can lead to unauthorized disclosure of sensitive data, such as credentials or internal system details, through log file exposure. The vulnerability has a CVSS score of 6.5, indicating moderate risk, but the EPSS score of 0.0% suggests low exploitation likelihood in the wild. No public proof-of-concept (PoC) or exploit code is available, and patch status remains unknown.
This record — and 170,000+ others — are available via the ValtersIT API. One endpoint replaces five: NVD + GitHub CVE + CISA KEV + EPSS + Nuclei + Exploit-DB, unified.
No signup required
Supply Chain & Package Security
This vulnerability is not related to NPM, PyPI, Go, or Ruby packages. It affects a proprietary enterprise directory service (OpenText eDirectory), which is typically deployed in on-premises environments. No supply chain implications are identified.
CVSS Breakdown & Threat Level
- CVSS Score: 6.5 (Medium)
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
- Attack Vector: Network (AV:N) – exploitable remotely.
- Attack Complexity: Low (AC:L) – no special conditions required.
- Privileges Required: None (PR:N) – no authentication needed.
- User Interaction: None (UI:N) – no user action required.
- Scope: Unchanged (S:U) – impact confined to the vulnerable component.
- Confidentiality Impact: Low (C:L) – limited information disclosure.
- Integrity Impact: None (I:N) – no data modification.
- Availability Impact: None (A:N) – no service disruption.
Threat Level: Medium. The vulnerability allows sensitive data leakage via logs, but no active exploitation or public PoC exists.
Deep Dive & Mechanics
The vulnerability resides in OpenText eDirectory 9.2.4.0000, where sensitive information (e.g., passwords, tokens, or internal paths) is inadvertently written to log files during normal operation. This occurs due to improper sanitization of log output, likely in authentication or error-handling routines. An attacker with access to log files (e.g., via web server misconfiguration, shared storage, or local access) can extract this sensitive data.
Root Cause: The application logs sensitive input without redaction, violating secure logging practices (CWE-532: Insertion of Sensitive Information into Log File).
Attack Scenario: An attacker gains read access to log files through:
- Directory traversal or path disclosure.
- Shared log storage (e.g., centralized logging systems).
- Physical or remote access to the server.
Once logs are accessed, the attacker parses them for credentials or other secrets.
Vulnerable vs. Patched Code
No patched version is available. The vulnerable code likely resembles:
// Vulnerable: logs raw input
log_message("User login attempt: %s", user_input);
A secure implementation would redact sensitive fields:
// Patched: redact sensitive data
log_message("User login attempt: [REDACTED]");
Without an official patch, mitigation relies on configuration changes (see Remediation).
Exploitation & Lab Setup
Red Team (Offensive)
Prerequisites:
- Access to eDirectory logs (e.g., via web server misconfiguration or local access).
- Target running OpenText eDirectory 9.2.4.0000.
Steps:
- Identify log file location (e.g.,
/var/log/edirectory/orC:\ProgramData\OpenText\eDirectory\logs). - Use a script to extract sensitive patterns:
#!/bin/bash
# Extract potential credentials from logs
grep -E '(password|secret|token|auth)' /var/log/edirectory/*.log
- If logs are accessible via HTTP (e.g., misconfigured web server), use curl:
curl http://target/logs/edirectory.log | grep -E '(password|secret)'
No exploit code is available from Exploit-DB.
Blue Team (Defensive)
Detection:
- Monitor for unauthorized access to log files (e.g.,
access_logoredirectory.log). - Use file integrity monitoring (FIM) to detect log tampering.
Hunting:
- Search for sensitive data in logs using SIEM rules (see Detection Engineering).
Mitigation:
- Restrict log file permissions (e.g.,
chmod 640). - Implement log redaction at the application level (if possible).
- Use centralized logging with access controls.
Indicators of Compromise (IOCs)
- File Paths:
/var/log/edirectory/*.log,C:\ProgramData\OpenText\eDirectory\logs\*.log - Log Patterns: Lines containing
password=,secret=,token=, or base64-encoded credentials. - Network: Unusual access to log file endpoints (e.g.,
GET /logs/edirectory.log). - Process: Unauthorized
greporcatcommands on log files.
Detection Engineering
YARA Rule
rule CVE_2021_22533_Sensitive_Logging {
meta:
description = "Detects sensitive data in OpenText eDirectory logs"
author = "Valters IT"
date = "2025-04-10"
cve = "CVE-2021-22533"
strings:
$sensitive1 = /password\s*[:=]\s*\S+/i
$sensitive2 = /secret\s*[:=]\s*\S+/i
$sensitive3 = /token\s*[:=]\s*\S+/i
$sensitive4 = /auth\s*[:=]\s*\S+/i
condition:
any of ($sensitive*)
}
Sigma Rule
title: Sensitive Data in eDirectory Logs
id: 8a9b3c4d-5e6f-7a8b-9c0d-1e2f3a4b5c6d
status: experimental
description: Detects insertion of sensitive information into OpenText eDirectory log files
author: Valters IT
date: 2025-04-10
logsource:
category: file_event
product: windows
definition: 'Monitor file creation/modification events for eDirectory logs'
detection:
selection:
TargetFilename|contains: 'edirectory.log'
EventID: 11 # FileCreate
condition: selection
falsepositives:
- Legitimate log entries with similar patterns
level: medium
Suricata Rule
alert http any any -> any any (msg:"CVE-2021-22533 - Sensitive Data in eDirectory Logs"; flow:to_server; content:"edirectory.log"; http_uri; pcre:"/(password|secret|token|auth)\s*[:=]\s*\S+/i"; sid:1000001; rev:1;)
Remediation & Mitigation
- Apply Patch: Contact OpenText for an official patch (currently unavailable).
- Configuration Hardening:
- Disable verbose logging: Set
log_level = ERRORin eDirectory config. - Redact sensitive fields using log shippers (e.g., Logstash with
mutatefilter).
- Disable verbose logging: Set
- Access Control:
- Restrict log file permissions to
rootoredirectoryservice account. - Use
chmod 640on log directories.
- Restrict log file permissions to
- Monitoring:
- Deploy YARA/Sigma rules to detect sensitive data in logs.
- Alert on unauthorized log access.
- Network Segmentation: Isolate eDirectory servers from untrusted networks.
Valters IT
Senior DevSecOps & Cyber Threat Intelligence Expert
What is this? Security researchers use these exact search queries on Shodan.io (a search engine for internet-connected devices) to find vulnerable systems globally. You can copy these dorks to see if your organization's IP space is exposed.
💣 PoC CODE AVAILABLE
Exploit code for this CVE is tracked in our database.
Access poc_code via API Pro.