# CVE-2021-31816: When configuring Octopus Server if it is configured with an external SQL database, on initial configuration the database password is writte…

- Severity: High 7.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.86%, higher than 59% of CVEs (2026-12-01)
- Published: 2021-07-08T10:43:39.000Z
- Modified: 2026-06-17T03:52:17.427Z
- Weaknesses: CWE-312
- Assigned by: Octopus

## Description

When configuring Octopus Server if it is configured with an external SQL database, on initial configuration the database password is written to the OctopusServer.txt log file in plaintext.

(As written by CVE List.)

## Affected

- Octopus Deploy Octopus Server: from 0.9 before unspecified; from unspecified before 2020.6.5146; from 2021.1.7149 before unspecified; from unspecified before 2021.1.7316
- octopus server: before 2020.6.5146; from 2021.1.0 before 2021.1.7316

## Every score

- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:P/I:N/A:N`

## References

- <https://advisories.octopus.com/adv/2021-05---Cleartext-Storage-of-Sensitive-Information-%28CVE-2021-31816%29.2121793537.html>

## Sources

- CVE List: [CVE-2021-31816](https://www.cve.org/CVERecord?id=CVE-2021-31816), CVE Terms of Use, modified 2024-08-03
- NVD: [CVE-2021-31816](https://nvd.nist.gov/vuln/detail/CVE-2021-31816), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-31816 · Whole record: https://cve.day/CVE-2021-31816.json · Rebuilt by cve.day 2026-11-25T22:58:02.470Z
