Keyrook

NewsPatch Notes

Critical flaw

TeamCity flaw lets attackers hijack build agents without logging in: update now

JetBrains disclosed CVE-2026-136858 on 3 December 2026, a critical TeamCity flaw rated 9.1 that lets an attacker with no login pose as a build agent. Update to 2026.1.7, 2026.2.3 or 2026.3.

The TeamCity logo by JetBrains
Image: JetBrains

Affects

  • JetBrains TeamCity

Tracked as

  • CVE-2026-136858JetBrains TeamCity · CVSS 9.1

JetBrains disclosed a critical flaw in TeamCity On-Premises on 3 December 2026 that lets an attacker take over an authorised build agent without logging in. The flaw, CVE-2026-136858, is rated 9.1, and it affects all TeamCity On-Premises versions. The fix is already out: update to 2026.1.7, 2026.2.3 or 2026.3, or install the security patch plugin JetBrains released alongside the advisory.

The weakness sits in agent registration. An unauthenticated attacker who can reach a TeamCity server over HTTP or HTTPS can impersonate an existing authorised build agent. A successful attack can displace the real agent and intercept the builds assigned to it.

What a hijacked agent can do

Build agents are trusted workers: they receive build jobs, run them, and handle the secrets those jobs need. Posing as one puts an attacker inside that trust. JetBrains says an attacker could intercept builds, access build secrets, and tamper with build results and artifacts. The damage does not stop at the build server either — downstream builds that consume those artifacts could execute attacker-supplied code.

There is no evidence of active exploitation at the time JetBrains published the advisory. Security researcher Jiawei Guo reported the flaw privately on 24 November 2026. The disclosure comes nearly four months after another critical TeamCity flaw, CVE-2026-63077, rated 9.8, was weaponised in real-world attacks — a reminder that TeamCity servers are watched closely by attackers.

What to do now

Fix it today

  1. Update the server

    Install 2026.1.7, 2026.2.3 or 2026.3, or use TeamCity’s automatic update. TeamCity Cloud customers need no action — JetBrains already applied the fix there.

  2. Or install the patch plugin

    If an update is not possible yet, install the security patch plugin, available for TeamCity 2021.2 and later. It installs without restarting the server. On 2026.2.2 and later, turn on automatic security patch installation.

  3. Check the server log for takeover attempts

    Search teamcity-server.log for entries containing ‘of the existing agent, but different authorization token’. A non-empty token may indicate a takeover attempt; entries with an empty token are expected and can be ignored.

  4. Lock down the agent endpoint

    Configure the reverse proxy to allow requests to /app/agents and its subpaths only from IP addresses where legitimate build agents originate, including cloud agent addresses and NAT gateways.

TeamCity servers also deserve the usual hardening: limit access to trusted networks, use a VPN or other network controls for anything outside them, and run the server and build agents on separate hosts. The flaw needs no account and no login — only a reachable server — so an internet-facing TeamCity that is still unpatched is the first thing to fix.

Sources

  1. Critical Security Issue Affecting TeamCity On-Premises (CVE-2026-136858): Update to 2026.1.7, 2026.2.3, or 2026.3 NowJetBrains
  2. Critical JetBrains TeamCity Flaw Lets Attackers Hijack Build Agents Without AuthenticationThe Hacker News

More news

All the news
  1. Patch Notes3 min

    Two Veeam backup console flaws are now being exploited: update to 9.3 now

    Canada's Cyber Centre said on 2 December 2026 that attackers are now exploiting two critical Veeam Service Provider Console flaws, CVE-2026-58073 and CVE-2026-58072. Upgrade to 9.3.0.35057 and check the logs.

    • Veeam Service Provider Console
  2. Patch Notes2 min

    LimeSurvey: expired password reset keys still allow account takeover — no patch yet

    Two LimeSurvey flaws disclosed on 2 December: an expired password reset key can still be used to take over an account without signing in, and a survey participant data leak. Only the second has a patch.

    • LimeSurvey
  3. Patch Notes3 min

    Chrome 158 patches 229 flaws, 21 of them critical — restart your browser to get the update

    Google released Chrome 158 on 1 December with 229 fixes, including 21 critical flaws, mostly memory bugs. Update to 158.0.8127.107 or later.

    • Google Chrome