CVE-2026-22874

CRITICAL

Gitea webhook and migration allow-list filtering permits SSRF

Title source: cna
STIX 2.1

Exploitation Summary

EIP tracks 2 public exploits for CVE-2026-22874. PoCs published by Eliot-code, M8seven.

AI-analyzed exploit summary This PoC exploits a Server-Side Request Forgery (SSRF) vulnerability in Gitea <=1.26.2 via webhook misconfiguration, allowing attackers to bypass network restrictions and access internal services (e.g., cloud metadata endpoints) using various IPv6/IPv4 bypass techniques.

Description

Gitea versions up to and including 1.26.2 have incomplete SSRF protection in webhook and migration allow-list filtering.

Exploits (2)

github WORKING POC
by Eliot-code · pythonpoc
https://github.com/Eliot-code/CVE-2026-22874-PoC

This PoC exploits a Server-Side Request Forgery (SSRF) vulnerability in Gitea <=1.26.2 via webhook misconfiguration, allowing attackers to bypass network restrictions and access internal services (e.g., cloud metadata endpoints) using various IPv6/IPv4 bypass techniques.

Classification
Working Poc 98%
Attack Type
Ssrf
Complexity
Moderate
Reliability
Reliable
Target: Gitea <=1.26.2
Auth required
Prerequisites: Valid Gitea personal access token with repo permissions · Access to a repository where the attacker can create webhooks · Network access to the Gitea instance
mistral-large-3 · analyzed Jul 05, 2026 Full analysis →
github WRITEUP
by M8seven · poc
https://github.com/M8seven/cve-2026-22874-gitea-ssrf-allowlist

Technical analysis of CVE-2026-22874, an SSRF vulnerability in Gitea <=1.26.2 due to an incomplete allow-list in webhook and migration features. The writeup details how `net.IP.IsPrivate()` misses cloud metadata endpoints and IPv6 transition ranges, enabling authenticated users to read internal service responses via webhook history.

Classification
Writeup 100%
Attack Type
Ssrf
Complexity
Moderate
Reliability
Reliable
Target: Gitea <=1.26.2
Auth required
Prerequisites: Authenticated access to create/modify webhooks or start migrations · Target internal service must respond within ~1 MiB limit
mistral-large-3 · analyzed Jul 05, 2026 Full analysis →

References (5)

Core 5
Core References
Vendor Advisory vendor-advisory
GitHub Security Advisory
https://github.com/go-gitea/gitea/security/advisories/GHSA-2r5c-gw76-rh3w
Patch patch
GitHub Pull Request #38173
https://github.com/go-gitea/gitea/pull/38173
Patch patch
GitHub Pull Request #38059
https://github.com/go-gitea/gitea/pull/38059
Release Notes release-notes
Gitea v1.26.3 Release
https://github.com/go-gitea/gitea/releases/tag/v1.26.3
Release Notes release-notes
Gitea v1.26.4 Release Blog Post
https://blog.gitea.com/release-of-1.26.3-and-1.26.4/

Scores

CVSS v3 9.6
EPSS 0.0055
EPSS Percentile 43.0%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N

CISA SSVC

Vulnrichment
Exploitation poc
Automatable no
Technical Impact total

Details

CWE
CWE-918
Status published
Products (2)
code.gitea.io/gitea 0 - 1.26.3Go
Gitea/Gitea Open Source Git Server < 1.26.2
Published Jul 03, 2026
Tracked Since Jul 04, 2026