CVEReports
CVEReports

Automated vulnerability intelligence platform. Comprehensive reports for high-severity CVEs generated by AI.

Product

  • Home
  • Sitemap
  • RSS Feed

Company

  • About
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CVEReports. All rights reserved.

Made with love by Amit Schendel & Alon Barad



CVE-2023-34223

Peek-a-Boo: Unmasking Secrets in TeamCity Build Chains

Alon Barad
Alon Barad
Software Engineer

Feb 22, 2026·7 min read·44 visits

Executive Summary (TL;DR)

TeamCity failed to mask secrets when they were passed from one build to another as a dependency. If Build B used a password from Build A, it showed up as plain text in the logs. Fixed in version 2023.05.

A logic flaw in JetBrains TeamCity allowed sensitive 'password' type parameters to be written to build logs in plain text when passed between build configurations via dependencies. This vulnerability effectively bypasses the platform's secret masking mechanisms, turning build logs into a treasure trove for attackers with basic view permissions.

The Hook: The CI/CD Confessional

CI/CD pipelines are the modern equivalent of a confessional booth. We whisper our deepest, darkest secrets—AWS keys, database credentials, signing certificates—into them, trusting that the priest (in this case, the build server) will keep them safe. We rely on that comforting row of asterisks (******) in the console output to tell us that our secrets are being handled with the discretion of a Swiss banker.

JetBrains TeamCity is a behemoth in this space. It’s the engine room for thousands of enterprises. One of its core promises is that if you define a parameter as type password, it stays that way. It gets scrubbed from the UI, masked in the logs, and treated like radioactive material. But CVE-2023-34223 proves that even the best secret keepers get chatty when things get complicated.

This isn't a buffer overflow or a complex heap grooming attack. It’s a logic failure in how secrets travel. It turns out that while TeamCity was great at keeping a secret within a single room, it shouted it out loud the moment it had to pass that secret through the hallway to the next room. This vulnerability effectively unmasks the credentials that act as the keys to your entire infrastructure kingdom.

The Flaw: Lost in Translation

To understand this bug, you have to understand TeamCity's dependency model. Complex software delivery isn't just one script; it's a chain. Build A compiles the code, Build B runs the tests, and Build C deploys the artifact. TeamCity handles this via Snapshot Dependencies. A downstream build (Build B) can inherit properties from an upstream build (Build A).

The syntax for this is straightforward: %dep.BuildA.ParameterName%. When TeamCity orchestrates this, it resolves the variable from the upstream build context and injects it into the downstream execution context. The vulnerability, tracked internally as TW-81338, resides in this handover.

The masking subsystem—the code responsible for scanning output streams and replacing sensitive strings with ******—relies on metadata. It needs to know that a specific string is supposed to be a secret. In versions prior to 2023.05, when a password parameter was pulled across a dependency boundary, that metadata was seemingly lost or ignored during the logging phase. The value was resolved to its plain text form before the logger realized it was a 'password' type, resulting in your production database password sitting naked in teamcity-agent.log.

The Code: The Log Leak Logic

