Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2025-46432 Overview
CVE-2025-46432 affects JetBrains TeamCity versions prior to 2025.03.1. The vulnerability allows base64-encoded credentials to be exposed in build logs. An authenticated user with access to build logs can retrieve sensitive data that should remain protected within the continuous integration pipeline.
The issue falls under [CWE-532] Insertion of Sensitive Information into Log File. TeamCity failed to properly mask base64-encoded secrets before writing build output to log files. This exposes credentials used in build steps, deployment scripts, and integration tasks.
Critical Impact
Base64-encoded credentials written to TeamCity build logs can be read by users with build log access, enabling credential theft and potential lateral movement across CI/CD infrastructure.
Affected Products
- JetBrains TeamCity versions prior to 2025.03.1
- TeamCity On-Premises installations exposing build logs to authenticated users
- TeamCity build configurations that pass base64-encoded secrets as parameters
Discovery Timeline
- 2025-04-25 - CVE-2025-46432 published to the National Vulnerability Database
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2025-46432
Vulnerability Analysis
TeamCity provides credential masking in build logs to prevent secrets from leaking into log output. The masking logic compares logged strings against configured secret values and replaces matches with placeholder text. This masking failed to account for base64-encoded representations of those same secrets.
When a build step encoded a credential with base64 before transmitting it, for example to construct an HTTP Basic authentication header, the encoded form bypassed the masking filter. The resulting log entries contained recoverable credentials that any authenticated user with project view permissions could decode.
The vulnerability requires low privileges and no user interaction. It impacts confidentiality but does not alter data integrity or system availability.
Root Cause
The root cause is incomplete sanitization in TeamCity's log-processing pipeline. The masking subsystem evaluated raw secret values but did not generate matching transforms such as base64, URL encoding, or hex encoding. Any encoding operation performed inside a build step produced output that the masker did not recognize as sensitive.
Attack Vector
An attacker with authenticated access to a TeamCity instance and permissions to view build logs can inspect historical and real-time logs for base64 strings. Decoding these strings yields plaintext credentials for registries, cloud providers, deployment targets, or source control systems. The exposure persists until logs are purged or the credentials are rotated.
The vulnerability does not require network-adjacent access or privileged accounts. Any user granted the standard view project role on a project that executed vulnerable builds can retrieve exposed secrets.
See the JetBrains Security Issues Fixed advisory for vendor technical details.
Detection Methods for CVE-2025-46432
Indicators of Compromise
- Base64-encoded strings appearing in build logs for curl, wget, docker login, or HTTP Basic authentication commands
- Unexpected access patterns against the TeamCity REST API endpoints that retrieve build logs
- Credential use from unusual source IP addresses after a TeamCity user downloaded build logs
Detection Strategies
- Scan existing TeamCity build logs for base64 patterns matching known secret prefixes such as AKIA, ghp_, or service account JSON structures
- Review TeamCity audit logs for bulk log download activity by non-administrative accounts
- Correlate credential authentication events in downstream systems with TeamCity user log access timestamps
Monitoring Recommendations
- Enable TeamCity audit logging for build log access events and forward records to a centralized SIEM
- Alert on anomalous volumes of log retrieval requests per user account within short time windows
- Monitor downstream service accounts referenced in CI pipelines for authentication from unexpected network locations
How to Mitigate CVE-2025-46432
Immediate Actions Required
- Upgrade TeamCity On-Premises to version 2025.03.1 or later as the primary remediation
- Rotate all credentials, API tokens, and service account keys that were referenced in TeamCity build configurations before patching
- Audit historical build logs for exposed base64 strings and purge logs that contain decoded secrets
- Restrict build log view permissions to the minimum set of users required for operations
Patch Information
JetBrains addressed CVE-2025-46432 in TeamCity 2025.03.1. The fix extends credential masking to recognize base64-encoded forms of configured secrets. Review the JetBrains Security Issues Fixed page for the complete list of versions and remediated issues.
Workarounds
- Avoid passing credentials through command-line arguments that get echoed to build logs; use TeamCity typed password parameters and native integrations
- Configure build scripts to redirect sensitive command output to /dev/null or suppress verbose logging during authentication steps
- Pre-encode and store credentials as TeamCity password parameters rather than encoding them inside build steps
- Apply strict role-based access controls that separate build execution rights from build log viewing rights
# Configuration example: use TeamCity password parameters instead of inline encoding
# In TeamCity UI, add a parameter of type "Password":
# Name: env.REGISTRY_AUTH_B64
# Value: <pre-encoded base64 credential>
# Then reference it in build steps without re-encoding:
curl -H "Authorization: Basic %env.REGISTRY_AUTH_B64%" https://registry.example.com/v2/
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

