---
id: "CVE-2026-123006"
page: "https://infrastack.ai/live/CVE-2026-123006"
kind: "vulnerability"
aliases: ["CVE-2026-123006", "GHSA-frjx-8pcw-8c9q"]
title: "Password hash material of repository owners exposed to any signed-in user via /repo/search"
severity: "high"
cvss: 8.8
epss: null
exploited: false
status: "open"
category: "package"
products: [{"name": "gitea.dev", "fixed": ["28.4.0"], "affected": ">= 28.0.0, <= 28.3.0", "ecosystem": "go"}]
ecosystems: ["go"]
tags: ["gitea", "go", "package", "self-hosted"]
not_affected_if: ["managed-hosting", "no-public-repos-with-commit-status", "version-28.4.0-or-later"]
published_at: "2026-11-15T21:03:03+00:00"
first_seen_at: "2026-11-15T21:12:49+00:00"
updated_at: "2026-11-15T21:14:04+00:00"
sources: [{"source": "ghsa-repo", "url": "https://github.com/go-gitea/gitea/security/advisories/GHSA-frjx-8pcw-8c9q", "first_seen_at": "2026-11-15T21:12:49+00:00"}, {"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-123006", "first_seen_at": "2026-11-15T21:40:48+00:00"}]
exploit_sources: []
---

# Password hash material of repository owners exposed to any signed-in user via /repo/search

Link for people: https://infrastack.ai/live/CVE-2026-123006 (this .md is for agents)

The /repo/search endpoint in Gitea serializes the internal commit status object, which includes the owner's full user record. Any signed-in user can read password hashes, salts, and primary emails of owners of public repositories that have a commit status, enabling offline password cracking and account enumeration.

_Summary, check and fix written by a model from the sources; labelled as such._

## Affected

- go:gitea.dev affected >= 28.0.0, <= 28.3.0 fixed 28.4.0

## How to check

- Check the Gitea version with `gitea --version`; versions from `28.0.0` through `28.3.0` are affected.
- Confirm whether the instance runs Gitea from the `go-gitea/gitea` source and not a managed host (check with the admin).
- Call `/repo/search` as a signed-in user on a test instance and look for `Passwd` or `Salt` in the JSON.

## Fix

- Gitea: move to `28.4.0` or later.

## Timeline

- 2026-11-15T21:12:49+00:00 ghsa-repo https://github.com/go-gitea/gitea/security/advisories/GHSA-frjx-8pcw-8c9q
- 2026-11-15T21:40:48+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-123006

## Documents

- [advisory] Maintainer's advisory: github.com https://github.com/go-gitea/gitea/security/advisories/GHSA-frjx-8pcw-8c9q
- [fix] Release notes: github.com https://github.com/go-gitea/gitea/releases/tag/v28.4.0

## From the sources

### Summary

Any authenticated user (no privileges needed) can read the password hash, hash algorithm, salt, rands and primary email of the owner of any public repository that has a latest combined commit status. /repo/search serializes the internal CommitStatus → Repository → user_model.User object graph directly, without a DTO or json exclusion.

### Details

Root cause: the web repo search response embeds the internal commit-status model and JSON-encodes the full object graph.

- routers/web/repo/repo.go:549 puts the *git_model.CommitStatus into repo_service.WebSearchRepository.LatestCommitStatus (services/repository/repository.go:39), then ctx.JSON() at :554 encodes it.
- CommitStatus.Repo (models/git/commit_status.go:42) has no `json:"-"`, and commitstatus_service sets it to the full repo (services/repository/commitstatus/commitstatus.go:196).
- Repository.Owner is loaded as a complete user row (models/repo/repo_list.go, LoadOwners), and user_model.User has no JSON tags on Email/Passwd/PasswdHashAlgo/Salt/Rands (models/user/user.go:108-125).
- CommitStatusesApplyDoerPermission (models/git/commit_status.go:554) only blanks the Actions TargetURL; it does not strip Repo or Owner.

Result: the response contains
  latest_commit_status.Repo.Owner.{Passwd,PasswdHashAlgo,Salt,Rands,Email}
plus the whole internal Repository object.

Fix: build a minimal DTO for search results, or add `json:"-"` to CommitStatus.Repo/Owner and add a test asserting the search JSON never contains Passwd/Salt/Rands/Email.

Tested on a fresh Gitea v28.3.0 (commit 4f5a3e1), default settings.

### Impact

Any signed-in user can harvest Argon2id password hashes, salts, hash parameters and primary emails for every owner of a public repository with a commit status — offline cracking material and account enumeration. The same response also leaks the full internal repository object.

---

_Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai_
