# JetBrains TeamCity On-Premises authentication bypass during agent registration (CVE-2026-136858)

Detection pack 1.1.0 (4 Dec 2026). HubSpot Files slot: `teamcity-cve-2026-136858-pack-v1.1.0`.

Official JetBrains advisory (blog post timestamp 2026-12-02T17:32:21+01:00, which is 16:32 GMT / 16:32 Europe/London) describes a CVSS v3.1 9.1 Critical authentication bypass during agent registration in TeamCity On-Premises, assigned CVE-2026-136858. All TeamCity On-Premises versions are affected. TeamCity Cloud has already been patched; Cloud customers need take no action. Rechecked on 4 Dec 2026: the advisory date and updated_time were unchanged, and the exploitation statement was unchanged.

Official JetBrains and CVE.org score: CVSS v3.1 9.1 Critical (`CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`, CWE-639). There is no official CVSS v4.0 score. Only call this issue Critical next to that 9.1 figure.

Fixed releases: upgrade to TeamCity 2026.1.7, 2026.2.3, or 2026.3 (or later). Official CVE.org affected encoding is version 0, lessThan `2026.3, 2026.2.3, 2026.1.7` (versionType semver), defaultStatus unaffected. The official JetBrains releases service lists those three versions, all dated 2026-12-02, with builds 223148 (2026.1.7), 239430 (2026.2.3), and 268273 (2026.3). Rechecked on 4 Dec 2026: this fix guidance is unchanged.

If a full upgrade is not possible, JetBrains has released a security patch plugin for TeamCity 2021.2 and later. The plugin can be installed without restarting the TeamCity server and addresses only CVE-2026-136858. The official manual download is `https://download.jetbrains.com/teamcity/plugins/internal/CVE-2026-136858-patch.zip` (file name `CVE-2026-136858-patch.zip`). The plugin identifier inside the zip is UNVERIFIED. Starting with TeamCity 2024.03, administrators can use Administration | Updates: on 2024.03 through 2026.2.1, review and apply pending patches under Available security updates; on 2026.2.2 and later, Security patches can be set to Install automatically (or review downloads if set to Download and notify). The version checkers inspect the product version only; plugin status must be verified separately when the version is not a listed fixed release.

- Exploitation in the wild reported by SecurityWeek on 4 Dec 2026, starting about one day after the 2 Dec 2026 disclosure (seen against honeypots; attackers guessed build agent IDs). JetBrains said on 2 Dec 2026 it was not aware of active exploitation. Not listed in CISA KEV as of 4 Dec 2026 (catalogue 2026.12.03).
- KEV due dates bind US federal agencies only (BOD 26-04). Patch now regardless. Hunt now.
- The KQL in this pack has NOT been run against a live tenant.

Research is credited to security researchers only.

## What happened

An unauthenticated attacker who can reach a TeamCity On-Premises server over HTTP(S) can impersonate an existing authorized build agent, intercept builds, access build secrets, and tamper with build results and artifacts. No TeamCity user account is required. Downstream builds that consume tampered artifacts could execute attacker-supplied code.

## Exploitation status (4 Dec 2026)

SecurityWeek published "JetBrains TeamCity Vulnerability Exploited One Day After Disclosure" on 4 Dec 2026 at 05:51 ET (10:51 GMT / 10:51 Europe/London). The article states that threat actors started exploiting the vulnerability one day after disclosure, that this was seen against honeypots, and that "the threat actors attempted to guess the ID numbers of established build agents, a prerequisite for exploitation." A quoted statement in the article (names omitted) also says the vulnerability was "exploited in the wild against the honeypot network around a day after disclosure."

The live JetBrains advisory, rechecked on 4 Dec 2026, still dated 2 Dec 2026 with updated_time 2026-12-02T17:32:21+01:00 (16:32 GMT), still says: "At the time of publishing this advisory, we are not aware of any active exploitation of this vulnerability." Treat the SecurityWeek report as reported exploitation, not a vendor confirmation.

CVE-2026-136858 is not listed in CISA KEV catalogue 2026.12.03 (dateReleased 2026-12-03T17:50:29.3601Z, 17:50 GMT / 17:50 Europe/London, 1811 entries), checked 4 Dec 2026. KEV due dates bind US federal agencies only (BOD 26-04). Patch now regardless. Hunt now.

## Official log check (JetBrains)

Search `teamcity-server.log` for entries containing the official stem:

`of the existing agent, but different authorization token`

