CWEweakness

CWE-618 Exposed Unsafe ActiveX Method

Official page ↗
Abstraction
Variant
Structure
Simple
Status
Incomplete
Languages
Not Language-Specific
CWE version
5.0

Description

An ActiveX control is intended for use in a web browser, but it exposes dangerous methods that perform actions that are outside of the browser's security model (e.g. the zone or domain).

Common consequences

• Other: Varies by Context — If there is no integrity checking or origin validation, this method could be invoked by attackers. Since ActiveX controls can exercise far greater control over the operating system than typical Java or javascript, exposed methods can be subject to various vulnerabilities. Consequences depend on the implemented behaviors of those methods, and whether input validation is performed on the provided arguments.

Potential mitigations

• [Implementation] If you must expose a method, make sure to perform input validation on all arguments, and protect against all possible vulnerabilities. • [Architecture and Design] Use code signing, although this does not protect against any weaknesses that are already in the control. • [Architecture and Design, System Configuration] Where possible, avoid marking the control as safe for scripting.

Detection methods

• Automated Static Analysis: Automated static analysis, commonly referred to as Static Application Security Testing (SAST), can find some instances of this weakness by analyzing source code (or binary/compiled code) without having to execute it. Typically, this is done by building a model of data flow and control flow, then searching for potentially-vulnerable patterns that connect "sources" (origins of input) with "sinks" (destinations where the data interacts with external components, a lower layer such as the OS, etc.)

Observed examples

• CVE-2007-1120: download a file to arbitrary folders. • CVE-2006-6838: control downloads and executes a url in a parameter • CVE-2007-0321: resultant buffer overflow

Related

Observed example · CVE (3)

  • CVE-2007-1120 The (1) Import.LoadFromURL and (2) Export.asText.SaveToFile functions in TeeChart Pro ActiveX control (TeeChart7.ocx) allow remote… vulnerability
  • CVE-2007-0321 Buffer overflow in the Update Service Agent ActiveX Control in isusweb.dll for Macrovision FLEXnet Connect (formerly InstallShield Update… vulnerability
  • CVE-2006-6838 Rediff Bol Downloader ActiveX (OCX) control allows remote attackers to execute arbitrary files, and obtain sensitive information (usernames… vulnerability

Child of · CWE (1)

  • CWE-749 Exposed Dangerous Method or Function weakness

Referenced by CVE · weakness (2)

  • CVE-2026-97400 In Eclipse OpenJ9 versions up to 0.63, opening a supplied diagnostic dump bundle with the jdmpview tool, or equivalent DTFJ code, may cause… vulnerability
  • CVE-2025-0118 A vulnerability in the Palo Alto Networks GlobalProtect app on Windows allows a remote attacker to run ActiveX controls within the context… vulnerability

Referenced by CWE · peer of (1)

  • CWE-623 Unsafe ActiveX Control Marked Safe For Scripting weakness