Improper Certificate Validation in Gitea - CVE-2026-54481

 

Improper Certificate Validation in Gitea - CVE-2026-54481

Published: July 14, 2026


Vulnerability identifier: #VU137424
CSH Severity: Medium
CVSS v4: 7.7 [CVSS:4.0/AV:A/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-54481
CWE-ID: CWE-295
Exploitation vector: Adjecent network
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to disclose sensitive information and compromise internal API functionality.

The vulnerability exists due to improper certificate validation in modules/private/internal.go when handling internal API HTTPS connections to a non-loopback target. A remote attacker can perform a man-in-the-middle attack and capture the internal authentication token to disclose sensitive information and compromise internal API functionality.

The issue is exposed in split-host or multi-pod deployments where LOCAL_ROOT_URL uses HTTPS to a non-loopback endpoint, and captured tokens can be replayed against /api/internal/* endpoints on the main HTTP listener.


Affected software

Gitea

How to mitigate CVE-2026-54481

Install security update from vendor's website.

Gitea - update to 1.27.0

External References

Related Security Bulletins