Skip to content
Access control Write-up Intermediate

Gitea CVE-2026-27771 exposed private container images without authentication

Gitea's container registry allowed unauthenticated users to pull private container images on affected instances. An attacker could access sensitive data such as credentials and API keys embedded in those images.

noscope.com

Published on noscope.com

If your team runs Gitea and uses its built-in container registry, there's a question you should be asking right now: has anyone been reading your private images?

The author, on noscope.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely a missing authorisation check in the container registry's package visibility logic, so private images were served to unauthenticated requests.

Impact

Unauthenticated attackers could pull private container images, potentially exposing credentials, API keys, and internal service details; the flaw affected over 30,000 instances and went undetected for four years.

What the attacker needed

No account needed; internet-facing Gitea instance; container registry enabled

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

A container image is a packaged snapshot of an application and everything it needs to run, often including secrets like passwords. Gitea is a self-hosted code hosting platform with a built-in registry for storing these images. The bug meant that even if you marked an image as private, anyone could download it without logging in.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.