Common Weakness Enumeration

CWE-486

Allowed

Comparison of Classes by Name

Abstraction: Variant · Status: Draft

The product compares classes by name, which can cause it to use the wrong class when multiple classes can have the same name.

1 vulnerability references this CWE, most recent first.

GHSA-V54X-Q7H2-HJX6

Vulnerability from github – Published: 2026-11-19 15:31 – Updated: 2026-11-19 15:31
VLAI
Details

In JetBrains TeamCity before 2026.2.2, 2026.1.6 remote code execution was possible via security context spoofing in the Kotlin DSL sandbox

Show details on source website

{
  "affected": [],
  "aliases": [
    "CVE-2026-133078"
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-486"
    ],
    "github_reviewed": false,
    "github_reviewed_at": null,
    "nvd_published_at": "2026-11-19T13:17:28Z",
    "severity": "HIGH"
  },
  "details": "In JetBrains TeamCity before 2026.2.2, 2026.1.6 remote code execution was possible via security context spoofing in the Kotlin DSL sandbox",
  "id": "GHSA-v54x-q7h2-hjx6",
  "modified": "2026-11-19T15:31:06Z",
  "published": "2026-11-19T15:31:06Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-133078"
    },
    {
      "type": "WEB",
      "url": "https://www.jetbrains.com/privacy-security/issues-fixed"
    }
  ],
  "schema_version": "1.4.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ]
}

Mitigation
Implementation

Use class equivalency to determine type. Rather than use the class name to determine if an object is of a given type, use the getClass() method, and == operator.

No CAPEC attack patterns related to this CWE.