BREACHSPIDER
CVE databaseVendorsIntelFeaturesDevelopersDocsPricingSign inStart free trial

CVE-2021-31816 in Octopus Server

High 7.5

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.

Affects 1 product from 1 vendor. Facts below cite their sources.

CVSS 3.17.5
EPSS0.9%
EPSS percentile56th
FixSee advisory

Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, no integrity impact, no availability impact.

Affected products and versions

VendorProductAffected versions
Octopus Server < 2020.6.5146 ≥ 2021.1.0, < 2021.1.7316

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

View Vendor Advisory →

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

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

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2021-31816
BreachSpider IDBS-2021-GLOBAL-076977-H
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Published2021-07-08
Last modified2024-11-21
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-312: CWE-312

Related attack patterns (CAPEC)

CAPEC-37 Retrieve Embedded Sensitive Data via CWE-312

Mapping is CWE to CAPEC per MITRE CAPEC 3.9.

Analysis AI-written, not human-reviewed

CVE-2021-31816 involves the plaintext storage of database passwords in the OctopusServer.txt log file during the initial configuration of Octopus Server with an external SQL database.

An attacker with access to the OctopusServer.txt log file could potentially retrieve the database password, which could be used to gain unauthorized access to the external SQL database.

Questions

What is CVE-2021-31816?

CVE-2021-31816 involves the plaintext storage of database passwords in the OctopusServer.txt log file during the initial configuration of Octopus Server with an external SQL database.

What is the CVSS score for CVE-2021-31816?

CVE-2021-31816 has CVSS 7.5 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N. EPSS: 0.9%.

Is CVE-2021-31816 actively exploited?

No confirmed active exploitation of CVE-2021-31816 as of 2026-05-30.

How do I remediate CVE-2021-31816?

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

What systems are affected by CVE-2021-31816?

CVE-2021-31816 affects Octopus Server.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Octopus","product":"Server","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2024-11-21.