# Four-Year Auth Bypass in Gitea Exposed 30,000+ Private Container Images Worldwide


## The Threat


Researchers at Noscope have disclosed a critical authentication bypass vulnerability in Gitea, an open-source, self-hosted version control and package management platform trusted by organizations globally. The flaw allows unauthenticated attackers to download private container images directly from affected Gitea instances without providing credentials, account access, or any prior authentication—defeating the fundamental security model of private repositories.


Container images are not abstract artifacts. They are packaged applications that frequently contain hardcoded secrets, API credentials, proprietary source code, and business logic. When marked private, organizations reasonably expect those images to remain accessible only to authorized personnel. This vulnerability obliterated that assumption for anyone running Gitea versions prior to 1.26.2.


The scope is staggering. Noscope's analysis estimates the vulnerability impacted more than 30,000 Gitea deployments across over 30 countries, with the heaviest concentrations in China, the United States, Germany, France, and the United Kingdom. Affected organizations span healthcare providers, aerospace manufacturers, retail infrastructure operators, and internet service providers—sectors where container orchestration and secure artifact distribution are foundational to operations. Most alarming: the vulnerability remained undetected for approximately four years, meaning private container images have been potentially accessible to the open internet since around 2022.


## Severity and Impact


| CVE | CVSS Score | Vector String | Attack Complexity | Authentication Required |

|---------|---|---|---|---|

| CVE-2026-27771 | Not Assigned | Network / Low | Low | None |


CWE Classification: CWE-287 (Improper Authentication)


The absence of an assigned CVSS score underscores the complexity of quantifying risk—but the vulnerability's characteristics are unambiguous: a complete authentication bypass affecting container registries. An attacker with internet connectivity and the registry URL can enumerate and pull all private container images without a single credential. The attack requires no special tooling, no account creation, no social engineering. It works via standard container pull mechanisms (docker pull, podman pull, etc.) that any developer already knows how to use.


## Affected Products


Directly Affected:

  • Gitea — All versions prior to 1.26.2 (Latest version: 1.26.2 or later)

  • Related Forks (Confirmed Impact):

  • Forgejo — Derived from Gitea; confirmed vulnerable. Users must check respective maintainers for patch availability

  • Scope Note: Any fork or derivative of Gitea that includes container registry functionality should be considered potentially vulnerable until independently audited and patched by its maintainers.


    ## Mitigations


    Immediate Actions:


    1. Upgrade Gitea to version 1.26.2 or later — This is the primary remediation. Users should prioritize this patch in their deployment cycles.


    2. Temporary Workaround (if immediate patching is impossible): Add the following configuration parameter to your Gitea installation:

    ```

    [service]

    REQUIRE_SIGNIN_VIEW=true

    ```

    This enforces sign-in for all users accessing the instance, including container registry operations. Important caveat: This approach has operational drawbacks if your organization intentionally exposes certain container images publicly—evaluate your use case before applying this workaround.


    3. Network Segmentation: In the interim, restrict network access to your Gitea container registry endpoint:

    - Implement VPN/zero-trust access controls to your Gitea instance

    - Use firewall rules to allow registry access only from known internal networks or authorized external IPs

    - Monitor registry access logs for anomalous pull activity


    4. Audit Exposure:

    - Review your Gitea instance's access logs from the past four years for unexpected pull requests from external IPs

    - Treat all private container images as potentially compromised—audit their contents for hardcoded credentials, API keys, or sensitive data

    - Rotate any credentials or secrets that were embedded in pulled images


    5. Inventory Your Deployment:

    - Verify your Gitea version and apply patches immediately

    - Check whether you run any Gitea forks (like Forgejo) and apply patches from their respective maintainers

    - Assess whether your organization has other container registries (Docker Registry, Harbor, Nexus) that may share similar auth bypass risks


    ## References


  • Noscope Security Research: [Original Disclosure](#) (check Noscope's website for full technical analysis)
  • Gitea Project: https://github.com/go-gitea/gitea
  • Gitea Release Notes (1.26.2): https://github.com/go-gitea/gitea/releases/tag/v1.26.2
  • Forgejo Project: https://codeberg.org/forgejo/forgejo (check for patched versions)
  • CWE-287 Reference: https://cwe.mitre.org/data/definitions/287.html

  • ---


    ## HackWire Analysis


    This vulnerability crystallizes a pattern in open-source DevOps infrastructure: container registries and artifact repositories are frequently treated as secondary security concerns, despite being core to modern software supply chains. Gitea's four-year undetected auth bypass reveals two uncomfortable truths.


    First, self-hosted registries inherit invisibility. Unlike SaaS registries (Docker Hub, GitHub Container Registry, AWS ECR), self-hosted Gitea instances operate behind organization firewalls. When security researchers scan the internet for vulnerabilities, they find public instances but often miss the thousands of private deployments running outdated versions. Gitea users may have assumed they were patching responsibly, unaware their instance was exposed.


    Second, private container image security is underspecified in the DevOps community. Unlike source code repositories, which have clear access control models and audit trails, container registries are often treated as "build plumbing"—necessary infrastructure but not a focus for security hardening. Many organizations lack inventory of what's actually stored in their private registries and who pulled images from them. The 4-year detection window suggests no one was actively monitoring for unauthorized pulls.


    The geographic concentration of affected deployments—especially in China and the United States—hints at sector-specific adoption patterns. Healthcare, aerospace, and retail are heavily regulated industries where supply chain integrity is mandatory. Organizations in those sectors should immediately audit their Gitea instances, not just for the patch, but for forensic evidence of unauthorized image pulls over the past four years. If images containing proprietary code or secrets were exfiltrated, that exposure needs to be reported to compliance teams.


    For defenders: treat container registry access logs like you would source code repository logs. Monitor for unauthenticated pulls, enumerate pull volume by IP, and establish baselines for what "normal" pull activity looks like. For DevOps teams considering Gitea: evaluate whether your security requirements align with its maturity level. This vulnerability was fixable by the maintainers, but the four-year lag suggests resources or visibility gaps in the project's security process.


    — HackWire Editorial


    ---


    ## Related Coverage


  • Read more in our [Vulnerabilities](https://www.hackwire.news/category/vulnerabilities) coverage
  • Cross-reference with [Breaches](https://www.hackwire.news/category/breaches) and [Malware](https://www.hackwire.news/category/malware)
  • Stay current via the [HackWire homepage](https://www.hackwire.news/)