Skip to content

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

HighCVSS 7.7 EPSS 0.55%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: partial

Description

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.

Upgrade path

2 packages: 2 fixed.

PackageAffectedFixed inStatus
goharbor github.com/goharbor/harbor(Go) >= 1.0.0, < 1.10.13; >= 1.0.0, <= 1.10.12; >= 2.0.0, < 2.4.3; >= 2.0.0, <= 2.4.2 +2 more 1.10.13, 2.4.3, 2.5.2 Fixed
linuxfoundation harbor >= 1.0.0, < 1.10.13; >= 2.0.0, < 2.4.3; >= 2.5.0, < 2.5.2 1.10.13, 2.4.3, 2.5.2 Fixed

Affected products

ProductAffected versionsFixed in
goharbor github.com/goharbor/harbor(Go) >= 1.0.0, < 1.10.13 1.10.13
goharbor github.com/goharbor/harbor(Go) >= 2.0.0, < 2.4.3 2.4.3
goharbor github.com/goharbor/harbor(Go) >= 2.5.0, < 2.5.2 2.5.2
goharbor github.com/goharbor/harbor(Go) >= 1.0.0, <= 1.10.12 No fix listed
goharbor github.com/goharbor/harbor(Go) >= 2.0.0, <= 2.4.2 No fix listed
goharbor github.com/goharbor/harbor(Go) >= 2.5.0, <= 2.5.1 No fix listed
linuxfoundation harbor >= 1.0.0, < 1.10.13 1.10.13
linuxfoundation harbor >= 2.0.0, < 2.4.3 2.4.3
linuxfoundation harbor >= 2.5.0, < 2.5.2 2.5.2

References