# CVE-2022-31188: Server-Side Request Forgery Vulnerability in Computer Vision Annotation Tool (CVAT)


- **Severity:** High 8.6 (`CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L`)
- **Exploited in the wild:** Not known
- **Fix available:** No
- **Published:** 1 Aug 2022
- **Updated:** 22 Apr 2025
- **Also known as:** GHSA-7vpj-j5xv-29pr

## What is CVE-2022-31188?

CVE-2022-31188 is a high-severity vulnerability in cvat-ai cvat, published on 1 Aug 2022. 

### Official description

CVAT is an opensource interactive video and image annotation tool for computer vision. Versions prior to 2.0.0 were found to be subject to a Server-side request forgery (SSRF) vulnerability. Validation has been added to urls used in the affected code path in version 2.0.0. Users are advised to upgrade. There are no known workarounds for this issue.

Weakness: CWE-918 (Server-Side Request Forgery)

## Which versions are affected by CVE-2022-31188?

It affects 1 product.


Products: Cvat Computer Vision Annotation Tool.

## How do I fix CVE-2022-31188?

No fix has been published for CVE-2022-31188 yet. Limit exposure of the affected software until one is available.

## Is CVE-2022-31188 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-31188 exists.

Public exploit code:

- CVE-2022-31188 - OpenCV CVAT (Computer Vision Annotation Tool) SSRF (github_poc): https://github.com/emirpolatt/CVE-2022-31188
- CVAT 2.0 - Server Side Request Forgery (exploitdb)

## Other vulnerabilities in cvat-ai cvat

- [CVE-2025-23045](https://insights.sbomify.com/CVE-2025-23045/): CVAT allows remote code execution via tracker Nuclio functions (high 8.7)
- [CVE-2026-23516](https://insights.sbomify.com/CVE-2026-23516/): CVAT vulnerable to XSS via skeleton SVG images (high 8.6)
- [CVE-2026-23526](https://insights.sbomify.com/CVE-2026-23526/): CVAT vulnerable to privilege escalation of users with staff status (high 8.5)
- [CVE-2024-37164](https://insights.sbomify.com/CVE-2024-37164/): CVAT SSRF via custom cloud storage endpoints (high 7.1)
- [CVE-2024-37306](https://insights.sbomify.com/CVE-2024-37306/): CVAT's export and backup-related API endpoints are susceptible to CSRF (high 7.1)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2022-31188 and fix it if it is affected.

What it is: CVE-2022-31188 is a high-severity vulnerability in cvat-ai cvat, published on 1 Aug 2022. 
Exploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-31188 exists.

Affected product: cvat-ai cvat. No package-level version data is available, so check the vendor advisory linked from the reference page.

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2022-31188/ (Markdown: https://insights.sbomify.com/CVE-2022-31188/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2022-31188
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2022-31188
- OSV: https://osv.dev/vulnerability/CVE-2022-31188

---
From sbomify Insights: https://insights.sbomify.com/CVE-2022-31188/
Summaries are generated and may contain mistakes; the official description above is the record.
