Back to blog
CVEJetBrainssupply chainDevOps

JetBrains TeamCity: a critical auth bypass leading to RCE on your CI/CD server

Published on 2026-07-306 min readCleanIssue

> In short: JetBrains warns of a critical authentication bypass vulnerability in TeamCity On-Premises that could be exploited to achieve remote code execution. TeamCity is a CI/CD server — a compromise gives the attacker access to build pipelines, deployment credentials, source code, and the deployment keys for every environment the server can reach. Fix available.

Why this matters to you

If your engineering team self-hosts TeamCity for CI/CD (many enterprise and regulated environments do, for sovereignty reasons), this is a supply-chain incident waiting to happen. A CI/CD server compromise is the SolarWinds pattern at team scale: the attacker gets your source code, your build artifacts, and your deployment credentials in one move.

This follows the same pattern as the GitLab RCE we covered — self-hosted dev infrastructure with an authentication bypass that leads to code execution. The common thread: these platforms were designed for the intranet and are routinely exposed to the internet.

The flaw and its impact

An authentication bypass lets an unauthenticated attacker reach authenticated functionality on the TeamCity server. From there, the path to RCE depends on the server's configuration, but the CI/CD context makes the impact severe regardless:

  • Source code: every project the server builds is readable.
  • Build secrets: CI/CD variables (cloud credentials, API keys, signing certificates) stored in build configurations.
  • Deployment pipelines: the attacker can modify build scripts to inject malicious code into your deployment artifacts — and that injected code ships to production.
  • Agent access: TeamCity build agents often run with broad network access to internal services.
  • What to do

  • Patch TeamCity On-Premises to the fixed version immediately.
  • Take TeamCity off the public internet. Put it behind a VPN or an authenticating reverse proxy. There is no reason for a CI/CD login page to be internet-reachable.
  • Audit build configurations for unauthorized modifications: new build steps, modified scripts, new environment variables.
  • Rotate all CI/CD secrets: cloud credentials, deployment keys, signing certificates, container registry tokens. Assume anything the server could access has been compromised.
  • Verify build artifact integrity. If the server was exposed during the vulnerability window, builds produced during that period may contain injected code. Compare against known-good artifacts or rebuild from a verified clean state.
  • The CI/CD attack surface pattern

    TeamCity, GitLab, Jenkins, GitHub Actions runners — every major CI/CD platform has had a critical auth bypass or RCE in the past 18 months. The reason is structural: CI/CD servers are high-value targets (they hold every secret in the engineering org) with complex permission models and historical internet exposure. For a SaaS vendor, the operational answer is consistent: self-hosted CI/CD belongs behind a VPN, on a short patch cycle, with its secrets in a dedicated vault — not in build variables.

    Building HR, payroll, or recruiting software? CleanIssue performs security audits for HR SaaS in real-world conditions, no source code access needed. For a first read of your exposure, start with an external review of your application.

    Sources

    Written by CleanIssue
    Reviewed on 2026-07-30

    Related services

    If this topic maps to a real risk in your stack, these are the most relevant CleanIssue audits.

    Need an external review of your HR SaaS?

    Share your product, stack, and client context. We will come back with the right review scope.

    Discuss your audit