{"id":"CVE-2026-123006","kind":"vulnerability","aliases":["CVE-2026-123006","GHSA-frjx-8pcw-8c9q"],"related":[],"title":"Password hash material of repository owners exposed to any signed-in user via /repo/search","description":"### Summary\n\nAny 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.\n\n### Details\n\nRoot cause: the web repo search response embeds the internal commit-status model and JSON-encodes the full object graph.\r\n\r\n- 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.\r\n- 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).\r\n- 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).\r\n- CommitStatusesApplyDoerPermission (models/git/commit_status.go:554) only blanks the Actions TargetURL; it does not strip Repo or Owner.\r\n\r\nResult: the response contains\r\n  latest_commit_status.Repo.Owner.{Passwd,PasswdHashAlgo,Salt,Rands,Email}\r\nplus the whole internal Repository object.\r\n\r\nFix: 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.\n\nTested on a fresh Gitea v28.3.0 (commit 4f5a3e1), default settings.\r\n\r\n### Impact\n\nAny 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.","summary":"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.","severity":"high","cvss":8.8,"epss":null,"exploited":false,"exploited_at":null,"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"],"how_to_check":"- Check the Gitea version with `gitea --version`; versions from `28.0.0` through `28.3.0` are affected.\n- Confirm whether the instance runs Gitea from the `go-gitea/gitea` source and not a managed host (check with the admin).\n- 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.","status":"open","published_at":"2026-11-15T21:03:03+00:00","first_seen_at":"2026-11-15T21:12:49+00:00","triaged_at":"2026-11-15T21:14:04+00:00","updated_at":"2026-11-15T21:14:04+00:00","category":"package","confidence":0.85,"triage":{"at":"2026-11-15T21:14:04Z","model":"claude-haiku-5-5","output":{"fix":"- Gitea: move to `28.4.0` or later.","reach":"network","title":"Gitea: repo search leaks repository owners' password hashes to signed-in users","impact":"high","summary":"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.","audience":"businesses","category":"package","nicknames":[],"who_cares":["gitea","self-hosted","go"],"confidence":0.85,"fix_status":"available","needs_auth":"yes","worst_case":"Password hashes and salts of repository owners readable by any signed-in user","analyst_note":"","how_to_check":"- Check the Gitea version with `gitea --version`; versions from `28.0.0` through `28.3.0` are affected.\n- Confirm whether the instance runs Gitea from the `go-gitea/gitea` source and not a managed host (check with the admin).\n- Call `/repo/search` as a signed-in user on a test instance and look for `Passwd` or `Salt` in the JSON.","plain_action":"","product_name":"","needs_analyst":false,"not_affected_if":["managed-hosting","version-28.4.0-or-later","no-public-repos-with-commit-status"],"who_is_affected":"Self-hosted Gitea instances running versions 28.0.0 through 28.3.0 with users able to sign in, since any authenticated user can query the search endpoint. Repositories that have no commit status are not exposed through this path. Instances on managed hosting that patched or run a fixed version can skip it.","user_interaction":"no","product_ecosystem":"","needs_special_setup":"no","severity_if_unknown":"high"},"cost_usd":0.000835,"input_tokens":5247,"output_tokens":621,"severity_before":"high"},"analyst_status":null,"analyst_note":null,"search":"'-123006':18A,26A '-125':207C '-2026':17A,25A '/owner':253C '/repo/search':15A,35B,116C '108':206C '196':186C '39':163C '42':172C '4f5a3e1':272C '549':156C '554':167C,210C '8c9q':23A '8pcw':22A 'account':81B,307C 'action':214C 'add':248C,255C 'algorithm':96C 'also':312C 'argon2id':283C 'assert':258C 'authent':85C 'blank':212C 'build':240C 'caus':134C 'combin':113C 'commit':42B,74B,114C,144C,271C,301C 'commit-status':143C 'commitstatus':120C,177C 'commitstatus.repo':170C,252C 'commitstatus.repo/owner':251C 'commitstatusesapplydoerpermiss':208C 'complet':192C 'contain':226C,263C 'crack':79B,304C 'ctx.json':165C 'cve':16A,24A 'default':273C 'detail':132C 'direct':125C 'dto':128C,243C 'email':65B,101C,232C,291C 'email/passwd/passwdhashalgo/salt/rands':204C 'emb':140C 'enabl':76B 'encod':150C,168C 'endpoint':36B 'enumer':82B,308C 'everi':293C 'exclus':131C 'expos':7A 'fix':239C 'fresh':268C 'frjx':21A 'full':50B,152C,183C,315C 'ghsa':20A 'ghsa-frjx-8pcw-8c9q':19A 'git_model.commitstatus':159C 'gitea':28B,38B,269C 'gitea.dev':27A 'go':29B 'graph':124C,154C 'harvest':282C 'hash':2A,61B,94C,95C,285C,287C 'host':33B 'impact':275C 'includ':46B 'intern':41B,119C,142C,236C,316C 'json':130C,149C,175C,201C,249C,261C 'json-encod':148C 'latest':112C 'latest_commit_status.repo.owner':227C 'leak':313C 'load':189C 'loadown':196C 'materi':3A,305C 'minim':242C 'model':146C 'models/git/commit_status.go':171C,209C 'models/repo/repo_list.go':195C 'models/user/user.go':205C 'need':89C 'never':262C 'object':44B,123C,153C,238C,318C 'offlin':77B,303C 'owner':6A,48B,67B,104C,222C,294C 'packag':30B 'paramet':288C 'passwd':228C 'passwd/salt/rands/email':264C 'passwdhashalgo':229C 'password':1A,60B,78B,93C,284C 'plus':233C 'primari':64B,100C,290C 'privileg':88C 'public':69B,107C,297C 'put':157C 'rand':98C,231C 'read':59B,91C 'record':52B 'repo':137C,184C,220C 'repo_service.websearchrepository.latestcommitstatus':161C 'repositori':5A,70B,108C,121C,237C,298C,317C 'repository.owner':187C 'respons':139C,225C,311C 'result':223C,246C 'root':133C 'routers/web/repo/repo.go':155C 'row':194C 'salt':62B,97C,230C,286C 'search':138C,245C,260C 'self':32B 'self-host':31B 'serial':39B,117C 'servic':178C 'services/repository/commitstatus/commitstatus.go':185C 'services/repository/repository.go':162C 'set':179C,274C 'sign':11A,55B,278C 'signed-in':10A,54B,277C 'status':43B,75B,115C,145C,302C 'strip':219C 'summari':83C 'tag':202C 'targeturl':215C 'test':257C,265C 'user':13A,51B,57B,86C,193C,280C 'user_model.user':122C,198C 'v28.3.0':270C 'via':14A 'web':136C 'whole':235C 'without':126C","nicknames":[],"mitigations":[],"who_affected":"Self-hosted Gitea instances running versions 28.0.0 through 28.3.0 with users able to sign in, since any authenticated user can query the search endpoint. Repositories that have no commit status are not exposed through this path. Instances on managed hosting that patched or run a fixed version can skip it.","tier":"B","verified":{},"analyst_revisit_at":null,"fix_status":"available","audience":"businesses","plain_action":null,"pkeys":["giteadev"],"ptokens":["dev","gitea"],"labels":["gitea","go","high","package","selfhosted"],"campaign_type":null,"search_a":"'-123006':18A,26A '-2026':17A,25A '/repo/search':15A '8c9q':23A '8pcw':22A 'cve':16A,24A 'expos':7A 'frjx':21A 'ghsa':20A 'ghsa-frjx-8pcw-8c9q':19A 'gitea.dev':27A 'hash':2A 'materi':3A 'owner':6A 'password':1A 'repositori':5A 'sign':11A 'signed-in':10A 'user':13A 'via':14A","search_b":"'/repo/search':35B 'account':81B 'commit':42B,74B 'crack':79B 'email':65B 'enabl':76B 'endpoint':36B 'enumer':82B 'full':50B 'gitea':28B,38B 'go':29B 'hash':61B 'host':33B 'includ':46B 'intern':41B 'object':44B 'offlin':77B 'owner':48B,67B 'packag':30B 'password':60B,78B 'primari':64B 'public':69B 'read':59B 'record':52B 'repositori':70B 'salt':62B 'self':32B 'self-host':31B 'serial':39B 'sign':55B 'signed-in':54B 'status':43B,75B 'user':51B,57B","search_c":"'-125':207C '/owner':253C '/repo/search':116C '108':206C '196':186C '39':163C '42':172C '4f5a3e1':272C '549':156C '554':167C,210C 'account':307C 'action':214C 'add':248C,255C 'algorithm':96C 'also':312C 'argon2id':283C 'assert':258C 'authent':85C 'blank':212C 'build':240C 'caus':134C 'combin':113C 'commit':114C,144C,271C,301C 'commit-status':143C 'commitstatus':120C,177C 'commitstatus.repo':170C,252C 'commitstatus.repo/owner':251C 'commitstatusesapplydoerpermiss':208C 'complet':192C 'contain':226C,263C 'crack':304C 'ctx.json':165C 'default':273C 'detail':132C 'direct':125C 'dto':128C,243C 'email':101C,232C,291C 'email/passwd/passwdhashalgo/salt/rands':204C 'emb':140C 'encod':150C,168C 'enumer':308C 'everi':293C 'exclus':131C 'fix':239C 'fresh':268C 'full':152C,183C,315C 'git_model.commitstatus':159C 'gitea':269C 'graph':124C,154C 'harvest':282C 'hash':94C,95C,285C,287C 'impact':275C 'intern':119C,142C,236C,316C 'json':130C,149C,175C,201C,249C,261C 'json-encod':148C 'latest':112C 'latest_commit_status.repo.owner':227C 'leak':313C 'load':189C 'loadown':196C 'materi':305C 'minim':242C 'model':146C 'models/git/commit_status.go':171C,209C 'models/repo/repo_list.go':195C 'models/user/user.go':205C 'need':89C 'never':262C 'object':123C,153C,238C,318C 'offlin':303C 'owner':104C,222C,294C 'paramet':288C 'passwd':228C 'passwd/salt/rands/email':264C 'passwdhashalgo':229C 'password':93C,284C 'plus':233C 'primari':100C,290C 'privileg':88C 'public':107C,297C 'put':157C 'rand':98C,231C 'read':91C 'repo':137C,184C,220C 'repo_service.websearchrepository.latestcommitstatus':161C 'repositori':108C,121C,237C,298C,317C 'repository.owner':187C 'respons':139C,225C,311C 'result':223C,246C 'root':133C 'routers/web/repo/repo.go':155C 'row':194C 'salt':97C,230C,286C 'search':138C,245C,260C 'serial':117C 'servic':178C 'services/repository/commitstatus/commitstatus.go':185C 'services/repository/repository.go':162C 'set':179C,274C 'sign':278C 'signed-in':277C 'status':115C,145C,302C 'strip':219C 'summari':83C 'tag':202C 'targeturl':215C 'test':257C,265C 'user':86C,193C,280C 'user_model.user':122C,198C 'v28.3.0':270C 'web':136C 'whole':235C 'without':126C","cause_entry":null,"cause_path":null,"disclosures_checked_at":null,"first_public_at":"2026-11-15T21:03:03+00:00","kev":null,"cvss_vector":null,"cvss_by":null,"poc_count":0,"sources":[{"source":"ghsa-repo","external_id":"GHSA-frjx-8pcw-8c9q","url":"https://github.com/go-gitea/gitea/security/advisories/GHSA-frjx-8pcw-8c9q","severity":"high","published_at":"2026-11-15T21:03:03+00:00","modified_at":"2026-11-15T21:03:03+00:00","first_seen_at":"2026-11-15T21:12:49+00:00","fetched_at":"2026-11-15T21:12:49+00:00","note":null},{"source":"nvd","external_id":"CVE-2026-123006","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-123006","severity":null,"published_at":"2026-11-15T21:16:53+00:00","modified_at":"2026-11-15T21:16:54+00:00","first_seen_at":"2026-11-15T21:40:48+00:00","fetched_at":"2026-11-15T21:40:48+00:00","note":null}],"documents":[{"id":165578,"url":"https://github.com/go-gitea/gitea/security/advisories/GHSA-frjx-8pcw-8c9q","title":"Maintainer's advisory: github.com","kind":"vendor","source":"ghsa-repo","publisher":"vendor","text":null,"published_at":"2026-11-15T21:03:03+00:00","relation":"advisory","confidence":null,"note":"Maintainer's advisory: github.com"},{"id":165694,"url":"https://github.com/go-gitea/gitea/releases/tag/v28.4.0","title":"Release notes: github.com","kind":"release","source":"nvd","publisher":"vendor","text":null,"published_at":null,"relation":"fix","confidence":null,"note":"Release notes: github.com"}],"disclosures":[],"exploit_sources":[],"notice":"Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai"}