CVE-2023-28630 Sensitive information disclosure possible on misconfigured failed backups of non-H2 databases in gocd
Misconfigured GoCD servers leak plaintext database credentials in admin alerts when backup tools are missing, exposing sensitive data to administrators.
- Exploited in the wild
- Not known
- Login needed
- An administrator
- Attackable
- Local or same network only
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2023-28630?
CVE-2023-28630 is a medium-severity vulnerability in gocd, published on 27 Mar 2023. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.
Official description
GoCD is an open source continuous delivery server. In GoCD versions from 20.5.0 and below 23.1.0, if the server environment is not correctly configured by administrators to provide access to the relevant PostgreSQL or MySQL backup tools, the credentials for database access may be unintentionally leaked to admin alerts on the GoCD user interface. The vulnerability is triggered only if the GoCD server host is misconfigured to have backups enabled, but does not have access to the `pg_dump` or `mysqldump` utility tools to backup the configured database type (PostgreSQL or MySQL respectively). In such cases, failure to launch the expected backup utility reports the shell environment used to attempt to launch in the server admin alert, which includes the plaintext database password supplied to the configured tool. This vulnerability does not affect backups of the default on-disk H2 database that GoCD is configured to use. This issue has been addressed and fixed in GoCD 23.1.0. Users are advised to upgrade. Users unable to upgrade may disable backups, or administrators should ensure that the required `pg_dump` (PostgreSQL) or `mysqldump` (MySQL) binaries are available on the GoCD server when backups are triggered.
Weakness: CWE-532
Which versions are affected by CVE-2023-28630?
It affects 1 product.
Products include Thoughtworks Gocd.
How do I fix CVE-2023-28630?
No fix has been published for CVE-2023-28630 yet. Limit exposure of the affected software until one is available.
Is CVE-2023-28630 being exploited?
There is no known exploitation of CVE-2023-28630 in the wild and no public exploit code.
Other vulnerabilities in gocd
- CVE-2021-43290 Path traversal in n/a
- CVE-2021-44659 Server-side request forgery in n/a
- CVE-2024-56320 GoCD vulnerable to admin privilege escalation by a malicious internal/existing authenticated user
- CVE-2022-39311 Compromised agents may be able to execute remote code on GoCD Server
- CVE-2022-29184 Command Injection/Argument Injection in GoCD
Sources
Also known as GHSA-p95w-gh78-qjmv.