Description
go-ldap-admin through 0.6.2 embeds a hard-coded RSA private key, published in the public repository, that protects encrypted login passwords. Unauthenticated attackers who capture encrypted passwords can decrypt them offline or via the /base/decryptpwd endpoint, recovering cleartext LDAP credentials for reuse.
Severity (CVSS)
| Base score | 8.2 |
|---|---|
| Severity | High |
| Version | CVSS 4.0 |
| Vector | CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N |
| Provided by | CNA |
Weaknesses
- CWE-321 — Use of Hard-coded Cryptographic Key
Affected products
| Vendor | Product | Versions |
|---|---|---|
| opsre | go-ldap-admin | 0 to <=0.6.2 [affected] |
References
- https://hackmd.io/@hieuPenguinnn/go-ldap-admin-hardcoded-rsa-key-decrypt-oracle-and-unauth-password-reset (third-party-advisory)
- https://github.com/opsre/go-ldap-admin/blob/v0.6.2/config/config.go#L20-L24 (technical-description)
- https://github.com/opsre/go-ldap-admin/blob/v0.6.2/config/config.go#L76-L77 (technical-description)
- https://github.com/opsre/go-ldap-admin/blob/v0.6.2/routes/base_routes.go#L50 (technical-description)
- https://github.com/opsre/go-ldap-admin/blob/v0.6.2/logic/base_logic.go#L188-L199 (technical-description)
- https://github.com/opsre/go-ldap-admin (product)
- https://www.vulncheck.com/advisories/go-ldap-admin-through-0.6.2-hard-coded-rsa-private-key-via-base-decryptpwd (third-party-advisory)
Assess this vulnerability
Compare your deployed product and version with the source record. Review vendor references for fixes and workarounds. A CVSS score describes technical severity; it does not establish that your systems are affected or that exploitation has occurred.
Browse all CVE security advisories · Symaro cybersecurity services
Generated from the official CVE List on 16 Oct 2026 07:00 UTC.