Skip to content
CyberWaypoint
Sign inSubscribe
← All briefs
VulnerabilitiesThreats

Critical TeamCity flaw exploited a day after disclosure to hijack build agents

December 6, 2026 · AI-curated · 1 min read

Attackers began trying to exploit CVE-2026-136858, a CVSS 9.1 authentication bypass in JetBrains TeamCity On-Premises, about a day after it was disclosed, watchTowr says. A successful attack lets someone pose as a build agent, grab secrets and tamper with artifacts. Update to 2026.1.7, 2026.2.3 or 2026.3.

Why it matters: A hijacked CI agent can leak deployment credentials and slip malicious code into software you ship.

JetBrains disclosed CVE-2026-136858 on December 2, an authentication bypass in TeamCity On-Premises rated 9.1 on CVSS. At the time the company said it knew of no attacks. That changed quickly: watchTowr told SecurityWeek the bug was reverse engineered and used against its honeypot network roughly one day after disclosure, with attackers trying to guess build agent ID numbers. JetBrains’ own bulletin still says it has not observed active exploitation.

The flaw lets an attacker impersonate a trusted build agent. From there they can receive build jobs, see the credentials passed into them, report false results, or hand back modified artifacts that run attacker code in later builds. Agent IDs usually start at 1, which makes guessing them easy. watchTowr says the same actor previously went after a Palo Alto PAN-OS device in its honeypots.

Fixed releases are 2026.1.7, 2026.2.3 and 2026.3. TeamCity Cloud has already been patched, and a security patch plugin is available for 2021.2 and later that installs without a restart.

What to do

  • Upgrade TeamCity On-Premises now, starting with internet-facing servers and those running builds that handle credentials.
  • If you can’t patch immediately, restrict /app/agents and its subpaths to your legitimate agent IP addresses.
  • Search teamcity-server.log for messages about an existing agent connecting with a different authorization token, and review that agent’s source IPs and builds around those times.
  • If you find signs of takeover, preserve logs, rotate every credential passed to affected builds and treat their artifacts as untrusted until verified.

Sources

This summary was prepared with AI from public reporting. Always check the original sources before acting. Spot an error? Email [email protected].

Free · one email a day · unsubscribe anytime