In the official advisory HTML that stem is followed by a double-quoted placeholder token. A non-empty token may indicate an attempt to take over an existing build agent. Entries with an empty quoted token are expected and can be disregarded for this check. If a non-empty token is found, use its timestamp to review that agent's connection history, hostname, and source IP, and compare with build logs, results, and published artifacts. Do not circulate the token as an IOC.

Official documentation stores server logs as plain text under `<TeamCity Server Home>/logs`. `teamcity-server.log` is documented as the general server log. Default filesystem locations for `<TeamCity Server Home>` are UNVERIFIED. The pack checkers accept an operator-supplied `--log` path whose file name is `teamcity-server.log`, report only counts, and redact any matched token as `(redacted)`.

## Official additional mitigation

Configure a reverse proxy or other path-aware access control to allow requests to `/app/agents` and its subpaths only from IP addresses where legitimate build agents are expected to originate, including cloud-agent egress and NAT gateways. Limit server access to trusted networks; if remote users or agents must connect, use a VPN or other network access controls. Keep the server and build agents on separate hosts.

## Same-release notes (not additional 9.0+ TeamCity issues)

Official release notes for 2026.1.7, 2026.2.3, and 2026.3 also list a task to address CVE-2026-114938 in TeamCity Java runtimes, plus a count of security problems fixed (eight, 16, and 93 respectively) and a note that security bulletins are typically published a few days after the release date. The JetBrains issues-fixed page, as fetched on 2 Dec 2026, lists CVE-2026-136858 as the TeamCity product CVE resolved in 2026.3, 2026.2.3, and 2026.1.7. Do not present CVE-2026-114938 as a TeamCity issue with an official 9.0 or higher score in this pack; it is named only as a Java-runtime task in these notes.

## NVD and KEV

NVD vulnStatus is Awaiting Analysis as of the 4 Dec 2026 recheck. NVD published 2026-12-02T22:18:30.427 (22:18 GMT / 22:18 Europe/London) and lastModified 2026-12-03T05:19:08.990 (05:19 GMT / 05:19 Europe/London). CVE.org published 2026-12-02T21:18:46.066Z (21:18 GMT / 21:18 Europe/London). CVE.org dateUpdated is 2026-12-03T04:57:00.099Z; that update is CISA ADP SSVC enrichment (Exploitation option still none, timestamp 2026-12-02). The CNA record dateUpdated remains 2026-12-02T21:18:46.066Z. CNA is JetBrains (assignerShortName JetBrains). NVD lists the official JetBrains CVSS v3.1 9.1 vector as type Secondary (source cve@jetbrains.com). The numeric score and vector match the official CVE.org / JetBrains figure; do not treat the Secondary label as a different score. Do not treat the ADP none option as a contradiction of the SecurityWeek report; it predates that article.

Live CISA KEV catalogue 2026.12.03, dateReleased 2026-12-03T17:50:29.3601Z (17:50 UTC / 17:50 GMT / 17:50 Europe/London), 1811 entries, checked 4 Dec 2026. CVE-2026-136858 is not listed.

## Version format and checker

Official version strings include both older `YYYY.MM` / `YYYY.MM.P` forms (for example 2024.03, 2024.03.3, 2025.07, 2025.11) and `YYYY.M` / `YYYY.M.P` forms (for example 2021.2, 2026.1.6, 2026.1.7, 2026.2.3, 2026.3). The checkers treat 2026.3 and 2026.3.0 as the same fixed release. Verdicts: 2026.1.7 or later on the 2026.1 train, 2026.2.3 or later on the 2026.2 train, and 2026.3 or later are FIXED. Earlier versions, including 2026.1, 2026.2, 2025.11, 2024.03, and 2021.2, are AFFECTED on version alone. The official plugin may still remediate this CVE on 2021.2 or later; confirm plugin status separately. Unparseable or IPv4-like values are REVIEW.

### Checker usage

```
scripts/check-teamcity-cve-2026-136858.sh --version 2026.1.6
scripts/Check-TeamCityCve2026136858.ps1 --version 2026.3
scripts/check-teamcity-cve-2026-136858.sh --version-file version.txt
scripts/check-teamcity-cve-2026-136858.sh --csv inventory.csv
scripts/check-teamcity-cve-2026-136858.sh --log /path/to/teamcity-server.log
```

CSV header must be `host,version`. The worst row wins (AFFECTED, then REVIEW, then FIXED). `--log` may be used alone or with a version input. The log file name must be `teamcity-server.log`. Tokens are never printed.

