cbcvebase.
CVE-2026-27771
published 2026-07-03

CVE-2026-27771: Gitea versions up to and including 1.26.1 have insufficient permission checks for Composer package source links, which can expose private or internal package…

PriorityP272high8.2CVSS 3.0
AVNACLPRNUINSUCHILAN
EXPLOIT
EPSS
43.07%
98.6th percentile
Gitea versions up to and including 1.26.1 have insufficient permission checks for Composer package source links, which can expose private or internal package source information.

Affected

2 ranges
VendorProductVersion rangeFixed in
code.gitea.iogitea>= 0 < 1.26.21.26.2
giteagitea_open_source_git_server<= 1.26.1

Detection & IOCsextracted from sources · hover to see the quote

urlGET /v2/ HTTP/1.1
url/v2/_catalog
yara
"repositories":\s*\[".+
  • Step 1 of exploit chain: probe /v2/ endpoint — expect HTTP 401 response, confirming Gitea container registry is present.
  • Step 2 of exploit chain: request an unauthenticated token from /v2/token with wildcard scope to obtain a Bearer token without credentials.
  • Step 3 of exploit chain: use the unauthenticated Bearer token to enumerate all repositories via /v2/_catalog; a 200 response with a non-empty 'repositories' array confirms exploitation.
  • Unauthenticated remote attackers can pull private container images from Gitea deployments without requiring an account, password, or other credentials.
  • Forgejo (a Gitea fork) has been independently confirmed to be impacted; treat all Gitea forks as potentially vulnerable until verified.
  • ·Temporary workaround: set REQUIRE_SIGNIN_VIEW=true in gitea app.ini to block unauthenticated access, but note this also blocks all anonymous access including intentionally public repositories.
  • ·The workaround of setting [service].REQUIRE_SIGNIN_VIEW=true is not ideal if some containers are meant to be intentionally exposed publicly.
  • ·The vulnerability affects all Gitea versions prior to 1.26.2; the NVD description references Composer package source links while the researcher report describes container registry image pull — treat scope as container registry auth bypass (CWE-862).
CVEs like this are exactly what “Exploited This Week” covers.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.