CVE-2025-30086
JSON

4.9medium

Possible ORM Leak Vulnerability in the Harbor

Severity
4.9medium CVSS:3.1 by CISA-ADP
Exploit likelihood
0.71% (higher than 54% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mitre
Also known as
GHSA-h27m-3qw8-3pw8GO-2025-3826

Description

CNCF Harbor 2.13.x before 2.13.1 and 2.12.x before 2.12.4 allows information disclosure by administrators who can exploit an ORM Leak present in the /api/v2.0/users endpoint to leak users' password hash and salt values. The q URL parameter allows a user to filter users by any column, and filter password=~ could be abused to leak out a user's password hash character by character. An attacker with administrator access could exploit this to leak highly sensitive information stored in the Harbor database. All endpoints that support the q URL parameter are vulnerable to this ORM leak attack.

Affected

Product or packageVersionsReported by
Unspecified productn/aCVE List
github.com/goharbor/harbor (Go)from 2.13.0 before 2.13.1, from 2.4.0-rc1.1 before 2.12.4, before 2.4.0-rc1.0.20250331071157-dce7d9f5cffb, before 2.12.4+incompatible, from 2.13.0+incompatible before 2.13.1+incompatibleGitHub Advisory Database, Go Vulnerability Database

All scores

CISA-ADP4.9medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N
GitHub4.9medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N

Classification

CWE-200CWE-202

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.

What each source says

CVE List

CNCF Harbor 2.13.x before 2.13.1 and 2.12.x before 2.12.4 allows information disclosure by administrators who can exploit an ORM Leak present in the /api/v2.0/users endpoint to leak users' password hash and salt values. The q URL parameter allows a user to filter users by any column, and filter password=~ could be abused to leak out a user's password hash character by character. An attacker with administrator access could exploit this to leak highly sensitive information stored in the Harbor database. All endpoints that support the q URL parameter are vulnerable to this ORM leak attack.

GitHub Advisory Database
Impact

Administrator users on Harbor could exploit an ORM Leak (https://www.elttam.com/blog/plormbing-your-django-orm/) vulnerability that was present in the /api/v2.0/users endpoint to leak users' password hash and salt values. This vulnerability was introduced into the application because the q URL parameter allowed the administrator to filter users by any column, and the filter password=~ could be abused to leak out a user's password hash character by character.

An attacker with administrator access could exploit this vulnerability to leak highly sensitive information stored on the Harbor database, as demonstrated in the attached writeup by the leaking of users' password hashes and salts. All endpoints that support the q URL parameter are vulnerable to this ORM leak attack, and could potentially be exploitable by lower privileged users to gain unauthorised access to other sensitive information.

Patches

No available

Workarounds

NA

References
Credit

alex@elttam.com

Go Vulnerability Database

Possible ORM Leak Vulnerability in the Harbor in github.com/goharbor/harbor.

NOTE: The source advisory for this report contains additional versions that could not be automatically mapped to standard Go module versions.

(If this is causing false-positive reports from vulnerability scanners, please suggest an edit to the report.)

The additional affected modules and versions are: github.com/goharbor/harbor before v2.4.0-rc1.0.20250331071157-dce7d9f5cffb.

NVD (es)

CNCF Harbor 2.13.x (versión anterior a la 2.13.1) y 2.12.x (versión anterior a la 2.12.4) permite la divulgación de información por parte de administradores que pueden explotar una fuga de ORM presente en el endpoint /api/v2.0/users para filtrar los valores hash y sal de las contraseñas de los usuarios. El parámetro q URL permite filtrar usuarios por cualquier columna, y filter password=~ podría utilizarse de forma abusiva para filtrar el hash de la contraseña de un usuario carácter por carácter. Un atacante con acceso de administrador podría explotar esto para filtrar información altamente sensible almacenada en la base de datos de Harbor. Todos los endpoints que admiten el parámetro q URL son vulnerables a este ataque de fuga de ORM.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-30086 changed 2025-07-25CVE Terms of Use
GitHub Advisory DatabaseGHSA-h27m-3qw8-3pw8 changed 2025-07-29CC-BY-4.0
Go Vulnerability DatabaseGO-2025-3826 changed 2025-07-29CC-BY-4.0
NVDCVE-2025-30086 changed 2026-06-17Public domain