{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "cpe": "cpe:2.3:a:linuxfoundation:harbor:*:*:*:*:*:*:*:*",
            "extracted_events": [
              {
                "introduced": "2.0.0"
              },
              {
                "fixed": "2.4.3"
              },
              {
                "introduced": "2.5.0"
              },
              {
                "fixed": "2.5.2"
              }
            ],
            "source": "CPE_RANGE"
          },
          "events": [
            {
              "introduced": "d0f3ddddab96f25b7c2de18e7aebf8f79c7b19cc"
            },
            {
              "fixed": "85ef1409cba206582b1b6947c888bdbe6d5747d3"
            },
            {
              "introduced": "98e1b82fbfcc0f1ab9673e0911ae937e6a6fca36"
            },
            {
              "fixed": "66882717920d0337f17a43d5450b6227ca98047e"
            }
          ],
          "repo": "https://github.com/goharbor/harbor",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-xx9w-464f-7h6f"
  ],
  "database_specific": {
    "cna_assigner": "vmware",
    "cwe_ids": [
      "CWE-285"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/31xxx/CVE-2022-31667.json",
    "unresolved_ranges": [
      {
        "extracted_events": [
          {
            "introduced": "Harbor (Go) 2.x\u003c=2.4.2; 2.5\u003c=2.5.1"
          },
          {
            "last_affected": "Harbor (Go) 2.x\u003c=2.4.2; 2.5\u003c=2.5.1"
          }
        ],
        "source": "AFFECTED_FIELD"
      }
    ]
  },
  "details": "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. \n\nBy 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.",
  "id": "CVE-2022-31667",
  "modified": "2026-07-08T05:39:16.042830044Z",
  "published": "2024-11-14T11:50:48.289Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/31xxx/CVE-2022-31667.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/goharbor/harbor/security/advisories/GHSA-xx9w-464f-7h6f"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2022-31667"
    }
  ],
  "schema_version": "1.7.5",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:L",
      "type": "CVSS_V3"
    }
  ],
  "summary": "Harbor fails to validate the user permissions when updating a robot account"
}