# CVE-2026-50192: Kerberos Hub private key (X-Kerberos-Hub-PrivateKey) leaked to cross-host redirect target due to redirect-following HTTP client without CheckRedirect

- Severity: Medium 6.9 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N`
- 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.42%, higher than 28% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-07-02T17:33:36.000Z
- Modified: 2026-10-18T20:10:00.110Z
- Also known as: GHSA-h5gx-45rj-2h5j, GO-2026-5890
- Weaknesses: CWE-200, CWE-522
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

Kerberos Agent is an open source video (surveillance) management agent. Prior to version 3.6.26, the Kerberos Hub upload path sends the agent's Hub credentials in the custom `X-Kerberos-Hub-PrivateKey` and `X-Kerberos-Hub-PublicKey` request headers to the operator-configured Hub URL (`config.HubURI`). The HTTP client used (`&http.Client{}` in `UploadKerberosHub`) is constructed without a `CheckRedirect` policy, so it follows HTTP redirects automatically. Go's `net/http` strips only sensitive headers (`Authorization`, `Cookie`, `WWW-Authenticate`) on a cross-host redirect; it does not strip custom headers such as `X-Kerberos-Hub-PrivateKey`. As a result, if the configured `HubURI` returns a cross-host 30x redirect, the Hub private key is forwarded verbatim to the redirect target, disclosing the credential to an unintended third party. Version 3.6.26 fixes the issue by implementing the `CheckRedirect` strip plus a cross-host regression test is provided to the maintainer through the advisory's private temporary fork.

(As written by CVE List.)

## Affected

- kerberos-io agent: < 3.6.26
- github.com/kerberos-io/agent/machinery (Go): before 0.0.0-20260528173546-51f1a52e170f

## Every score

- GitHub_M: CVSS:4.0 6.9 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N`

## References

- <https://github.com/kerberos-io/agent/security/advisories/GHSA-h5gx-45rj-2h5j> (exploit, advisory, web)
- <https://github.com/kerberos-io/agent/commit/51f1a52e170f21c1264c6de1dc781d5b5e2a5d09> (web)
- <https://github.com/kerberos-io/agent> (package)

## Sources

- CVE List: [CVE-2026-50192](https://www.cve.org/CVERecord?id=CVE-2026-50192), CVE Terms of Use, modified 2026-08-21
- GitHub Advisory Database: [GHSA-h5gx-45rj-2h5j](https://github.com/advisories/GHSA-h5gx-45rj-2h5j), CC-BY-4.0, modified 2026-07-07
- Go Vulnerability Database: [GO-2026-5890](https://pkg.go.dev/vuln/GO-2026-5890), CC-BY-4.0, modified 2026-07-07
- NVD: [CVE-2026-50192](https://nvd.nist.gov/vuln/detail/CVE-2026-50192), Public domain, modified 2026-10-18

---

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