Gitea Flaw Exposed Private Container Images for 4 Years
CVE-2026-27771 let attackers pull private container images without authentication. Over 30,000 Gitea deployments affected across healthcare, aerospace, and retail. Update to 1.26.2 now.
A security flaw in Gitea allowed unauthenticated attackers to pull private container images from any deployment—and it went undetected for nearly four years. CVE-2026-27771, disclosed Tuesday by Noscope researchers, carries a CVSS score of 8.2 and affects all Gitea versions prior to 1.26.2.
The vulnerability exists in Gitea's container registry access control model. When a repository is marked private, the container registry endpoint should require authentication. It didn't. Anonymous requests could fetch image layers and manifests without credentials.
Who's Affected
According to Noscope, more than 30,000 deployments across 30+ countries are likely vulnerable. Affected organizations span healthcare providers, aerospace manufacturers, retail infrastructure, and internet service providers. The bug has existed since the container registry feature was introduced in Gitea 1.14.0 back in 2022.
Forgejo, the community fork of Gitea that shares the same container registry implementation, is also confirmed vulnerable.
Technical Details
The flaw stems from how Gitea handles the "private" designation on container repositories. The access control check simply failed to apply to the OCI registry endpoints. An attacker could enumerate image names through common naming patterns or prior reconnaissance, then pull the full image contents without ever authenticating.
This is similar to issues we've seen in other self-hosted git platforms. Authorization bypass vulnerabilities have plagued developer infrastructure throughout the software supply chain. Container registries are particularly attractive targets because they often contain proprietary code, configuration secrets, and infrastructure blueprints.
Remediation Steps
- Update to Gitea 1.26.2 immediately - This is the only complete fix
- Set REQUIRE_SIGNIN_VIEW=true - As a temporary workaround, add this to your Gitea configuration under the
[service]section - Audit container images - Review what private images may have been exposed
- Rotate secrets - Any credentials, API keys, or tokens embedded in container images should be considered compromised
Organizations using Forgejo should monitor for an equivalent patch release.
Why This Matters
Self-hosted Git platforms remain popular precisely because organizations want control over their source code and build artifacts. But that control comes with responsibility. When a vulnerability like this goes unnoticed for four years, it raises uncomfortable questions about security testing in open-source infrastructure projects.
Container images often contain more than just application code. Build processes frequently embed database credentials, cloud provider keys, and internal service tokens. An attacker with access to private images could pivot to production infrastructure or gain persistent access to CI/CD pipelines—something we've covered extensively in our supply chain attack coverage.
The 30,000+ deployment figure is likely conservative. Many Gitea instances run behind corporate firewalls and wouldn't appear in internet scans, though they'd still be vulnerable to insider threats or lateral movement during a breach.
If you're running Gitea with container registry enabled, assume your private images may have been accessed and plan your remediation accordingly.
Related Articles
Docker Auth Bypass Gives Attackers Full Host Access
CVE-2026-34040 lets attackers bypass Docker authorization plugins with a single padded HTTP request. CVSS 8.8 flaw patched in Engine 29.3.1.
Apr 8, 2026Linux Copy Fail Flaw Grants Root in Seconds — Patch Now
CVE-2026-31431 lets attackers gain root on every major Linux distro since 2017 with a 732-byte Python script. Here's how it works and what to do.
Apr 30, 2026Coolify Command Injection Flaws Grant Root Access
Five critical vulnerabilities in the self-hosting platform allow authenticated users to execute arbitrary commands as root. Over 52,000 instances are exposed globally.
Jan 10, 2026SonicWall VPN MFA Bypass Fuels Ransomware Attacks on EOL Devices
CVE-2024-12802 lets attackers bypass MFA on SonicWall Gen6 VPNs even after patching. Ransomware operators actively exploiting incomplete fixes. Gen6 reached EOL April 16.
May 27, 2026