CVE-2026-136858
TeamCity On-Premises flaw lets an attacker with no login impersonate build agents and take their build secrets; watchTowr reports exploitation attempts
Reachable if a TeamCity On-Premises server runs a version before 2026.1.7, 2026.2.3 or 2026.3 without JetBrains' security patch plugin, an attacker can reach it over HTTP(S), and /app/agents isn't limited to your build agents' addresses. No TeamCity account is needed, per JetBrains
Update every TeamCity On-Premises server to 2026.1.7, 2026.2.3 or 2026.3. If you can't update right away, install JetBrains' security patch plugin, which works on 2021.2 and later and needs no restart. JetBrains says every On-Premises version is affected and TeamCity Cloud customers don't need to do anything.
JetBrains disclosed CVE-2026-136858 on December 2 and rates it 9.1 Critical. It says an attacker with no TeamCity account who can reach the server over HTTP(S) can impersonate an existing authorized build agent. That lets them intercept the builds sent to that agent, read the credentials and secrets passed to it, and falsify build results or publish tampered artifacts. JetBrains warns that downstream builds that use those artifacts could run the attacker's code.
JetBrains says it was not aware of active exploitation when it published. watchTowr's December 4 page lists the flaw as exploited in the wild and says it observed exploitation attempts against Attacker Eye, its honeypot network, on December 3. watchTowr has not published counts or said whether any attempt against a real server succeeded. The flaw is not on CISA's Known Exploited Vulnerabilities catalog, and we found no public exploit code. CISA does list four earlier TeamCity flaws, all marked as used in ransomware campaigns.
Is it reachable for you?
What it is. An authorization flaw in how the TeamCity server registers build agents. An attacker can take the place of a legitimate agent without a TeamCity account, per JetBrains. watchTowr says the attacker also has to guess a valid build agent ID.
Who is most exposed. TeamCity servers that agents or users reach from the internet, and any server whose builds handle deployment credentials or publish artifacts other systems pull in.
Checks, in three tiers. The first two decide exposure. The third decides priority. Run these only on systems your organization owns.
- Is the server fixed? Anything before 2026.1.7, 2026.2.3 or 2026.3 is affected unless the security patch plugin is installed. On 2024.03 and later, check Administration, Updates for pending security patches.
- Can untrusted networks reach /app/agents? JetBrains says the flaw affects servers reachable over HTTP(S). Test from the internet and from user networks, and check whether a reverse proxy limits /app/agents to known agent addresses.
- What do the builds touch? List the credentials passed to builds and where their artifacts go. Servers that hold deployment secrets or feed release pipelines go first.
Compensating controls (test them, don't assume them)
JetBrains' security patch plugin is the fastest fix if you can't upgrade, and JetBrains gives one extra control.
- Delivery. Configure your reverse proxy or another path-aware control to allow requests to /app/agents and its subpaths only from the IP addresses your build agents use, per JetBrains. Include the outbound addresses of cloud agents and any NAT gateways they connect through, or those agents will lose contact with the server.
- Exposure. Keep the TeamCity server on trusted networks and put outside users and agents behind a VPN or other network access controls, per JetBrains' best practices.
The patch is the fix. Update to 2026.1.7, 2026.2.3 or 2026.3, or install the security patch plugin.
What to look for in logs
JetBrains gives one check for a takeover attempt.
- Server log. Search teamcity-server.log for entries containing
of the existing agent, but different authorization token. JetBrains says an entry with a non-empty token may mean someone tried to take over an existing agent. Entries with an empty token are expected and can be ignored. - Follow-up. For each hit, use the timestamp to review that agent's connection history and the builds assigned to it. Check that the hostname and source IP match the real agent, and compare against build logs, results and published artifacts to see whether the attempt worked, per JetBrains.
If you suspect exploitation, JetBrains says to preserve logs and build results, update or patch the server, rotate any credentials passed to the affected builds, and treat those builds' artifacts as untrusted until you verify them and trace where they were deployed.
FAQ
Am I exposed to CVE-2026-136858?
You are if a TeamCity On-Premises server runs a version before 2026.1.7, 2026.2.3 or 2026.3 without JetBrains' security patch plugin, and an attacker can reach it over HTTP(S). No TeamCity account is needed, per JetBrains.
Is it being exploited?
Not confirmed against real servers. watchTowr says it observed exploitation attempts against its Attacker Eye honeypot network on December 3 and lists the flaw as exploited in the wild. It has not published counts or said whether any attempt succeeded. JetBrains said on December 2 that it was not aware of active exploitation. CVE-2026-136858 is not on CISA KEV (catalog 2026.12.03). We found no public exploit code.
What can an attacker do with it?
Pose as one of your existing build agents, receive the builds meant for it and the secrets passed to them, and send back falsified results or tampered artifacts, per JetBrains. Builds that consume those artifacts could then run the attacker's code.
Can I patch without upgrading?
Yes. JetBrains' security patch plugin works on TeamCity 2021.2 and later, fixes only this flaw, and installs without a restart. On 2026.2.2 and later with automatic security patch installation turned on, the server should install it by itself. On 2024.03 through 2026.2.1, apply it from Administration, Updates.
How do I check whether someone tried it?
Search teamcity-server.log for "of the existing agent, but different authorization token" and look for entries where the token isn't empty. JetBrains' advisory explains how to follow up on each hit.
Is TeamCity Cloud affected?
No action is needed. JetBrains says it fixed TeamCity Cloud and found no evidence that any Cloud environment was exploited.
How is this different from earlier TeamCity flaws on KEV?
It's a separate flaw with its own fix. CISA's KEV catalog lists CVE-2026-63077 (added August 5, 2026), CVE-2024-27199, CVE-2024-27198 and CVE-2023-42793, all marked as known to be used in ransomware campaigns. A server patched for those still needs this fix.
- Vendor
- JetBrains
- Product
- JetBrains TeamCity On-Premises, build agent registration
- Affected versions
- All TeamCity On-Premises versions before 2026.1.7, 2026.2.3 and 2026.3, per JetBrains. JetBrains fixed TeamCity Cloud itself, so Cloud customers need no action
- Vulnerable component
- Build agent registration on the TeamCity server (/app/agents and its subpaths)
- CVSS
- 9.1 Critical (JetBrains as CNA, CVSS 3.1). NVD has not added its own score
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N (JetBrains)
- CWE
- CWE-639 Authorization bypass through user-controlled key (JetBrains)
- Exploitation
- Not observed
- CISA KEV added
- Patch
- TeamCity 2026.1.7, 2026.2.3 or 2026.3, released December 2, 2026. JetBrains also released a security patch plugin for TeamCity 2021.2 and later that fixes only this flaw and installs without a server restart
Updates
Dec 4, 2026. First published. JetBrains disclosed CVE-2026-136858 on December 2 and released 2026.1.7, 2026.2.3, 2026.3 and a security patch plugin. watchTowr reports exploitation attempts against its honeypot network on December 3, with no counts. Not on CISA KEV (catalog 2026.12.03).
Sources
- JetBrains, Critical Security Issue Affecting TeamCity On-Premises (CVE-2026-136858) (December 2, 2026; impact, fixed versions, security patch plugin, /app/agents control, exploitation check; read in a browser)
- watchTowr, JetBrains TeamCity Authentication Bypass (CVE-2026-136858) (updated December 4, 2026; exploitation attempts observed via Attacker Eye on December 3; agent ID requirement)
- CVE record CVE-2026-136858 (JetBrains CNA, published December 2, 2026; 9.1, CWE-639; CISA ADP exploitation none)
- NIST NVD: CVE-2026-136858 (Awaiting Analysis)
- CISA Known Exploited Vulnerabilities catalog (not listed; checked catalog version 2026.12.03 on Dec 4; earlier TeamCity entries CVE-2026-63077, CVE-2024-27199, CVE-2024-27198, CVE-2023-42793)
We publish an advisory when a vulnerability is Critical or on CISA KEV, has one identifiable component to check, and has a public proof of concept or reported exploitation. Advisories are updated as exploitation status changes.