Skip to navigation

Threat reportVulnerabilityTL-2026-3046

Gitea 28.x Patches 27 Security Flaws Including Critical SSH Public-Key Authentication Bypass (CVE-2026-103059), SSRF/DNS Rebinding and Actions Approval Bypasses

criticalPATCHED

Gitea 28.0.0 and 28.1.0 fix 27 security flaws, headlined by CVE-2026-103059 (CVSS 9.1), a case-insensitive SSH public-key lookup that lets a crafted RSA key match another user's registered key on the built-in SSH server. Other fixes cover SSRF via DNS rebinding and egress allowlist bypasses, and Gitea Actions fork-PR approval bypasses that can reach self-hosted runners.

Key facts

IdentifiersTL-2026-3046, CVE-2026-103059, CVE-2026-70357, CVE-2026-101027, CVE-2026-101029, CVE-2026-89430, CVE-2026-104632, CVE-2026-94205, CVE-2026-104626, CVE-2026-103667, CVE-2026-95106, CVE-2026-103670, CVE-2026-96399, CVE-2026-96404, CVE-2026-96589, CVE-2026-96400, CVE-2026-104636, CVE-2026-79960, CVE-2026-103504, CVE-2026-96580, CVE-2026-95112
SeverityCRITICAL
CVSS9.1
First disclosed
EPSSCVE-2026-96404: 0.4% (33.5th percentile); CVE-2026-96399: 0.3% (26.6th percentile); CVE-2026-96580: 0.3% (26.6th percentile)
Affected productsGitea Gitea (self-hosted Git service; Go module gitea.dev)
Weaknesses (CWE)CWE-841, CWE-305, CWE-285, CWE-287
MITRE ATT&CK techniquesT1021.004 SSH, T1059 Command and Scripting Interpreter, T1059.007 JavaScript, T1078 Valid Accounts, T1098 Account Manipulation, T1190 Exploit Public-Facing Application, T1213.003 Code Repositories, T1499.003 Application Exhaustion Flood, T1499.004 Application or System Exploitation, T1548 Abuse Elevation Control Mechanism, T1565.001 Stored Data Manipulation, T1677 Poisoned Pipeline Execution
MotivationUNKNOWN
Target sectorstechnology, software-development, critical-infrastructure, government administration
Target regionsGlobal
Detection rules9 (1 shown free)
Sources7 cited sources

Detection coverage

As of 2026-10-10, Threadlinqs Intelligence publishes 9 detection rule(s) for TL-2026-3046 across Splunk SPL, Microsoft KQL and Sigma, covering 7 indicator(s) of compromise. The whole corpus is readable without an account. Every threat comes with one complete detection in Splunk SPL, Microsoft KQL and Sigma, free for everyone; a free account adds daily TL Creds to unlock the rest. Paid plans add a larger daily allowance, correlation and the MCP server. Threadlinqs MCP server · View plans.

Free detection: Gitea Built-in SSH Public-Key Auth With Unregistered or Mismatched Key Fingerprint (CVE-2026-103059)

Detects the CVE-2026-103059 abuse pattern on Gitea's built-in SSH server: a public-key login attributed to user A whose presented key fingerprint is not registered to A. The flaw compared key text with a case-insensitive SQL LIKE (default SQLite), so a crafted case-variant RSA key (different fingerprint) could match another user's registered key. The attacker must hold the matching private key, so the signal is a SHA256 fingerprint that is absent from, or owned by someone other than, the authenticated user in the exported Gitea public_key inventory. Fixed in 28.0.0 (lookup by fingerprint). No exploitation is reported; this is a hunting/assurance detection for unpatched instances.

  • Languages: Splunk SPL, Microsoft KQL, Sigma
  • ATT&CK: T1190, T1078, T1021.004
  • Data sources: gitea_application_log, gitea_public_key_inventory_lookup
  • Severity: critical
  • Confidence: medium

Splunk SPL

index=gitea sourcetype="gitea:log" earliest=-24h
| search ("public key" OR "publickey" OR "pubkey") AND ("authenticat" OR "Authenticat")
| rex field=_raw "(?i)user[=: ]+(?<gitea_user>[A-Za-z0-9_.-]+)"
| rex field=_raw "(?<key_fp>SHA256:[A-Za-z0-9+/]{43})"
| rex field=_raw "(?<src_ip>[0-9]{1,3}([.][0-9]{1,3}){3})"
| where isnotnull(gitea_user) AND isnotnull(key_fp)
| eval gitea_user=lower(gitea_user)
| lookup gitea_registered_keys key_fp OUTPUT owner AS registered_owner
| where isnull(registered_owner) OR lower(registered_owner)!=gitea_user
| stats count values(src_ip) AS src_ips values(registered_owner) AS registered_owner min(_time) AS first_seen max(_time) AS last_seen BY host, gitea_user, key_fp
| convert ctime(first_seen) ctime(last_seen)

