CVE-2024-22278 Harbor fails to validate the user permissions when updating project configurations
Authenticated users can modify project configurations due to missing permission checks, potentially escalating privileges or altering settings.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-22278?
CVE-2024-22278 is a medium-severity missing authorization vulnerability in harbor, published on 2 Aug 2024. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
Incorrect user permission validation in Harbor <v2.9.5 and Harbor <v2.10.3 allows authenticated users to modify configurations.
Weakness: CWE-269
Which versions are affected by CVE-2024-22278?
6 open source packages ship an affected version, including github.com/goharbor/harbor and harbor. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
github.com/goharbor/harbor Go | All versions | 2.9.5+incompatible, 2.10.3+incompatible |
github.com/goharbor/harbor Go | All versions | 2.9.5 |
github.com/goharbor/harbor Go | All versions | 2.9.5 |
github.com/goharbor/harbor Go | From 2.10.0 | 2.10.3 |
github.com/goharbor/harbor Go | From 2.10.0 | 2.10.3 |
harbor Bitnami | All versions | 2.11.0 |
Products include Linuxfoundation Harbor.
How do I fix CVE-2024-22278?
Upgrade github.com/goharbor/harbor to a fixed version for your release line: 2.9.5+incompatible, 2.10.3+incompatible, 2.9.5 or 2.10.3.
Upgrade, and check permissions on every request on the server, not only in the interface. More about Missing authorization.
Is CVE-2024-22278 being exploited?
There is no known exploitation of CVE-2024-22278 in the wild and no public exploit code.
Other vulnerabilities in harbor
- CVE-2026-4404 Use of hard coded credentials in GoHarbor Harbor
- CVE-2019-19023 Privilege Escalation in Cloud Native Computing Foundation Harbor
- CVE-2019-19025 Cross-site Request Forgery (CSRF) in Cloud Native Computing Foundation Harbor
- CVE-2017-17697 Server-side request forgery in n/a
- CVE-2022-31666 Harbor fails to validate user permissions while Viewing, updating and deleting Webhook policies
Sources
Also known as BIT-harbor-2024-22278, GHSA-hw28-333w-qxp3, GO-2024-3013.