# CVE-2023-28857: LDAP password leak in Apereo CAS - GHSL-2023-009

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 4.0
- **CVSS:** 4.0 (v3.1, CNA) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:N/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: High; Privileges required: None; User interaction: None; Scope: Changed (impact reaches other components); Confidentiality impact: Low; Integrity impact: None; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.53% (percentile 38, 2026-11-26)
- **CWE:** CWE-200
- **Aliases:** GHSA-p78h-m8pv-g9gm
- **Published:** 2023-06-27T17:10:47.930Z
- **Modified:** 2026-06-17T05:48:55.727Z

## Who should check

- Projects that depend on Maven package org.apereo.cas:cas-server-support-x509-core (\>= 6.5.0, \< 6.6.6)
- Anyone running Apereo CAS \>= 6.5.0, \< 6.5.9.1; \>= 6.6.0, \< 6.6.6

## Description

Apereo CAS is an open source multilingual single sign-on solution for the web. Apereo CAS can be configured to use authentication based on client X509 certificates. These certificates can be provided via TLS handshake or a special HTTP header, such as “ssl\_client\_cert”. When checking the validity of the provided client certificate, X509CredentialsAuthenticationHandler performs check that this certificate is not revoked. To do so, it fetches URLs provided in the “CRL Distribution Points” extension of the certificate, which are taken from the certificate itself and therefore can be controlled by a malicious user. If the CAS server is configured to use an LDAP server for x509 authentication with a password, for example by setting a “cas.authn.x509.ldap.ldap-url” and “cas.authn.x509.ldap.bind-credential” properties, X509CredentialsAuthenticationHandler fetches revocation URLs from the certificate, which can be LDAP urls. When making requests to this LDAP urls, Apereo CAS uses the same password as for initially configured LDAP server, which can lead to a password leak. An unauthenticated user can leak the password used to LDAP connection configured on server. This issue has been addressed in version 6.6.6. Users are advised to upgrade. There are no known workarounds for this vulnerability.

## Affected and fixed versions

- Maven `org.apereo.cas:cas-server-support-x509-core`: affected \>= 6.5.0, \< 6.6.6; fixed 6.6.6 (osv)
- Apereo CAS: \>= 6.5.0, \< 6.5.9.1; \>= 6.6.0, \< 6.6.6 (cvelist)

## Mitigation

- Upgrade org.apereo.cas:cas-server-support-x509-core to 6.6.6 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2023-28857. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-28857.md
Affected: org.apereo.cas:cas-server-support-x509-core >= 6.5.0, < 6.6.6
Fixed in: 6.6.6

Steps:
1. Search this machine and project for org.apereo.cas:cas-server-support-x509-core (Maven), Apereo CAS: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2023-28857 being exploited?

There is no confirmed exploitation: CVE-2023-28857 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.53% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2023-28857?

Medium: CVSS 4.0 (v3.1, scored by CNA). Remote, no login needed. The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2023-28857?

org.apereo.cas:cas-server-support-x509-core \>= 6.5.0, \< 6.6.6.

### Is there a fix for CVE-2023-28857?

Yes. Fixed in 6.6.6. Upgrade org.apereo.cas:cas-server-support-x509-core to 6.6.6 or later.

### How do I check if I'm affected by CVE-2023-28857?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2023-28857>
- vendor: <https://securitylab.github.com/advisories/GHSL-2023-009_Apereo_CAS>
- other: <https://securitylab.github.com/advisories/GHSL-2023-009_Apereo_CAS/>
- other: <https://apereo.github.io/2023/02/20/x509-vuln/>
- other: <https://github.com/apereo/cas/releases/tag/v6.6.6>
- other: <https://apereo.github.io/2023/02/20/x509-vuln>
- other: <https://github.com/apereo/cas>
- other: <https://github.com/graciantrivino/cas/blob/b90003f43a8ac0382d5416ceb01074feb936bf24/cas-server-support-x509/src/main/java/org/jasig/cas/adaptors/x509/authentication/handler/support/X509CredentialsAuthenticationHandler.java#L231>
- other: <https://securitylab.github.com/advisories>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2023-28857>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-p78h-m8pv-g9gm> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2023-28857> · JSON: <https://flawdb.com/api/v1/entries/CVE-2023-28857>
