Skip to content
RCE Write-up Advanced

CVE-2023-42793 Vulnerability in TeamCity: Post-Mortem

A critical flaw in TeamCity On-Premises let an unauthenticated attacker with HTTP(S) access to the server carry out remote code execution and gain administrative control. The vendor reproduced the issue, released a fixed version and a plugin for older versions, and notified customers.

blog.jetbrains.com

Published on blog.jetbrains.com

On September 6, 2023, we received a report from Sonar regarding a critical vulnerability issue identified in TeamCity On-Premises. If abused, the flaw could enable an unauthenticated attacker with HTTP(S) access to a TeamCity server to perform a remote code execution (RCE) attack and gain administrative control of the…

The author, on blog.jetbrains.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely an authentication or authorisation mistake in the TeamCity server that let unauthenticated requests reach functionality meant to be restricted, though this post-mortem does not state the technical cause.

Impact

An unauthenticated attacker with network access to the server could achieve remote code execution and gain administrative control; TeamCity Cloud was not affected.

What the attacker needed

HTTP(S) access to a TeamCity server; on-premises install, not TeamCity Cloud

The fix

It was fixed in version 2023.05.4, and a plugin was provided for older versions from 8.0 onwards.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

TeamCity is a build server that software teams use to compile and deploy their code. A flaw in it meant someone who could reach the server over the network, without any login, could run their own commands on it and take it over. The company fixed it and also offered a patch plugin for people who could not upgrade straight away.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.