Skip to content

CVE-2022-31667 Harbor fails to validate the user permissions when updating a robot account

MediumCVSS 6.4 EPSS 0.52%
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 a robot account that belongs to a project that the authenticated user doesn’t have access to. 

By sending a request that attempts to update a robot account, and specifying a robot account id and robot account name that belongs to a different project that the user doesn’t have access to, it was possible to revoke the robot account permissions.

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 >= 2.0.0, < 2.4.3; >= 2.5.0, < 2.5.2 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 >= 2.0.0, < 2.4.3 2.4.3
linuxfoundation harbor >= 2.5.0, < 2.5.2 2.5.2

References