Home / Octopus Deploy / Octopus Server / CVE-2021-31818
CVE-2021-31818: is it exploited, and which versions of Octopus Deploy Octopus Server are affected and fixed?
CVE-2021-31818 is a SQL injection vulnerability in Octopus Deploy Octopus Server. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 19:09 UTC). Affected: Octopus Server from 2018.9.17 before unspecified, Octopus Server before 2020.6.5146, Octopus Server from 2021.1.7149 before unspecified and 1 more (CVE record by Octopus). Fixed in unspecified, 2020.6.5146 and 2021.1.7316 (CVE record by Octopus). Severity: Medium (4.3, CVSS 3.1, from NVD).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 19:09 UTC, CVE record November 28, 2026, 20:10 UTC and NVD November 19, 2026, 07:57 UTC.
What is CVE-2021-31818?
Affected versions of Octopus Server are prone to an authenticated SQL injection vulnerability in the Events REST API because user supplied data in the API request isn’t parameterised correctly. Exploiting this vulnerability could allow unauthorised access to database tables.
From the CVE record by Octopus, last updated August 3, 2024, 23:10 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| Octopus Deploy | Octopus Server | from 2018.9.17 before unspecified before 2020.6.5146 from 2021.1.7149 before unspecified before 2021.1.7316 | unspecified, 2020.6.5146, 2021.1.7316 |
As the CVE record by Octopus states it, last updated August 3, 2024. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| octopus | server | from 2018.9.17 before 2018.13.0 | application |
| octopus | server | from 2020.0.0 before 2020.6.0 | application |
| octopus | server | from 2020.6.0 before 2020.6.5146 | application |
| octopus | server | from 2021.1.0 before 2021.1.7316 | application |
NVD analysis (status Modified), last modified June 17, 2026, 03:52 UTC.
How severe is CVE-2021-31818?
| Score | Version | Vector | Source |
|---|---|---|---|
| Medium 4.3 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N | NVD |
| Medium 4.0 | CVSS 2.0 | AV:N/AC:L/Au:S/C:P/I:N/A:N | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2021-31818 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- EPSS
- 0.62% probability of exploitation activity in the next 30 days, percentile 51.3 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
- CWE-89 Improper Neutralization of Special Elements used in an SQL Command
Where are the vendor advisories and references?
- https://advisories.octopus.com/adv/2021-04---SQL-Injection-in-the-Events-REST-API-%28CVE-2021-31818%29.2013233248.html x_refsource_MISC
When was it published, and where is the official record?
- Reserved
- April 26, 2021
- Published
- June 17, 2021, 13:22 UTC
- CVE record updated
- August 3, 2024, 23:10 UTC by Octopus
- NVD
- Modified, last modified June 17, 2026, 03:52 UTC
- Last checked
- CVE list November 28, 2026, 20:10 UTC; NVD November 19, 2026, 07:57 UTC; KEV December 3, 2026, 19:09 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
What other CVEs affect Octopus Server?
- Nov 26, 2026CVE-2026-115685 Octopus Deploy Octopus Server: missing authorization
- Nov 16, 2026CVE-2026-116288 Octopus Deploy Octopus Server: privilege escalation (improper privilege management)
- Nov 16, 2026CVE-2026-124631 Octopus Deploy Octopus Server: incorrect authorization
- Nov 16, 2026CVE-2026-123745 Octopus Deploy Octopus Server: path traversal (reading or writing files outside the intended folder)
- Nov 16, 2026CVE-2026-124629 Octopus Deploy Octopus Server: incorrect authorization
- Nov 12, 2026CVE-2026-124628 Octopus Deploy Octopus Server: incorrect authorization
- Nov 12, 2026CVE-2026-124627 Octopus Deploy Octopus Server: incorrect authorization
- Nov 12, 2026CVE-2026-116835 Octopus Deploy Octopus Server: mass assignment
Questions about CVE-2021-31818
Is CVE-2021-31818 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 19:09 UTC. FIRST's EPSS gives it a 0.62% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of Octopus Deploy Octopus Server are affected by CVE-2021-31818?
Octopus Server from 2018.9.17 before unspecified, Octopus Server before 2020.6.5146, Octopus Server from 2021.1.7149 before unspecified and Octopus Server before 2021.1.7316, per the CVE record by Octopus. The tables above give every range the sources list.
Which version fixes CVE-2021-31818?
unspecified, 2020.6.5146 and 2021.1.7316, per the CVE record by Octopus. Check the vendor's advisory before you rely on it.
How severe is CVE-2021-31818?
Medium (4.3, CVSS 3.1, from NVD). The severity table above shows each score with its source.
Where is the official record of CVE-2021-31818?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.