All reports
High

Harbor fails to validate the user permissions when updating p2p preheat policies

Affected versions

Version ranges need review.

Affected versions
< 0.0.0-20220630175814-b4ef1db
Fixed version
0.0.0-20220630175814-b4ef1db
Affected versions
>= 2.5.0, < 2.5.2
Fixed version
2.5.2
Affected versions
>=2.0.0+incompatible <2.4.3+incompatible || >=2.5.0+incompatible <2.5.2+incompatible
Fixed version
2.4.3+incompatible · 2.5.2+incompatible
Affected versions
>= 2.0.0, < 2.4.3
Fixed version
2.4.3

Exploitation

CVE-2022-31668

Probability of exploitation in the next 30 days: 0.30%

FIRST EPSS · 2026-11-24

Description

Harbor fails to validate the user permissions when updating p2p preheat policies. By sending a request to update a p2p preheat policy with an id that belongs to a project that the currently authenticated user doesn't have access to, the attacker could modify p2p preheat policies configured in other projects.

Links

Credits

  • Gal Goldstein (Oxeye Security)
  • Daniel Abeles (Oxeye Security)