CVE-2022-31671: Harbor fails to validate the user permissions when reading job execution logs through the P2P preheat execution logs
5
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.22076%
CWE
Published
9/9/2022
Updated
11/19/2024
KEV Status
No
Technology
Go
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
github.com/goharbor/harbor | go | >= 1.0.0, <= 1.10.12 | 1.10.13 |
github.com/goharbor/harbor | go | >= 2.0.0, <= 2.4.2 | 2.4.3 |
github.com/goharbor/harbor | go | >= 2.5.0, <= 2.5.1 | 2.5.2 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from improper authorization in the API endpoint handling P2P preheat logs. While exact code isn't available, Harbor's architecture suggests preheat controllers handle these requests. The explicit API path in the advisory maps to a handler function
that would retrieve logs. The CWE-285/863 classification indicates missing authorization checks in the request handling flow. The function
would need to 1) resolve project/policy
context and 2) verify user access - the vulnerability suggests either step was missing or incomplete. The pattern matches common IDOR vulnerabilities where handlers trust resource IDs without ownership validation.