PT-2024-19294 · Harbor · Harbor

Taisei Inoue

·

Published

2024-06-02

·

Updated

2026-01-26

·

CVE-2024-22261

CVSS v3.1

5.5

Medium

VectorAV:N/AC:L/PR:H/UI:N/S:U/C:H/I:L/A:N
Name of the Vulnerable Software and Affected Versions Harbor versions 2.8.1 through 2.8.5 Harbor versions 2.9.0 through 2.9.3 Harbor versions 2.10.0 through 2.10.1
Description A SQL Injection issue allows users with administrator, project admin, or project maintainer roles to execute any Postgres function through the API endpoint GET /api/v2.0/projects/{project name}/repositories/{repository name}/artifacts/{reference}/scan/{report id}/log. However, this vulnerability cannot be used to leak useful information to the response, as the query result of the task is just an intermediate result used to locate the job log file. The issue arises from raw SQL execution in the code, specifically in the task.go file.
Recommendations For Harbor versions 2.8.1 through 2.8.5, update to version 2.8.6 to fix the issue. For Harbor versions 2.9.0 through 2.9.3, update to version 2.9.4 to fix the issue. For Harbor versions 2.10.0 through 2.10.1, update to version 2.10.2 to fix the issue. As a temporary workaround, consider restricting access to the vulnerable API endpoint until a patch is applied.

Fix

SQL injection

Weakness Enumeration

Related Identifiers

BIT-HARBOR-2024-22261
CVE-2024-22261
GHSA-VW63-824V-QF2J
GO-2024-2916

Affected Products

Harbor