Microsoft KQL

// Requires Watchlist 'GiteaRegisteredKeys' (KeyFp, Owner) exported from the Gitea public_key table
let RegisteredKeys = _GetWatchlist('GiteaRegisteredKeys')
    | project KeyFp = tostring(KeyFp), RegisteredOwner = tolower(tostring(Owner));
GiteaLog_CL
| where TimeGenerated > ago(24h)
| where RawData has_any ('public key', 'publickey', 'pubkey') and RawData has 'authenticat'
| extend GiteaUser = tolower(extract(@'(?i)user[=: ]+([A-Za-z0-9_.-]+)', 1, RawData))
| extend KeyFp = extract(@'(SHA256:[A-Za-z0-9+/]{43})', 1, RawData)
| extend SrcIP = extract(@'([0-9]{1,3}(?:[.][0-9]{1,3}){3})', 1, RawData)
| where isnotempty(GiteaUser) and isnotempty(KeyFp)
| join kind=leftouter RegisteredKeys on KeyFp
| where isempty(RegisteredOwner) or RegisteredOwner != GiteaUser
| project TimeGenerated, Computer, GiteaUser, KeyFp, RegisteredOwner, SrcIP, RawData

Sigma

title: Gitea Built-in SSH Public-Key Authentication Event
id: 3b8e5c1a-6f24-4a7d-9c31-0e5d2a8b7f11
name: gitea_ssh_pubkey_auth
status: experimental
description: Gitea built-in SSH server public-key authentication event. Base rule for the CVE-2026-103059 correlation below; field names gitea_user and key_fp are extracted from the Gitea application log.
references:
    - https://blog.gitea.com/release-of-28.0.0/
    - https://github.com/go-gitea/gitea/releases/tag/v28.1.0
author: Threadlinqs Team
date: 2026-10-08
tags:
    - attack.initial-access
    - attack.t1190
    - attack.t1078
    - attack.lateral-movement
    - attack.t1021.004
    - cve.2026.103059
logsource:
    product: gitea
    service: application
detection:
    selection_pubkey:
        Message|contains:
            - 'public key'
            - 'publickey'
            - 'pubkey'
    selection_auth:
        Message|contains: 'authenticat'
    condition: selection_pubkey and selection_auth
falsepositives:
    - Normal SSH git operations
level: informational
---
title: Gitea SSH Account Authenticating With Multiple Distinct Key Fingerprints (CVE-2026-103059 Proxy)
id: 9d4a7e20-1b3c-4f58-a6d2-c7e81b0f3a45
status: experimental
description: One Gitea account authenticating over the built-in SSH server with two or more distinct public-key fingerprints within an hour. A case-variant key accepted for a victim account (CVE-2026-103059) appears next to the victim's genuine key. Proxy for the authoritative registered-key inventory check in the SPL and KQL versions.
references:
    - https://github.com/go-gitea/gitea/security/advisories
author: Threadlinqs Team
date: 2026-10-08
tags:
    - attack.initial-access
    - attack.t1190
    - attack.t1078
    - cve.2026.103059
correlation:
    type: value_count
    rules:
        - gitea_ssh_pubkey_auth
    group-by:
        - gitea_user
    timespan: 1h
    condition:
        gte: 2
        field: key_fp
falsepositives:
    - Users who legitimately hold several SSH keys (laptop, CI, hardware token)
level: medium

Known false positives:

  • Users who legitimately registered a new key and authenticated before the key inventory lookup/watchlist was refreshed
  • Keys imported via LDAP/SSO sync that are missing from the exported inventory

Tuning notes: Gitea does not log key fingerprints by default at INFO; raise the SSH/router log level or log the fingerprint at the reverse proxy. Adjust the user/fingerprint regexes to your log format. Refresh gitea_registered_keys (export fingerprint and owning user name from the public_key and user tables) at least hourly. Only the built-in SSH server (SSH_SERVER) is affected; ignore hosts using OpenSSH passthrough, and close the alert once the instance runs 28.0.0 or later.

