CVE-2026-57894
Received Received - Intake

Git HTTP Redirect Exploitation in Repository Migration

Vulnerability report for CVE-2026-57894, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-08-13

Last updated on: 2026-08-13

Assigner: Gitea Limited

Description

Repository Migration Follows Git HTTP Redirects After URL Allow/Block Validation, Enabling Internal Git Repository Exfiltration

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-08-13
Last Modified
2026-08-13
Generated
2026-08-13
AI Q&A
2026-08-13
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
gitea gitea to 1.26.5 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-918 The web server receives a URL or similar request from an upstream component and retrieves the contents of this URL, but it does not sufficiently ensure that the request is being sent to the expected destination.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

CVE-2026-57894 is a vulnerability in Gitea where repository migration improperly handles Git HTTP redirects. Gitea validates the initial URL but the Git client follows redirects by default, allowing an attacker to bypass URL restrictions and exfiltrate internal Git repositories.

Detection Guidance

Check Gitea logs for unusual repository migration activities or unexpected Git HTTP redirects. Monitor network traffic for Git clone operations originating from internal IPs to external URLs. Use commands like 'git clone --verbose' to inspect redirect behavior during repository migrations.

Impact Analysis

An authenticated low-privileged user can exploit this to clone internal repositories into their own Gitea instance, potentially exposing sensitive data like CI/CD secrets, credentials, or production configurations. Instances with pull mirroring enabled may experience persistent exfiltration.

Compliance Impact

This vulnerability could lead to unauthorized access and exfiltration of sensitive data, violating compliance requirements for data protection such as GDPR and HIPAA, which mandate strict controls over data access and confidentiality.

Mitigation Strategies

Upgrade Gitea to a version beyond 1.26.4. Disable Git HTTP redirects during clone operations by setting 'GIT_REDIRECT_STDIN=0' in the environment. Restrict network policies to prevent unauthorized redirection from internal to external Git endpoints.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-57894. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart