LiveActive security incident?Get immediate response
CVE Record

CVE-2022-36321: In JetBrains TeamCity before 2022.04.2 the private SSH key could be written to the build log in some cases

In JetBrains TeamCity before 2022.04.2 the private SSH key could be written to the build log in some cases

MediumCVSS 4.1Not KEV-listedUpdated
Glexia's TakeAutomated analysismoderate

Security readout for executives and security teams

Plain-English summary

Some TeamCity versions before 2022.04.2 could accidentally print a private SSH key into a build log. If someone with access to those logs sees the key, they could use it outside TeamCity depending on what that key protects. The provided sources do not show active exploitation.

Executive priority

Treat this as a focused credential-exposure issue, not a broad remote takeover based on available evidence. Prioritize upgrade and key review where TeamCity handles deployment or source-control SSH credentials.

Technical view

CVE-2022-36321 is a CWE-532 sensitive-information-in-log issue in JetBrains TeamCity before 2022.04.2. The CVSS vector indicates network reachability, low attack complexity, high privileges required, changed scope, and low confidentiality impact, with no integrity or availability impact recorded.

Likely exposure

Exposure is most likely on TeamCity deployments before 2022.04.2 that use private SSH keys in build workflows and allow users or integrations to read build logs.

Exploitation context

The source bundle does not list CISA KEV status or cite active exploitation. Practical impact depends on whether private SSH keys were logged, who could read those logs, and what systems those keys access.

Researcher notes

Evidence is sparse: the public description says private SSH keys could be written to build logs “in some cases,” but does not define exact trigger conditions. Avoid assuming exploitability beyond privileged log access and affected TeamCity versions before 2022.04.2.

Mitigation direction

  • Upgrade TeamCity to 2022.04.2 or later, following JetBrains guidance.
  • Restrict build log access to users with a clear operational need.
  • Rotate any SSH private keys suspected of appearing in build logs.
  • Review JetBrains fixed-issue guidance for version-specific remediation details.

Validation and detection

  • Inventory TeamCity instances and confirm whether any are before 2022.04.2.
  • Identify builds that used private SSH keys before remediation.
  • Review accessible build logs for accidental private key exposure.
  • Confirm exposed or suspected keys were revoked and replaced.
Prepared
Confidence
medium
Sources
3

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · low confidence lookup

CWE-532: Exact CWE lookup

Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2022-36321 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
Medium
CVSS
4.1 (3.1)
Known Exploited
No
Published

Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:L/I:N/A:N

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
0Timeline events
0ADP providers
2Source links

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
4.1CVSS 3.1MediumCVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:L/I:N/A:N2.31.4Primary CVE score

Vulnerability scoring details

Base CVSS 3.1 score

4.1Medium
CVSS 3.1 vector shape for CVE-2022-36321Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:L/I:N/A:N

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Privileges Required
NoneLowHigh
User Interaction
NoneRequired
Scope
ChangedUnchanged
Confidentiality Impact
HighLowNone
Integrity Impact
HighLowNone
Availability Impact
HighLowNone

Source materials

Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
JetBrainsTeamCity2022.04.2Listed
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-532 · source CWE mapping

Insertion of Sensitive Information into Log File

Insertion of Sensitive Information into Log File represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.