8 more detection rules (Splunk SPL, Microsoft KQL, Sigma) · unlock with TL Creds. Sign up free to unlock the detection rules or query them with the Threadlinqs MCP server (Purple and Gold in full, 2 calls a day on a free account)
  • Gitea Server Process Connecting to Internal, Loopback or Link-Local Addresses (SSRF / DNS Rebinding) · unlock with TL Creds
  • Suspicious Child Processes of Gitea Actions Self-Hosted Runner (act_runner) · unlock with TL Creds
  • Gitea or act_runner Repeated OOM Kills and Crash Restarts (Resource Exhaustion) · unlock with TL Creds
  • Successful POST to Gitea Installer Route on a Running Instance (CVE-2026-96404) · unlock with TL Creds
  • Gitea SSH/Deploy Key Registration and Team Permission Changes (Persistence and Privilege Review) · unlock with TL Creds
  • Gitea Repository Migration or Push-Mirror Creation Request (SSRF Precursor) · unlock with TL Creds
  • Gitea Actions Run Cancelled Then Approved or Re-run (Fork-PR Approval Bypass, CVE-2026-104632 / CVE-2026-104626) · unlock with TL Creds
  • Bulk Git Clone/Fetch Across Many Gitea Repositories by One Actor (Code Repository Collection) · unlock with TL Creds

Indicators of compromise

As of 2026-10-10, Threadlinqs Intelligence tracks 7 indicators of compromise for TL-2026-3046.

7 indicators of compromise · unlock with TL Creds. Compare plans

Technical analysis

No active exploitation of these flaws is reported.

Gitea (a self-hosted Git service) shipped 28.0.0 on 2026-09-30 (the project dropped the '1.' version prefix) with security notes listing 20 CVEs, followed by 28.1.0 (2026-10-06), bringing the reported total to 27 fixed flaws. Gitea advises upgrading as soon as possible.

CVE-2026-103059 (CVSS 9.1, critical) affects deployments using Gitea's built-in SSH server. The public-key lookup compared key text with an SQL LIKE comparison that is case-insensitive on some databases, including the default SQLite. A specially crafted RSA key could therefore match a different user's registered key. Per the reporting, exploitation requires a suitable case variant of the victim's public key together with its matching private key, so it is not a general bypass. The fix (PR #39423, reported by @carlini) identifies presented keys by fingerprint instead of text comparison.

