Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-111347 Overview
CVE-2026-111347 affects go-ldap-admin through version 0.6.2, an open-source LDAP management application maintained in the opsre/go-ldap-admin repository. The application embeds a hard-coded RSA private key in its public source tree. That key protects encrypted login passwords transmitted to the server. Unauthenticated attackers who intercept encrypted passwords can decrypt them offline using the leaked key. Attackers can also abuse the /base/decryptpwd endpoint as a decryption oracle. Successful exploitation recovers cleartext Lightweight Directory Access Protocol (LDAP) credentials for reuse against directory services. The weakness is classified as [CWE-321] Use of Hard-coded Cryptographic Key.
Critical Impact
Unauthenticated recovery of cleartext LDAP credentials, enabling downstream directory compromise and lateral movement across any system bound to the affected LDAP backend.
Affected Products
- opsre/go-ldap-admin versions through 0.6.2
- Deployments exposing the /base/decryptpwd endpoint
- Any LDAP directory whose service accounts or user credentials are managed through the affected release
Discovery Timeline
- 2026-10-15 - CVE-2026-111347 published to the National Vulnerability Database (NVD)
- 2026-10-16 - Record last modified in NVD
Technical Details for CVE-2026-111347
Vulnerability Analysis
The go-ldap-admin project ships with an RSA private key committed to the public repository at config/config.go. The server uses this key pair to decrypt passwords submitted during login flows. Because the private key is published alongside the source, any attacker who obtains an encrypted password blob can perform offline decryption. The vulnerability requires no authentication, no user interaction, and no local access to the server. Attackers can harvest encrypted passwords from network captures, logs, or application traces and recover cleartext LDAP credentials. Those recovered credentials typically grant access to the directory service and any downstream applications bound to it.
Root Cause
The root cause is a hard-coded cryptographic key [CWE-321]. The RSA private key stored in config/config.go lines 20-24 and referenced near lines 76-77 is identical across every deployment of the affected release. Secret material published in a public source repository provides no confidentiality guarantee. The decryption logic in logic/base_logic.go lines 188-199 uses this static key to recover plaintext passwords, and the route /base/decryptpwd registered in routes/base_routes.go exposes that decryption capability without authentication.
Attack Vector
An unauthenticated remote attacker reaches the vulnerability through two paths. First, the attacker captures an encrypted password transmitted to the application and decrypts it offline with the public RSA private key. Second, the attacker submits any ciphertext to the /base/decryptpwd HTTP endpoint, which returns the plaintext. Both paths yield reusable LDAP credentials. See the VulnCheck Advisory on Hardcoded RSA Key and the HackMD Analysis on Security Flaw for the full exploitation walkthrough.
// No verified exploit code is reproduced here.
// Technical references in the advisory describe the ciphertext format
// and the request shape expected by the /base/decryptpwd endpoint.
Detection Methods for CVE-2026-111347
Indicators of Compromise
- HTTP requests to the /base/decryptpwd endpoint from unexpected source addresses or without a valid session context
- Repeated POST requests containing base64-encoded ciphertext bodies targeting the decryption route
- Successful LDAP binds using accounts whose encrypted passwords were recently observed in captured traffic or application logs
- Unexpected process execution or configuration reads touching config/config.go on hosts running go-ldap-admin
Detection Strategies
- Deploy web access log analytics that flag any request path matching /base/decryptpwd, regardless of response code
- Correlate LDAP authentication events with recent reads of the go-ldap-admin service to identify credential reuse
- Alert on outbound connections from the application host to attacker-controlled infrastructure following /base/decryptpwd activity
Monitoring Recommendations
- Forward application access logs, LDAP audit logs, and host process telemetry into a central analytics pipeline for cross-source correlation
- Baseline the normal set of clients that interact with the admin UI and alert on new or anonymous sources
- Monitor directory services for anomalous bind patterns, impossible-travel authentications, and privilege escalations originating from accounts managed through the affected application
How to Mitigate CVE-2026-111347
Immediate Actions Required
- Remove the /base/decryptpwd endpoint from external exposure using a reverse proxy or network ACL until a patched release is deployed
- Rotate every LDAP credential that was ever submitted to the affected go-ldap-admin instance, including service accounts
- Review recent LDAP authentication logs for suspicious binds and revoke sessions associated with compromised accounts
- Regenerate the application's RSA key pair with a locally generated secret instead of the repository default
Patch Information
No fixed version is listed in the published advisory at the time of writing. Track the GitHub Repository for go-ldap-admin and the VulnCheck Advisory on Hardcoded RSA Key for release updates. Any mitigation that retains the repository-default RSA key provides no protection, because the private key is publicly available.
Workarounds
- Replace the hard-coded RSA key pair in config/config.go with a locally generated key before deploying the application
- Place the admin interface behind authenticated reverse-proxy access and block unauthenticated requests to /base/decryptpwd
- Restrict management network segments so only trusted administrators can reach the service
- Disable or remove the decryption endpoint entirely if it is not required for operational workflows
# Generate a replacement RSA key pair and restrict access to the admin endpoint
openssl genrsa -out go-ldap-admin.key 2048
openssl rsa -in go-ldap-admin.key -pubout -out go-ldap-admin.pub
# Example nginx snippet blocking the decryption oracle at the edge
# location = /base/decryptpwd { return 403; }
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

