TeamCity reads system files, exploited

High 8.8 Actively exploited Danfoss Ak-Sm 800A Firmware +1 CVE-2023-25914

Actively exploited

Severity 8.8 Reach 10.0 Ease 8.0 Exploitation 10.0 Tooling 0.0

Risk assessment

TeamCity XML interface lets low-privilege users read server system files, now exploited in the wild (CVSS 8.8). Update to 2022.10.2 now.

By Yazoul AI · automated

What to do

Apply the latest security patches from the vendor. If patching is not immediately possible, review the mitigation steps in this advisory and monitor for exploitation attempts.

Actively exploited in the wild - CVE-2023-25914 is a high-severity file disclosure flaw in JetBrains TeamCity’s XML interface that lets any authenticated low-privilege user read arbitrary system files from the underlying server, often a direct path to full compromise. JetBrains patched it in TeamCity 2022.10.2 and 2023.05; upgrade immediately if you have not.

Overview

TeamCity exposes an XML-based interface used by its REST and remote-run functionality. CVE-2023-25914 stems from improper restriction on how that interface handles file path input, so a user who can only authenticate with minimal rights can still ask the server to return files outside the intended scope. In practice that means configuration files, secrets, and anything else the TeamCity service account can read.

The CVSS score of 8.8 reflects a low bar for attackers: the attack vector is network, complexity is low, and privileges required are low, with no user interaction. The only prerequisite is a valid account, which makes this especially dangerous on CI/CD servers that allow self-registration or integrate with broad single sign-on groups.

Impact

TeamCity typically runs with elevated permissions on a build host and stores credentials for source control, artifact repositories, deployment targets, and cloud providers. Reading its system files can expose those secrets directly. That is why the vendor and CISA treat this as a stepping stone: leaked tokens and configuration data let an attacker pivot from a CI account into production infrastructure.

CISA added CVE-2023-25914 to its Known Exploited Vulnerabilities catalog, confirming real-world attacks. Given TeamCity’s role in software delivery, a compromise here can mean supply chain risk for everything the pipeline builds. Teams responding to an incident should check for breach reports and follow security news for updates on active campaigns.

Remediation and Mitigation

  • Upgrade to TeamCity 2022.10.2 or 2023.05 or later. These releases contain the fix; earlier versions remain vulnerable.
  • Review accounts. Disable self-registration, prune stale users, and audit which groups can authenticate to the server.
  • Rotate secrets. If you ran an affected version, rotate credentials stored in TeamCity (VCS, deploy, cloud) and review build logs for unusual file access.
  • Restrict exposure. Do not leave the TeamCity web interface reachable from the public internet without a VPN or access proxy.
  • Monitor. Alert on requests to the XML interface that reference absolute paths or traversal sequences.

Security Insight

This case shows how a modest-looking file read becomes an active-exploitation event once it lands on a CI/CD server, where secrets are concentrated by design. It echoes the pattern seen with TeamCity’s authentication bypass in 2024: attackers prioritize build systems because one foothold yields credentials for many downstream environments. For defenders, the lesson is that “authenticated only” is a weak control on systems that are built to hold the keys to everything else.

Further Reading

Share

Get a Telegram alert when the next one lands: Danfoss advisories

All Danfoss Ak-Sm 800A Firmware vulnerabilities →

Never Miss a Critical Alert

CVE advisories, breach reports, and threat intel — delivered daily to your inbox.