CVE-2022-31670 | Harbor fails to validate the user permissions when updating tag retention policies

Harbor fails to validate the user permissions when updating tag retention policies.  By sending a request to update a tag retention policy with an id that belongs to a project that the currently authenticated user doesn’t have access to, the attacker could modify tag retention policies configured in other projects.

Published: 2024-11-14 Last update: 2024-11-19 Assigner: [email protected] Source: [email protected]

Conclusion & alert: CVE-2022-31670 is rated Moderate Risk (41.9/100): CVSS High severity, with low exploitation likelihood (EPSS 0.12%). Mandatory action: Review affected assets and schedule remediation.

Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.

Exploit prediction scoring system (EPSS) score for CVE-2022-31670

EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).

# Date Old EPSS score New EPSS score Delta (New - Old)
1 2025-12-28 0.16% 0.12% -0.04%
2 2025-12-23 0.11% 0.16% +0.05%
3 2025-10-21 0.11%

Full EPSS history (8 records total)

Common vulnerability scoring system (CVSS) metrics for CVE-2022-31670

CVSS metrics for this CVE.

Base score Version Severity Vector Exploitability Impact Score source
7.7 3.1 HIGH
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N Click to expand
Attack vector (AV:N)
Could be attacked over the internet or any normal routed network—not just someone sitting at the machine.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:L)
A normal user session is enough; they don’t have to be admin.
User interaction (UI:N)
Nobody has to click “OK” or open a trap file; it can work without a victim helping.
Scope (S:C)
Breaking this can reach past the original component and bite other resources—bigger blast radius.
Confidentiality (C:N)
Doesn’t really leak secrets in a meaningful way.
Integrity (I:H)
They could widely tamper with or forge data—trust in the data is badly hurt.
Availability (A:N)
Service keeps running; no real outage angle.
3.1 4.0 [email protected]
7.7 3.1 HIGH
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N Click to expand
Attack vector (AV:N)
Could be attacked over the internet or any normal routed network—not just someone sitting at the machine.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:L)
A normal user session is enough; they don’t have to be admin.
User interaction (UI:N)
Nobody has to click “OK” or open a trap file; it can work without a victim helping.
Scope (S:C)
Breaking this can reach past the original component and bite other resources—bigger blast radius.
Confidentiality (C:N)
Doesn’t really leak secrets in a meaningful way.
Integrity (I:H)
They could widely tamper with or forge data—trust in the data is badly hurt.
Availability (A:N)
Service keeps running; no real outage angle.
3.1 4.0 [email protected]

Weakness enumeration for CVE-2022-31670

GitHub Security Advisory for CVE-2022-31670

GHSA-3637-v6vq-xqqw · Severity: high · Ecosystem: go — Harbor fails to validate the user permissions when updating tag retention policies

Affected software / configurations for CVE-2022-31670

Vendor Product Version Raw CPE
linuxfoundation harbor >= 1.0.0, < 1.10.13 cpe:2.3:a:linuxfoundation:harbor:*:*:*:*:*:*:*:*
linuxfoundation harbor >= 2.0.0, < 2.4.3 cpe:2.3:a:linuxfoundation:harbor:*:*:*:*:*:*:*:*
linuxfoundation harbor >= 2.5.0, < 2.5.2 cpe:2.3:a:linuxfoundation:harbor:*:*:*:*:*:*:*:*

References for CVE-2022-31670

cvelogic Threat Intelligence