CVE-2026-25119 Gogs: Authentication Bypass via Unvalidated Reverse Proxy Headers
HighCVSS 7.7
EPSS 0.86%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: yes · technical impact: total
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.
Upgrade path
2 packages: 0 fixed, 1 partially fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| gogs.io/gogs(Go) | < 0.14.3; <= 0.14.2; All versions | 0.14.3 | Partially fixed |
| gogs | = < 0.14.3 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| gogs.io/gogs(Go) | < 0.14.3 | 0.14.3 |
| gogs.io/gogs(Go) | All versions | No fix listed |
| gogs | = < 0.14.3 | No fix listed |
| gogs.io/gogs(Go) | <= 0.14.2 | No fix listed |
References
- https://github.com/gogs/gogs/security/advisories/GHSA-w6j9-vw59-27wv exploit vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/gogs/gogs/pull/8264 patch
- https://github.com/gogs/gogs/commit/0089c4c8e5b8d99eb6e5c8727f8f40d765f1f58a patch
- github.com product
- https://github.com/gogs/gogs/releases/tag/v0.14.3
- github.com