CVE-2022-31667

Source
https://cve.org/CVERecord?id=CVE-2022-31667
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-31667.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2022-31667
Aliases
Published
2024-11-14T11:50:48.289Z
Modified
2026-07-08T06:01:15.247554134Z
Severity
  • 6.4 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:L CVSS Calculator
Summary
Harbor fails to validate the user permissions when updating a robot account
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. 

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.

Database specific
{
    "unresolved_ranges": [
        {
            "source": "AFFECTED_FIELD",
            "extracted_events": [
                {
                    "introduced": "Harbor (Go) 2.x<=2.4.2; 2.5<=2.5.1"
                },
                {
                    "last_affected": "Harbor (Go) 2.x<=2.4.2; 2.5<=2.5.1"
                }
            ]
        }
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/31xxx/CVE-2022-31667.json",
    "cna_assigner": "vmware",
    "cwe_ids": [
        "CWE-285"
    ]
}
References

Affected packages

Git / github.com/goharbor/harbor

Affected ranges

Type
GIT
Repo
https://github.com/goharbor/harbor
Events
Database specific
{
    "source": "CPE_RANGE",
    "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"
        }
    ]
}

Affected versions

v2.*
v2.5.0
v2.5.0-rc4
v2.5.1
v2.5.1-rc1

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-31667.json"