While we don't have the raw Java patch diffs, we can reconstruct the failure accurately through the behavior of the build agent's variable resolution logic. In a secure implementation, a parameter defined as password (let's call it secure_param) is wrapped in a SecureString object or equivalent abstraction that overrides toString() to return asterisks.

The Vulnerable Flow:

  1. Upstream Build (Build A): Defines db_password as type password. value: Hunter2!.
  2. Downstream Build (Build B): references it via %dep.BuildA.db_password%.
  3. Resolution: The agent resolves the dependency. Instead of treating the resolved value as a continuation of a secure object, the system effectively treated it as a standard string interpolation.
# Conceptually, the config looks like this:
object: BuildType
    id: DeployConfig
    dependency:
        id: BuildConfig
    parameters:
        # The fatal reference
        deploy_key = %dep.BuildConfig.secure_password%

When the agent spins up the build runner for DeployConfig, it prints the environment variables and parameters for debugging purposes. Because the 'password' attribute was attached to the definition in BuildConfig, the context in DeployConfig treated it as just another string coming from a dependency. The result in the log file:

[Step 1/1] Starting: /opt/deploy_script.sh
[Step 1/1] in directory: /opt/buildagent/work/...
[Step 1/1] Parameter 'deploy_key' = 'Hunter2!'  <-- OOPS.

The Fix (2023.05): The patch involves ensuring that the password property type is transitive. When a dependency parameter is resolved, the system now checks the source definition's type. If the source says password, the destination logger is instructed to add that value to the blacklist of strings to be masked, regardless of where it came from.

The Exploit: Reading the Diary

Exploiting this requires no hacking tools, no Metasploit, and no buffer overflows. It requires a web browser and a pair of eyes. The attack vector is strictly "Insider Threat" or "Compromised User."

The Scenario: Imagine you are a contractor or a junior developer. You have Project Viewer rights. You can't see the 'Administration' tab where the secrets are defined, and you can't edit the build configurations to echo secrets. However, you can view build logs to debug why a build failed.

  1. Reconnaissance: Browse the project list for high-value targets. Look for "Deploy to Prod" or "Database Migration" build configurations.
  2. Identify Dependencies: Look at the "Dependencies" tab. Note the upstream builds that likely hold the credentials (e.g., KeyVault_Fetch).
  3. The Dig: Open a successful build of the downstream configuration. Click "Build Log".
  4. The Loot: deeply nested in the verbose output, often in the "Resolving parameters" or "Agent properties" section, you will find the artifact dependency resolution logic.
[10:42:15] : [Resolving artifact dependencies]
[10:42:15] : ... resolved %dep.AuthService.api_token% to "ey...[FULL JWT OR API KEY]..."

Since the masking failed, the token is right there. You copy it, paste it into your local terminal, and now you have production access. It is the digital equivalent of finding the CEO's password written on a sticky note under their keyboard, except the keyboard is published to the company intranet.

The Impact: Credentials for Everyone

The CVSS score of 4.3 is deceptively low. It assumes that if you are already inside the network (AV:N) and have an account (PR:L), the damage is limited (C:L). I fundamentally disagree with this assessment in a real-world context.

In modern DevOps, the CI/CD server is the Skeleton Key. It has write access to your git repositories, push access to your Docker registries, and deployment access to your Kubernetes clusters and AWS accounts. A single leaked credential here—say, a AWS_SECRET_ACCESS_KEY or a GITHUB_TOKEN with write permissions—allows for immediate lateral movement.

Real-World Consequences:

  • Supply Chain Attack: An attacker uses the leaked git credentials to push malicious code into the repo, which the next build automatically deploys to production.
  • Infrastructure Hijacking: Leaked Terraform or CloudFormation parameters allow the attacker to spin up crypto miners or delete critical infrastructure.
  • Data Exfiltration: Database connection strings leaked in logs allow direct access to customer PII.

While the vulnerability requires authentication, in large organizations, "read access to logs" is often granted to hundreds of developers. Any one of them—or anyone who compromises one of their accounts—can harvest these credentials.

The Fix: Scrubbing the Scene

If you are running any version of TeamCity prior to 2023.05, you are vulnerable. The primary fix is simple: Upgrade. JetBrains has patched the resolution logic to ensure dependency parameters carry their 'password' status with them.

Immediate Remediation Steps:

  1. Patch: Upgrade to TeamCity 2023.05 or later immediately.
  2. Rotate: This is the painful part. You must assume that every secret passed as a dependency in your build chains has been compromised. Rotate your API keys, change your service account passwords, and revoke your SSH keys. If you don't do this, patching the server is useless—the thieves already have the keys.
  3. Purge: Your historical logs are now toxic waste. Even after patching, the old logs on the disk still contain the plain text passwords. You need to write a script to scrub these logs or delete build history older than your patch date.

> [!WARNING] > Do not forget the Agent Logs. The leak happens on the build agent as well as the server. Ensure you purge teamcity-agent.log on all your build nodes, not just the central server UI logs.

Official Patches

JetBrainsTeamCity 2023.05 Release Notes and Security Fixes

Technical Appendix

CVSS Score
4.3/ 10
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
EPSS Probability
0.00%
Top 100% most exploited

Affected Systems

JetBrains TeamCity Server < 2023.05JetBrains TeamCity Build Agents < 2023.05

Affected Versions Detail

Product
Affected Versions
Fixed Version
TeamCity
JetBrains
< 2023.052023.05
AttributeDetail
CWE IDCWE-532
Attack VectorNetwork
CVSS4.3 (Medium)
EPSS Score0.00004
Exploit StatusNone (No Public PoC)
Patch Version2023.05

MITRE ATT&CK Mapping

T1552.001Credentials In Files
Credential Access
CWE-532
Information Exposure Through Log Files

Insertion of Sensitive Information into Log File

References & Sources

  • [1]JetBrains Security Advisory
  • [2]NVD Entry for CVE-2023-34223

Attack Flow Diagram

Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.
Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.

More Reports

•about 6 hours ago•CVE-2026-63304
8.1

CVE-2026-63304: OS Command Injection in WWBN AVideo via listFFmpegProcesses

WWBN AVideo versions through 29.0 contain an OS command injection vulnerability (CWE-78) in the standalone API utility function listFFmpegProcesses(). The function constructs a shell pipeline to monitor active FFmpeg processes by interpolating a user-controlled keyword parameter directly into a single-quoted grep argument without sanitization or shell escaping. An attacker capable of crafting or submitting a valid encrypted codeToExec payload can break out of the single-quoted argument context and execute arbitrary operating system commands with the privileges of the web server user.

Alon Barad
Alon Barad
3 views•9 min read
•about 7 hours ago•CVE-2026-59726
10.0

CVE-2026-59726: Unauthenticated Remote Code Execution in Ruflo MCP Bridge

Ruflo versions prior to 3.16.3 expose the Model Context Protocol (MCP) bridge HTTP endpoints (`POST /mcp` and `POST /mcp/:group`) on all network interfaces (`0.0.0.0:3001`) without authentication. Because the primary JSON-RPC tool dispatcher (`executeTool()`) bypasses existing tool blocklists, an unauthenticated network attacker can invoke the `terminal_execute` tool to achieve arbitrary command execution inside the bridge container. This initial access permits full exfiltration of third-party LLM provider API keys, unauthorized access to the co-located MongoDB instance, and manipulation of the AgentDB learning store.

Alon Barad
Alon Barad
8 views•2 min read
•about 8 hours ago•CVE-2026-59818
6.5

CVE-2026-59818: Improper Certificate Revocation List (CRL) Validation on Split gRPC Listeners in etcd

In etcd versions prior to 3.5.32 and 3.6.13, configuring the server with --listen-client-http-urls decouples HTTP and gRPC traffic onto distinct network listeners. Due to an implementation flaw in how TLS configurations are passed to the gRPC server instance, the Certificate Revocation List (CRL) defined by --client-crl-file is enforced exclusively on the HTTP listener and omitted entirely on the dedicated gRPC listener. This allows an adversary possessing a revoked, CA-signed client certificate to bypass mutual TLS (mTLS) revocation checks and authenticate directly to the gRPC interface.

Amit Schendel
Amit Schendel
6 views•10 min read
•about 9 hours ago•CVE-2026-59831
4.4

CVE-2026-59831: Remote Code Execution via Unvalidated URL Scheme Handling in GitHub CLI

GitHub CLI (gh) versions 2.10.0 through 2.95.0 contain an input validation vulnerability in the `gh codespace jupyter` command path. When connecting to a remote Codespace to launch a JupyterLab session, the CLI retrieves a server URL via a remote procedure call (RPC) and passes it directly to the host operating system's default URL dispatcher without validating the scheme or target host. A compromised or malicious Codespace can return a custom protocol URI, such as `vscode://` or `vscode-insiders://`, allowing an attacker to invoke local desktop application handlers and achieve arbitrary command execution on the developer's workstation.

Alon Barad
Alon Barad
11 views•9 min read
•about 10 hours ago•CVE-2026-59191
6.9

CVE-2026-59191: Path Traversal and Arbitrary File Read in CakePHP TwigView FileLoader

A path traversal vulnerability exists in the cakephp/twig-view plugin for the CakePHP framework prior to versions 1.3.3 and 2.1.2. The Cake\TwigView\Twig\FileLoader::findTemplate() method verifies template existence using PHP's native file_exists() function without ensuring the target path resides within configured application or plugin template directories. When user-controlled input is passed to template inclusion mechanisms, an unauthenticated remote attacker can read arbitrary local files accessible to the PHP runtime.

Alon Barad
Alon Barad
5 views•9 min read
•about 11 hours ago•CVE-2026-64855
8.2

CVE-2026-64855: Cryptographic Signature Verification Bypass in soapbar WS-Security Implementation

CVE-2026-64855 (GHSA-859w-52fx-hcm6) is a cryptographic signature verification and authentication bypass vulnerability in the soapbar Python library prior to version 0.13.0. In vulnerable versions, the verify_envelope_bsp() function derives its trust anchor directly from the incoming SOAP message by extracting an untrusted X.509 certificate embedded inside the wsse:BinarySecurityToken header. Because the function checks only the temporal validity of the extracted certificate without performing Certificate Authority (CA) chain validation or certificate pinning, an unauthenticated network attacker can generate a self-signed certificate, sign an arbitrary SOAP payload, and pass verification.

Amit Schendel
Amit Schendel
9 views•10 min read