Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/goharbor/harbor
  4. ›
  5. GMS-2022-4062

GMS-2022-4062: Harbor fails to validate the user permissions when reading job execution logs through the P2P preheat execution logs

September 9, 2022

Harbor fails to validate the user permissions when reading job execution logs through the P2P preheat execution logs - API call GET /projects/{project_name}/preheat/policies/{preheat_policy_name}/executions/{execution_id}/tasks/{task_id}/logs By sending a request that attempts to read P2P preheat execution logs and specifying different job ids, malicious authenticatedusers could read all the job logs stored in the Harbor database.

References

  • github.com/advisories/GHSA-q76q-q8hw-hmpw
  • github.com/goharbor/harbor/security/advisories/GHSA-q76q-q8hw-hmpw

Code Behaviors & Features

Detect and mitigate GMS-2022-4062 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 1.0 up to 1.10.12, all versions starting from 2.0 up to 2.4.2, all versions starting from 2.5 up to 2.5.1

Fixed versions

  • 1.10.13
  • 2.4.3
  • 2.5.2

Solution

Upgrade to versions 1.10.13, 2.4.3, 2.5.2 or above.

Source file

go/github.com/goharbor/harbor/GMS-2022-4062.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:16:07 +0000.