CVE Vulnerabilities

CVE-2024-22261

Authorization Bypass Through User-Controlled SQL Primary Key

Published: Jun 11, 2024 | Modified: Feb 27, 2025
CVSS 3.x
5.5
MEDIUM
Source:
NVD
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:L/A:N
CVSS 2.x
RedHat/V2
RedHat/V3
Ubuntu
root.io logo minimus.io logo echo.ai logo

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

Weakness

The product uses a database table that includes records that should not be accessible to an actor, but it executes a SQL statement with a primary key that can be controlled by that actor.

Affected Software

NameVendorStart VersionEnd Version
HarborLinuxfoundation2.8.1 (including)2.8.6 (excluding)
HarborLinuxfoundation2.9.0 (including)2.9.4 (excluding)
HarborLinuxfoundation2.10.0 (including)2.10.2 (excluding)

Extended Description

When a user can set a primary key to any value, then the user can modify the key to point to unauthorized records. Database access control errors occur when:

Potential Mitigations

References