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.
References8
- github.com/opsre/go-ldap-admin
- github.com/opsre/go-ldap-admin/blob/v0.6.2/config/config.go#L20…
- github.com/opsre/go-ldap-admin/blob/v0.6.2/config/config.go#L76…
- github.com/opsre/go-ldap-admin/blob/v0.6.2/logic/base_logic.go#…
- github.com/opsre/go-ldap-admin/blob/v0.6.2/routes/base_routes.g…
- hackmd.io/@hieuPenguinnn/go-ldap-admin-hardcoded-rsa-key-decryp…
- www.vulncheck.com/advisories/go-ldap-admin-through-0.6.2-hard-c…
- hackmd.io/@hieuPenguinnn/go-ldap-admin-hardcoded-rsa-key-decryp…
Metrics
- CVSS 3.1
-
5.9
MEDIUM
Score source: CNA
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N - CVSS 4.0
-
8.2
HIGH
Score source: CNA
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X - EPSS — exploit probability
- 0% percentile: 43 · as of 10 November 2026
- CWE
- CWE-321
Could this be exploited in your environment?
A patch closes the known hole. A penetration test shows what an attacker can still reach — with proof.