CVE-2024-22278: Harbor fails to validate the user permissions when updating project configurations

Published Jul 31, 2024
·
Updated

Impact Harbor fails to validate the maintainer role permissions when creating/updating/deleting project configurations - API call:

- PUT /projects/{projectnameorid}/metadatas/{metaname} - POST /projects/{projectnameorid}/metadatas/{metaname} - DELETE /projects/{projectnameorid}/metadatas/{metaname}

By sending a request to create/update/delete a metadata with an name that belongs to a project that the currently authenticated and granted to the maintainer role user doesn’t have access to, the attacker could modify configurations in the current project.

BTW: the maintainer role in Harbor was intended for individuals who closely support the project admin in maintaining the project but lack configuration management permissions. However, the maintainer role can utilize the metadata API to circumvent this limitation. It's important to note that any potential attacker must be authenticated and granted a specific project maintainer role to modify configurations, limiting their scope to only that project.

Patches Will be fixed in v2.9.5, v2.10.3 and v2.11.0

Workarounds There are no workarounds available.

Credit Thanks to Ravid Mazon(rmazon@paloaltonetworks.com), Jay Chen (jaychen@paloaltonetworks.com) Palo Alto Networks for reporting this issue.

Other sources

Incorrect user permission validation in Harbor <v2.9.5 and Harbor <v2.10.3 allows authenticated users to modify configurations.

MITRE

Affected Software

4 affected componentsFixes available
go/github.com/goharbor/harbor>=2.10.0<2.10.3
2.10.3
go/github.com/goharbor/harbor<2.9.5
2.9.5
linuxfoundation Harbor<2.9.5
linuxfoundation Harbor>=2.10.0<2.10.3

Event History

Jul 31, 2024
Advisory Published
via GitHub·04:53 PM
Aug 2, 2024
CVE Published
via MITRE·12:59 AM
Data Sourced
via MITRE·12:59 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·01:15 AM
DescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2024-22278?

CVE-2024-22278 is classified with a high severity due to improper validation of maintainer role permissions affecting project configurations.

2

How do I fix CVE-2024-22278?

To remediate CVE-2024-22278, upgrade your Harbor software to version 2.10.3 or later, or to version 2.9.5 if you are on an earlier release.

3

What versions of Harbor are affected by CVE-2024-22278?

Harbor versions 2.10.0 to 2.10.2 are affected, along with versions up to 2.9.5.

4

What type of vulnerability is CVE-2024-22278?

CVE-2024-22278 is an authorization vulnerability that allows unauthorized access to project configuration management.

5

Is CVE-2024-22278 exploitable remotely?

Yes, CVE-2024-22278 is potentially exploitable remotely since it involves API calls that can be triggered from external sources.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203