CVE-2024-22244
mediumpriority · track · 24EPSS 0.004 · 30 %ileDEEUUSEPSS · scored 2026-10-26
Open Redirect in Harbor <=v2.8.4, <=v2.9.2, and <=v2.10.0 may redirect a user to a malicious site.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (14)
Products and version ranges known to be affected.
- Go github.com/goharbor/harbor2.10.0+incompatible → 2.10.1+incompatibleosvUSpkg:golang/github.com/goharbor/harbor
- Go github.com/goharbor/harbor2.9.0+incompatible → 2.9.3+incompatibleosvUSpkg:golang/github.com/goharbor/harbor
advisories (4)
Vendor and ecosystem advisories describing this.
- WID-SEC-W-2024-1263Harbor: Mehrere SchwachstellenDeutsch2024-05-30csaf · cert_bundDE
Ein entfernter, authentisierter Angreifer kann mehrere Schwachstellen in Harbor ausnutzen, um Informationen offenzulegen und um URLs zu manipulieren.
- GHSA-5757-v49g-f6r7Open Redirect URL in Harbor2024-06-02ghsa · osvUS
### Description Under OIDC authentication mode, there is a redirect_url parameter exposed in the URL which is used to redirect the current user to the defined location after the successful OIDC login, This redirect_url can be an ambiguous URL and can be used to embed a phishing URL. For example: if a user clicks the URL with a malicious redirect_url: ``` https://<harbor_hostnmae>/c/oidc/login?redirect_url=https://<redirect_domain> ``` It might redirect the current user without their knowledge to a malicious site, posing a potential risk. To avoid this issue, the redirect_url should be checked if it is a local path when reading it from the original request URL. ``` //src/core/controllers/oidc.go ... redirectURL := oc.Ctx.Request.URL.Query().Get("redirect_url") if !utils.IsLocalPath(redirectURL) { log.Errorf("invalid redirect url: %v", redirectURL) oc.SendBadRequestError(fmt.Errorf("cannot redirect to other site")) return } if err := oc.SetSession(redirectURLKey, redirectURL); err != nil { ... ``` ### Impact When Harbor is configured with OIDC authentication and users log in via a link outside the Harbor server, it might be vulnerable to an open redirect attack. This attack only involves the OIDC Harbor user, if the current Harbor instance is not configured with OIDC auth, the redirect_url doesn't exist and the Harbor instance is not vulnerable to the open redirect attack. The following versions of Harbor are involved: <=Harbor 2.8.4, <=Harbor 2.9.2, <= Harbor 2.10.0 ### Patches Harbor 2.8.5, Harbor 2.9.3, Harbor 2.10.1 ### Workarounds When the Harbor is configured with OIDC authentication, warn the user not to log into the Harbor through external links. ### References N/A ### Credit Thanks Arnaud Cordier (arnaud@cordier.work)
- BIT-harbor-2024-22244Harbor Open Redirect URL2025-02-27vendor · osvUS
Open Redirect in Harbor <=v2.8.4, <=v2.9.2, and <=v2.10.0 may redirect a user to a malicious site.
- GO-2024-2915Open Redirect URL in Harbor in github.com/goharbor/harbor2024-06-14vendor · osvUS
Open Redirect URL in Harbor in github.com/goharbor/harbor
also known as (6)
Other names and identifiers for this entity.
- CNNVD-202406-982cnnvd
- EUVD-2024-1926enisa_euvd
- GHSA-5757-v49g-f6r7enisa_euvd
- BIT-harbor-2024-22244osv
- GHSA-5757-v49g-f6r7osv
- GO-2024-2915osv
sources
Which sources assert this record, and when.
references (4)
External citations — patches, advisories, analysis.
- https://cxsecurity.com/cveshow/CVE-2024-22244/cnnvd
- https://github.com/goharbor/harbor/security/advisories/GHSA-5757-v49g-f6r7cnnvd
- https://github.com/goharbor/harbor/security/advisories/GHSA-5757-v49g-f6r7enisa_euvd
- https://github.com/goharbor/harbor/security/advisories/GHSA-5757-v49g-f6r7Vendor Advisorynvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan