CVE-2022-31671 Harbor fails to validate the user permissions when reading job execution logs through the P2P preheat execution logs
Authenticated users can read all job logs in Harbor by bypassing permission checks on P2P preheat execution logs.
- 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-2022-31671?
CVE-2022-31671 is a high-severity missing authorization vulnerability in Harbor, published on 14 Nov 2024. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
Harbor fails to validate user permissions when reading and updating job execution logs through the P2P preheat execution logs. By sending a request that attempts to read/update P2P preheat execution logs and specifying different job IDs, malicious authenticated users could read all the job logs stored in the Harbor database.
Which versions are affected by CVE-2022-31671?
7 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 | From 1.0.0 | 1.10.13 |
github.com/goharbor/harbor Go | From 1.0.0 | 1.10.13 |
github.com/goharbor/harbor Go | From 2.0.0 | 2.4.3 |
github.com/goharbor/harbor Go | From 2.0.0 | 2.4.3 |
github.com/goharbor/harbor Go | From 2.5.0 | 2.5.2 |
github.com/goharbor/harbor Go | From 2.5.0 | 2.5.2 |
1 more packages
harbor Bitnami | From 2.0.0 | 2.4.3, 2.5.2 |
Products include Linuxfoundation Harbor.
How do I fix CVE-2022-31671?
Upgrade github.com/goharbor/harbor to a fixed version for your release line: 1.10.13, 2.4.3 or 2.5.2.
Upgrade, and check permissions on every request on the server, not only in the interface. More about Missing authorization.
Is CVE-2022-31671 being exploited?
There is no known exploitation of CVE-2022-31671 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-2022-31671, GHSA-q76q-q8hw-hmpw.