| Exit | Meaning |
| --- | --- |
| 0 | FIXED (or log-only with no non-empty token) |
| 2 | AFFECTED (or log-only with a non-empty token) |
| 3 | REVIEW |
| 5 | usage or read error |

## Hunting

`kql/teamcity-cve-2026-136858-hunting.kql` and `sigma/` are labelled OUR PATTERN. The official JetBrains log string and the `/app/agents` path are called out as official. Q12 and the 4 Dec 2026 Sigma rule review bursts of `/app/agents` requests from one source with many distinct URIs, because SecurityWeek reported that attackers guessed build agent ID numbers as a prerequisite. Exact URI layout, how agent identifiers appear in web logs, and the request-count thresholds in Q12 are UNVERIFIED. Replace host labels with your TeamCity On-Premises hosts. Hits are not proof of exploitation. The KQL in this pack has NOT been run against a live tenant. Patch now. Hunt now.

## Official sources

- https://blog.jetbrains.com/teamcity/2026/12/cve-2026-136858/
- https://www.jetbrains.com/privacy-security/issues-fixed/
- https://www.cve.org/CVERecord?id=CVE-2026-136858
- https://nvd.nist.gov/vuln/detail/CVE-2026-136858
- https://download.jetbrains.com/teamcity/plugins/internal/CVE-2026-136858-patch.zip
- https://www.jetbrains.com/help/teamcity/teamcity-server-logs.html
- https://www.jetbrains.com/help/teamcity/2026.3/teamcity-2026-3-release-notes.html
- https://www.jetbrains.com/help/teamcity/2026.2/teamcity-2026-2-3-release-notes.html
- https://www.jetbrains.com/help/teamcity/2026.1/teamcity-2026-1-7-release-notes.html
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog
- https://www.cisa.gov/news-events/directives/bod-26-04-implementation-guidance-prioritizing-security-updates-based-risk
- https://www.securityweek.com/jetbrains-teamcity-vulnerability-exploited-one-day-after-disclosure/

## Manual checks (no payloads)

1. Inventory TeamCity On-Premises servers and record the product version. Patch now. Hunt now.
2. Upgrade to 2026.1.7, 2026.2.3, or 2026.3, or install the official security patch plugin on 2021.2 or later if a full upgrade cannot be done immediately.
3. On 2024.03 through 2026.2.1, review Available security updates. On 2026.2.2 and later, consider Install automatically for security patches.
4. Limit reachability of the server, and restrict `/app/agents` to expected agent addresses.
5. Search `teamcity-server.log` for the official stem and review only non-empty tokens. Preserve logs and build results if a non-empty token is found, rotate credentials passed to potentially affected builds, and treat those artifacts as untrusted until verified.
6. Review `/app/agents` request bursts from one source with many distinct URIs (OUR PATTERN; URI layout and thresholds are UNVERIFIED).
7. Keep the server and build agents on separate hosts.

## Unverified

- Default filesystem path for `<TeamCity Server Home>`
- Registry keys
- Plugin identifier inside `CVE-2026-136858-patch.zip`
- Rotated log file names other than `teamcity-server.log`
- Exact DeviceTvmSoftwareInventory SoftwareName and SoftwareVendor strings
- TeamCity server and agent process names
- Service ports
- Sentinel or syslog field layout for `teamcity-server.log` lines
- Exact remaining URI layout under `/app/agents`
- How build agent identifiers appear in web, WAF or proxy logs
- Request-count and distinct-URI thresholds used in Q12
- Whether every security problem counted in the 2 Dec 2026 release notes already has a public TeamCity CVE row
- Whether JetBrains has observed exploitation on On-Premises servers after the 2 Dec 2026 advisory (the live advisory statement is unchanged)
- Whether a given host already blocks `/app/agents` from untrusted addresses

## Differences from the original flag