A cluster of SSRF/egress flaws was fixed by routing migration, mirror and Git network operations through an internal proxy that applies outbound rules (PR #39426): CVE-2026-70357 (DNS rebinding between hostname validation and the Git connection during migrations/mirrors), CVE-2026-101027 (allowed-domain hostnames skipped the destination IP check), CVE-2026-101029 (multi-answer DNS bypassed the egress allow-list), CVE-2026-89430 (push mirrors could later reach internal Git hosts and force-push to them), CVE-2026-96400 (non-empty migrations ALLOWED_DOMAINS permitted reserved and link-local addresses; default config not affected) and CVE-2026-104636 (Git HTTP redirects bypassed the outbound host policy).

Gitea Actions approval logic had several bypasses (PR #39399): CVE-2026-104632 (re-running an approval-pending, cancelled fork PR run could execute on self-hosted runners without approval), CVE-2026-104626 (GHSA-93pj-3x56-5gc2, CVSS 9.0: approving a fork PR run revived already-cancelled jobs; advisory notes it needs Actions enabled, a matching runner and a later legitimate maintainer approval; affects versions up to and including 1.27.3), CVE-2026-94205 (approval check ignored the PR author, so a maintainer-triggered event could run untrusted fork workflows), CVE-2026-103670 (an unapproved fork PR run could cancel trusted runs in the same concurrency group) and CVE-2026-96580 (large static strategy.matrix in unapproved fork PR workflows could exhaust memory).

Other fixes: CVE-2026-103667 (container registry served attacker-controlled content types, stored XSS), CVE-2026-95106 (duplicate Git tree entry names could make Gitea show a different file than checkout/CI uses, hiding malicious files from reviewers), CVE-2026-96404 (re-running the installer issued an admin session without verifying the password), CVE-2026-96589 (rejected/cancelled repository transfers left the recipient's temporary access), CVE-2026-79960 (deploy-key pushes ran hooks as the repo owner, bypassing protected-tag and push-option checks), CVE-2026-103504 (lowering a team's permission via the API left prior per-unit permissions), CVE-2026-96399 (crash via crafted external issue tracker pattern) and CVE-2026-95112 (quadratic issue-reference parsing).

Upgrade notes: strict egress mode (EGRESS_MODE = strict) gives deny-by-default outbound rules; Git 2.25.0+ is required; self-registration is disabled unless DISABLE_REGISTRATION = false; completed Actions runs are deleted after 400 days by default; WebSocket notifications replace SSE. Sources do not state CVSS for most CVEs or per-CVE affected ranges. The sources mention no public PoC and no exploitation of these flaws; separate Gitea exploitation reporting (CVE-2026-60004 diffpatch RCE, fixed in 1.27.1) is a different vulnerability.

MITRE ATT&CK techniques by tactic:

Lateral Movement

T1021.004 SSH

Execution

T1059 Command and Scripting Interpreter; T1059.007 JavaScript; T1677 Poisoned Pipeline Execution

Initial Access

T1078 Valid Accounts; T1190 Exploit Public-Facing Application

Persistence

T1098 Account Manipulation

Collection

T1213.003 Code Repositories

Impact

T1499.003 Application Exhaustion Flood; T1499.004 Application or System Exploitation; T1565.001 Stored Data Manipulation

Privilege Escalation

T1548 Abuse Elevation Control Mechanism

Remediation

Patches

  • Gitea 28.0.0 (2026-09-30, 20 CVEs)
  • Gitea 28.1.0 (2026-10-06, completes the 27 fixes)

Immediate actions

  • Back up data, review breaking changes, then upgrade Gitea to 28.1.0
  • Where the built-in SSH server is used, upgrade first to fix CVE-2026-103059 (key lookup by fingerprint)
  • Require manual approval for fork PR workflows and review self-hosted runner exposure to fork workflows

Workarounds

  • Source notes Git 2.25.0 minimum is required by 28.x; set RUN_RETENTION_DAYS = 0 in [actions] before upgrading to retain completed runs
  • Set ROOT_URL (the [server] DOMAIN setting is ignored for registration/installer logic) and keep DISABLE_REGISTRATION enabled unless needed

Longer-term hardening

  • Set EGRESS_MODE = strict and explicitly list allowed hosts for migrations, mirrors and Git network operations
  • Isolate self-hosted Actions runners from internal networks and secrets
  • Disable open registration if not needed; review installer exposure and deploy-key scopes

Affected and fixed versions

  • Gitea — Gitea (self-hosted Git service; Go module gitea.dev)
    Vulnerable versions: Versions prior to 28.0.0 (GHSA-93pj-3x56-5gc2 / CVE-2026-104626: up to and including 1.27.3); per-CVE ranges not stated in sources
    Fixed in: 28.0.0; 28.1.0

Timeline

Last updated · revalidated 1× · latest source

  • Context: separate Gitea diffpatch RCE (CVE-2026-60004, CVSS 9.8) fixed in 1.27.1; not one of the 27 flaws
  • Context: exploitation of the separate CVE-2026-60004 RCE by the Red Heron actor reported publicly, underscoring that internet-exposed Gitea servers are actively targeted
  • Gitea 28.0.0 released (version prefix '1.' dropped); security notes list 20 CVEs including CVE-2026-103059, the SSRF/DNS rebinding set and the Actions approval bypasses, with an ASAP upgrade recommendation
  • NVD publishes CVE-2026-103059 (CVSS 9.1, CWE-305), CVE-2026-104632 (CVSS 8.8, CWE-285) and CVE-2026-96404 (CVSS 8.1, CWE-287), with affected versions through 1.27.3. EPSS for CVE-2026-103059 is reported at 0.28%; not in CISA KEV.
  • Batch of GitHub security advisories for go-gitea/gitea published, including GHSA-93pj-3x56-5gc2 (CVE-2026-104626, Critical) for cancelled fork-PR Actions jobs revived by later approval
  • Gitea 28.1.0 released; with it the reported total of fixed security flaws reaches 27
  • Cyber Security News reports the 27 fixes, headlined by CVE-2026-103059 (CVSS 9.1); no active exploitation of the newly fixed flaws is reported

Update history

Sources cited

Previous and next in vulnerability

Drafted by the Threadlinqs research pipeline from 7 sources; published ; last updated .

Threadlinqs Intelligence — Real-Time Threat Detection Platform

// threat_feed
$ sort --newest
Showing all threats

Live intelligence console

Threat level

Latest Threats