SecurityContext

CVE-2022-31667: Harbor - Broken Access Control

  • Cve: CVE-2022-31667
  • Name: Harbor - Broken Access Control
  • 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.
  • Impact: Unauthorized users can revoke robot account permissions in projects they lack access to, potentially leading to privilege escalation or denial of service.
  • Remediation: Implement proper access control checks during robot account updates to ensure users can only modify accounts within their authorized projects.
  • Vulnerability type: broken_access_control
  • Vulnerability impact: privilege_escalation, denial_of_service
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 6.4
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:L
  • Epss score: 0.00521
  • Epss percentile: 0.44823
  • Assignee: [email protected]
  • Published at: 2024-11-14T12:15:16Z
  • Age in days: 740
  • Modified at: 2026-06-17T04:46:00Z
  • Patch available: yes
  • References total: 1
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2022-31667
  • Nvd status: analyzed
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-285Improper Authorization
CWE-863Incorrect Authorization

References

UrlSourceTags
https://github.com/goharbor/harbor/security/advisories/GHSA-xx9w-464f-7h6fnvdVendor Advisory

Products

ProductAffectedPlatform boundSourcesUrl
linuxfoundation:harbor>= 2.5.0, < 2.5.2; >= 2.0.0, < 2.4.3nonvd/v1/products/linuxfoundation/harbor

Projects

RepositoryLink kindsIndexedUrl
goharbor/harborpackage, security_advisoryyes/v1/repositories/goharbor/harbor

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Remote: yes
  • Authentication required: yes
  • Exposed hosts: 2419
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports