JetBrains TeamCity flaw exploited in the wild to steal dev credentials

Source: CSO Online

Author:

URL: https://www.csoonline.com/article/4256998/jetbrains-teamcity-flaw-exploited-in-the-wild-to-steal-dev-credentials.html

ONE SENTENCE SUMMARY:

Attackers exploit TeamCity CVE-2026-136858 to impersonate build agents, steal secrets, tamper builds, and outpace enterprise patching defenses.

MAIN POINTS:

  1. CVE-2026-136858 enables unauthenticated agent impersonation over HTTP/HTTPS access.
  2. Exploitation began within a day of public disclosure and patch release.
  3. Attackers can intercept credentials, tokens, and secrets sent to build agents.
  4. Intruders may falsify build results and publish malicious artifacts for later execution.
  5. watchTowr honeypots observed in-the-wild attacks shortly after fixes shipped.
  6. Current activity involves guessing sequential IDs of long-running build agents.
  7. All on-premises TeamCity versions are impacted according to JetBrains’ advisory.
  8. Fixed releases include 2026.1.7, 2026.2.3, and 2026.3.
  9. A patch plugin exists for 2021.2+ servers unable to upgrade immediately.
  10. TeamCity Cloud was remediated server-side, unlike self-hosted installations.

TAKEAWAYS:

  1. Investigate teamcity-server.log entries mentioning agent mismatch with non-empty tokens.
  2. Correlate suspicious timestamps to agent connections, builds executed, and artifacts produced.
  3. Confirm expected hostname and source IP address for each build agent connection.
  4. Restrict /app/agents/ access to known agent IPs to reduce exposure.
  5. Rotate potentially exposed credentials and treat affected build artifacts as untrusted.