- The official advisory HTML uses the stem of the existing agent, but different authorization token, then a double-quoted placeholder. The flag rendered that as a quoted space. This pack follows the official HTML string and treats the quoted value as a placeholder.
- Official plugin file name and download URL (`CVE-2026-136858-patch.zip`) are stated on the advisory; the plugin identifier inside the zip is not.
- CVE.org lists only the issues-fixed page as a reference, not the blog advisory. Both are official JetBrains sources. Official CVSS is v3.1 9.1 only (no v4.0).
- NVD labels the official JetBrains 9.1 vector as Secondary. The score matches official CVE.org; there is no second numeric score.
- Official release notes for the three fixed builds also mention CVE-2026-114938 in TeamCity Java runtimes and a count of other security problems, with bulletins typically a few days later. Issues-fixed currently lists CVE-2026-136858 as the TeamCity product CVE resolved in those three versions.
- Version format includes both `YYYY.MM` (2024.03, 2025.11) and `YYYY.M.P` (2026.1.7, 2026.3). The flag listed the fixed trains correctly.
- NVD vulnStatus is still Awaiting Analysis on 4 Dec 2026. NVD lastModified moved to 2026-12-03T05:19:08.990 and CVE.org dateUpdated moved to 2026-12-03T04:57:00.099Z because of CISA ADP SSVC enrichment. The official score is unchanged. Publish times still match the flag (21:18 GMT on CVE.org, 22:18 GMT on NVD).
- Pack 1.0.0 said JetBrains had reported no exploitation as of 2 Dec 2026, and used KEV catalogue 2026.11.30 (1810 entries). Pack 1.1.0 replaces that with the SecurityWeek 4 Dec 2026 report and KEV catalogue 2026.12.03 (1811 entries). The JetBrains advisory statement itself is unchanged.
- The original flag did not include the 4 Dec 2026 SecurityWeek report, the article time (05:51 ET / 10:51 GMT), or a hunt for `/app/agents` request bursts with many distinct URIs.

## Notes for the web page

For the live page https://www.cybaverse.co.uk/threats/jetbrains-teamcity-agent-registration-bypass-cve-2026-136858 (updated 4 Dec 2026 with reported exploitation; pack slot still v1.0.0 when re-read on 4 Dec 2026). Versions, the 9.1 Critical score, BOD 26-04, credits and the SecurityWeek summary are largely accurate. These are the changes.

1. **Pack slot.** Replace pack v1.0.0 (51 files, 11 KQL hunts, 6 Sigma rules) with pack v1.1.0 (`teamcity-cve-2026-136858-pack-v1.1.0`). The new pack has 12 KQL hunts and 7 Sigma rules, including an OUR PATTERN review of `/app/agents` bursts from one source with many distinct URIs.
2. **Official log placeholder.** The Reactive section still shows a quoted space after the official stem. Use the official advisory HTML string (the stem of the existing agent, but different authorization token, then a double-quoted placeholder) and treat that value as a placeholder. Do not publish tokens.
3. **JetBrains wording.** The page shortens this to a line that JetBrains said on 2 December 2026 it was not aware of exploitation. Prefer the unchanged official sentence, still dated 2 Dec 2026 (updated_time 16:32 GMT): "At the time of publishing this advisory, we are not aware of any active exploitation of this vulnerability." Say this is reported exploitation, not vendor-confirmed.
4. **SecurityWeek time.** Add that the article is dated 4 Dec 2026, 05:51 ET (10:51 GMT / 10:51 Europe/London), and that it uses "one day after disclosure" and "around a day after disclosure."
5. **KEV metadata.** Catalogue 2026.12.03 is already stated. Add dateReleased 2026-12-03T17:50:29.3601Z (17:50 GMT / 17:50 Europe/London) and 1811 entries, checked 4 Dec 2026. Link the KEV catalogue and BOD 26-04 in Sources if they are missing.
6. **NVD and CVE.org on 3 Dec.** NVD status is still Awaiting Analysis. NVD lastModified is 2026-12-03T05:19:08.990 and CVE.org dateUpdated is 2026-12-03T04:57:00.099Z (CISA ADP). The official 9.1 score is unchanged. The ADP SSVC Exploitation option is still none and predates the SecurityWeek article; do not use it to soften the reported-exploitation wording.
7. **New hunt.** When the pack is attached, mention Q12 and the new Sigma rule: review bursts of official `/app/agents` requests from one source with many distinct URIs. Label them OUR PATTERN. Exact URI layout, how agent identifiers appear in logs, and the thresholds are UNVERIFIED. The KQL has not been run against a live tenant.
8. **Priority.** Raise the page language to patch now and hunt now, including on already reachable or still-unpatched servers.
9. **Credits.** Keep "security researchers" only. Name no reporter, firm, team or programme. Name no honeypot operator. Do not link any non-approved write-up.
10. **Downloads.** Offer the KQL inside the zip or as a .txt file if HubSpot blocks a standalone `.kql` upload.
11. **Fix guidance.** Leave 2026.1.7, 2026.2.3, or 2026.3, or the official plugin for 2021.2 and later, and the `/app/agents` restriction, unchanged unless JetBrains changes them.
