PT-2024-19294

CVE-2024-22261

·

Published

2024-06-02

·

Updated

2026-01-26

Description by

CVSS 3.1
5.5
Medium
MetricsAV: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.
Exploitability
Exploit
Fix
Impacts
Researchers
Vendors
Affected products
Related identifiers
GHSA-VW63-824V-QF2J
BIT-HARBOR-2024-22261
GO-2024-2916
Found an issue in the description? Have something to add? Feel free to write us 👾