The short version
- The flaw. CVE-2026-136858 has a CVSS score of 9.1 and affects unpatched TeamCity On-Premises releases. With HTTP(S) access and a valid existing agent ID, an unauthenticated attacker can impersonate that agent, intercept its builds and access secrets passed to them.
- Exploitation. WatchTowr reports exploitation attempts against its Attacker Eye honeypots about a day after disclosure, including guesses at existing agent IDs. JetBrains' 2 December statement that it had no evidence of active exploitation predates those observations. Neither source identifies a compromised production customer.
- The fix. JetBrains has patched the flaw in 2026.1.7, 2026.2.3 and 2026.3, and offers a security patch plugin for TeamCity 2021.2 and later that does not require a server restart. TeamCity Cloud instances were updated automatically.
- Mitigation. JetBrains advises restricting requests to /app/agents and its subpaths to the IP addresses legitimate build agents use. WatchTowr recommends patching internet-facing servers first, then those whose builds handle credentials.
Timeline
| Date | Event |
|---|---|
| 24 Nov | Researcher Jiawei Guo responsibly discloses the flaw to JetBrains. |
| 2 Dec | JetBrains discloses CVE-2026-136858, publishes fixed releases and a patch plugin, shares indicators of compromise and says it is not aware of exploitation in the wild. |
| 3 Dec | The disclosure is reported publicly, with patched TeamCity releases and a patch plugin available. |
| 3 Dec | WatchTowr says the flaw was reverse engineered and exploited against its honeypot network about a day after disclosure. |
What happened
JetBrains disclosed CVE-2026-136858 on 2 December. The flaw carries a CVSS score of 9.1 and affects every on-premises version of TeamCity, its continuous integration and continuous delivery (CI/CD) server. An attacker who can reach the server over HTTP(S) needs no account and no credentials to impersonate an existing authorised build agent, JetBrains said.
An impersonating agent can displace the legitimate one and take over its builds. JetBrains said this exposes credentials and other secrets passed to the agent, and lets an attacker falsify build results or publish tampered artefacts. Downstream builds that consume those artefacts could then run attacker-supplied code.
WatchTowr says it saw the flaw reverse engineered and exploited against its Attacker Eye honeypot network about a day after disclosure. Attackers tried to guess the ID numbers of established build agents, a prerequisite for the attack; Jake Knott, the firm's head of threat intelligence, said commonly numbered agents make exploitation easy. WatchTowr said the same attacker had earlier exploited PHP2Shell against a Palo Alto PAN-OS device in its honeypot.
Who is affected and what to do
Unpatched TeamCity On-Premises releases are affected. JetBrains has fixed the flaw in 2026.1.7, 2026.2.3 and 2026.3, and offers a security patch plugin for TeamCity 2021.2 and later that does not require a server restart. TeamCity Cloud instances were updated automatically, and JetBrains says hosted customers need take no action.
JetBrains also advises restricting requests to /app/agents and its subpaths to the IP addresses legitimate build agents use, including the outbound addresses of cloud agents and any NAT gateways they connect through. It published indicators of compromise on 2 December, when it said it was not aware of exploitation in the wild.
WatchTowr recommends patching as soon as possible, starting with servers reachable from the web and then those whose builds handle credentials.
Earlier TeamCity attacks
The disclosure comes nearly four months after another critical TeamCity flaw, CVE-2026-63077, with a CVSS score of 9.8, was used in real attacks, according to the US Cybersecurity and Infrastructure Security Agency (CISA).
Analysis
The vulnerable trust boundary is the build worker's identity. An attacker must reach the server and identify an existing authorised agent, but needs no TeamCity user account. Acceptance as that worker can expose assigned builds, their secrets and their outputs. Guessing agent IDs is therefore an exploitation step, not evidence that an actual production build or secret was obtained.
Patching closes the disclosed authentication bypass, but does not establish that earlier builds were trustworthy. If exploitation is suspected, the relevant scope is the affected agent's assigned builds and the artefacts they produced. JetBrains describes both secret exposure and tampered outputs as possible consequences: credential review and artefact verification address different parts of that risk.
WatchTowr's later honeypot observations change the response context: exploitation attempts are now reported, while JetBrains' no-known-exploitation statement describes the earlier disclosure date. They do not establish production victims. Restrict agent endpoints to expected worker addresses, including cloud egress and NAT, alongside patching; then assess suspicious agent connections against assigned builds and published artefacts rather than equating a probe with a successful takeover.
What is not known yet
- Who carried out the exploitation WatchTowr observed, and whether one actor or several are involved.
- Whether any organisation outside a honeypot has been compromised, and how many.
- Whether credentials or secrets were taken from real build agents rather than decoy ones.
- Whether the attempts to guess build agent ID numbers succeeded against production servers.
- Whether the indicators of compromise JetBrains published have matched activity in customer environments.
What to do
If you run TeamCity On-Premises
- Update to 2026.1.7, 2026.2.3 or 2026.3, or apply JetBrains' security patch plugin if you cannot restart the server.
- Restrict requests to /app/agents and its subpaths at the reverse proxy to the IP addresses your legitimate build agents use, including cloud agent outbound addresses and NAT gateways.
- Check your servers against the indicators of compromise JetBrains published on 2 December.
- Patch internet-facing servers first, then those whose builds handle credentials.
If exploitation of builds handling secrets or downstream artefacts is suspected
- Rotate credentials and secrets passed to potentially affected builds.
- Review recent build artefacts before downstream builds consume them.
- Look for unexpected or duplicate agent connections in build logs.
For everyone else
- Treat internet-reachable CI/CD servers as high-value targets and keep a patching route that does not need a maintenance window, since this flaw was attacked within a day of disclosure.
Update log
- Updated analysis for reported honeypot attempts, distinguished probes from production compromise and clarified the agent-ID prerequisite and remediation scope.
- Added WatchTowr's report that CVE-2026-136858 was exploited in the wild about a day after disclosure.
- Clarified fixed releases and hosted-service status; added analysis of agent impersonation, build-secret exposure and artefact trust.
- First published.
Sources
New incident reports by email
One email a week with the reports published since the last one.
We email you about this topic only; unsubscribe any time. See our Privacy Policy.