漏洞描述
Gitea < 1.26.2 allows unauthenticated remote attackers to pull private container images.The /v2/token endpoint grants anonymous ghost tokens (UserID:-1) with no scope restriction.The ReqContainerAccess middleware does not check package owner visibility, so ghost users can enumerate all container repositories via /_catalog and pull any private image layer.
影响产品
修复建议
建议关注厂商安全公告,及时升级至已修复版本,并结合实际资产暴露情况采取缓解措施。
参考链接
blog.gitea.comhttps://blog.gitea.com/release-of-1.26.2/↗github.comhttps://github.com/go-gitea/gitea/pull/37290↗github.comhttps://github.com/go-gitea/gitea/pull/37610↗orca.securityhttps://orca.security/resources/blog/gitea-container-registry-vulnerability/↗github.comhttps://github.com/go-gitea/gitea/releases/tag/v1.26.2↗github.comhttps://github.com/go-gitea/gitea/security/advisories/GHSA-8qw8-rq86-9pc2↗