SecurityContext

CVE-2022-24832: GoCD - LDAP Injection

  • Cve: CVE-2022-24832
  • Name: GoCD - LDAP Injection
  • 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.
  • Impact: LDAP-authenticated users can infer sensitive LDAP data through malicious query construction, risking information disclosure within the LDAP directory.
  • Remediation: Update to GoCD 22.1.0 bundled with gocd-ldap-authentication-plugin v2.2.0-144.
  • Vulnerability type: ldap_injection
  • Vulnerability impact: information_disclosure
  • Requirement type: logged_in
  • Requirements: Attacker must be an LDAP-authenticated user with malicious intent
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 6.8
  • Cvss vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N
  • Epss score: 0.01695
  • Epss percentile: 0.77745
  • Assignee: [email protected]
  • Published at: 2022-04-11T21:15:08Z
  • Age in days: 1688
  • Modified at: 2026-06-17T04:32:37Z
  • Patch available: yes
  • References total: 8
  • Products total: 1
  • Oss: yes
  • Projects total: 2
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2022-24832
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd

Cwe

IdName
CWE-74Improper Neutralization of Special Elements in Output Used by a Downstream Component

Hackerone

  • Reports: 1
  • Rank: 5211

References

Same in every row:

  • Source: nvd
UrlTags
https://github.com/gocd/gocd-ldap-authentication-plugin/commit/87fa7dac5d899b3960ab48e151881da4793cfcc3Patch, Third Party Advisory
https://github.com/gocd/gocd/pull/10244Patch, Third Party Advisory
https://docs.gocd.org/22.1.0/configuration/dev_authentication.html#ldapad-authenticationVendor Advisory
https://www.gocd.org/releases/#22-1-0Release Notes, Vendor Advisory
https://github.com/gocd/gocd-ldap-authentication-pluginProduct, Third Party Advisory
https://github.com/gocd/gocd-ldap-authentication-plugin/releases/tag/v2.2.0-144Release Notes, Third Party Advisory
https://github.com/gocd/gocd/releases/tag/22.1.0Release Notes, Third Party Advisory
https://github.com/gocd/gocd/security/advisories/GHSA-x5v3-x9qj-mh3hThird Party Advisory

Products

ProductAffectedPlatform boundSourcesUrl
thoughtworks:gocd>= 17.5.0, < 22.1.0nonvd/v1/products/thoughtworks/gocd

Projects

RepositoryLink kindsIndexedUrl
gocd/gocdpull, releases, security_advisoryyes/v1/repositories/gocd/gocd
gocd/gocd-ldap-authentication-plugincommit, fix, releasesyes/v1/repositories/gocd/gocd-ldap-authentication-plugin

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Remote: yes
  • Authentication required: yes
  • Hackerone reports: 1
  • Exposed hosts: 125
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since