# CVE-2026-25119: Gogs: Authentication Bypass via Unvalidated Reverse Proxy Headers

- Severity: High 7.7 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:P`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.58%, higher than 49% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-06-22T17:09:51.000Z
- Modified: 2026-07-21T13:30:33.246Z
- Also known as: GHSA-w6j9-vw59-27wv, GO-2026-5695
- Weaknesses: CWE-290
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: GitHub_M

## Description

Gogs is an open source self-hosted Git service. Prior to 0.14.3, when ENABLE_REVERSE_PROXY_AUTHENTICATION is enabled, Gogs accepts the configured authentication header (default: X-WEBAUTH-USER) directly from client requests without validating that the request originated from a trusted reverse proxy. Any remote attacker who can reach the Gogs service can forge this header to impersonate any user or trigger automatic account creation, completely bypassing authentication. This vulnerability is fixed in 0.14.3.

(As written by CVE List.)

## Affected

- gogs gogs: < 0.14.3
- gogs.io/gogs (Go): before 0.14.3; all versions

## Every score

- GitHub_M: CVSS:4.0 7.7 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:P`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:P`

## References

- <https://github.com/gogs/gogs/security/advisories/GHSA-w6j9-vw59-27wv> (exploit, advisory, web)
- <https://github.com/gogs/gogs/pull/8264> (web)
- <https://github.com/gogs/gogs/commit/0089c4c8e5b8d99eb6e5c8727f8f40d765f1f58a> (web)
- <https://github.com/gogs/gogs/releases/tag/v0.14.3> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-25119> (advisory)
- <https://github.com/gogs/gogs> (package)

## Sources

- CVE List: [CVE-2026-25119](https://www.cve.org/CVERecord?id=CVE-2026-25119), CVE Terms of Use, modified 2026-06-25
- GitHub Advisory Database: [GHSA-w6j9-vw59-27wv](https://github.com/advisories/GHSA-w6j9-vw59-27wv), CC-BY-4.0, modified 2026-07-21
- Go Vulnerability Database: [GO-2026-5695](https://pkg.go.dev/vuln/GO-2026-5695), CC-BY-4.0, modified 2026-06-25
- NVD: [CVE-2026-25119](https://nvd.nist.gov/vuln/detail/CVE-2026-25119), Public domain, modified 2026-06-25

---

Page: https://cve.day/CVE-2026-25119 · Whole record: https://cve.day/CVE-2026-25119.json · Rebuilt by cve.day 2026-11-25T22:59:25.734Z
