Cloudanix VulnDB

CVE-2023-5222

Critical · 9.8

CVSS

9.8

EPSS

80.4%

Published

Sep 27, 2023

CISA due date

—

Cloudanix analysis

Monitor only SSVC: Attend

A vulnerable building-control gateway can let outsiders log in and change or disrupt its settings without knowing a real password.

Weaponized
Exploitation
Remote Unauthenticated
Attacker needs
None
Complexity
Low
Impact
Full Compromise
Component
Firmware
Class
Credential Exposure
Remediation
No Fix Yet
Effort
High
Patch risk
Medium

What it actually does

CVE-2023-5222 is a critical credential exposure flaw in the Viessmann Vitogate 300 web management interface. The /cgi-bin/vitogate.cgi component uses a hard-coded password in the isValidUser authentication logic, allowing a remote, unauthenticated attacker to authenticate or bypass intended access controls over the network. Because the vulnerable interface manages the device, successful exploitation can provide full confidentiality, integrity, and availability impact, including unauthorized configuration access, manipulation of gateway settings, disruption of connected building/heating automation functions, and potential use of the device as a foothold into adjacent operational technology or building management networks.

Why it matters to the business

An exposed vulnerable Vitogate 300 can be taken over remotely without legitimate credentials, creating risk of heating/building-control disruption, unauthorized operational changes, data exposure, and pivoting into connected networks. The CVSS score is critical, the EPSS score is high, and exploit code is reported as weaponized and publicly disclosed, so internet-exposed or broadly reachable management interfaces should be treated as urgent even though this vulnerability is not currently listed in CISA KEV and has not been specifically tied to ransomware campaigns.

How an attack unfolds

An attacker first identifies a reachable Viessmann Vitogate 300 web management interface, commonly by scanning for the device web service or the /cgi-bin/vitogate.cgi endpoint. The attacker then submits authentication traffic that abuses the hard-coded password condition in the isValidUser logic. Because the password is embedded in the product rather than uniquely configured by the owner, the attacker does not need to steal valid user credentials or convince a user to interact. Once authenticated, the attacker can access administrative web functions, review or alter device configuration, disrupt normal gateway operation, and potentially use the compromised appliance to observe or reach other systems on the same network segment. Public exploit availability lowers the skill required and increases the likelihood of opportunistic scanning and automated exploitation attempts.

How to fix it

No fixed version was provided in the advisory data, and the disclosure notes that the vendor did not respond. Organizations should contact Viessmann support or their integrator for updated firmware or replacement guidance and upgrade immediately if a vendor-supported fix becomes available. Until a fix is confirmed, remove the web management interface from internet exposure, restrict access to trusted administrative networks only, place the device behind a VPN or jump host with strong authentication, block direct access to /cgi-bin/vitogate.cgi from untrusted networks, and enforce firewall allowlists. Where feasible, isolate Vitogate devices on dedicated building-management or OT network segments with no direct routing from user workstations or the public internet. Rotate any locally configured credentials, but do not treat password rotation alone as sufficient because the issue involves a hard-coded password in product logic. If the device cannot be adequately isolated, consider disabling the web interface or replacing the product.

How to confirm the fix worked

Confirm exposure by inventorying Viessmann Vitogate 300 devices and identifying firmware versions at or below 2.1.3.0. Validate that the web management interface is not reachable from the internet or untrusted networks by scanning only from authorized assessment points. Verify firewall, reverse proxy, VPN, and segmentation controls prevent direct access to /cgi-bin/vitogate.cgi except from approved administration hosts. If a vendor firmware update is obtained, confirm the installed version is newer than the vulnerable release range and retest that authentication cannot be bypassed using the previously vulnerable hard-coded password path. Review configuration backups and management interface settings after remediation to ensure no unauthorized changes remain.

Typical attack path

  1. Scan the internet or internal network for Viessmann Vitogate 300 web management interfaces.
  2. Confirm the presence of the vulnerable CGI endpoint, such as /cgi-bin/vitogate.cgi.
  3. Send crafted login or authentication requests that satisfy the hard-coded password check in the isValidUser function.
  4. Gain unauthorized access to the web management interface without legitimate credentials.
  5. Use administrative functionality to view settings, change device configuration, disrupt service, or create persistence where possible.
  6. Attempt lateral movement or reconnaissance from the compromised device toward connected building management, operational technology, or enterprise network assets.

How to detect it

Investigate web server, embedded device, reverse proxy, VPN, firewall, and network telemetry for attempted or successful access to the Vitogate web management interface. Prioritize requests to /cgi-bin/vitogate.cgi from public, anonymous, or unexpected source IPs, repeated authentication attempts, unusual HTTP POST activity, access outside maintenance windows, and sessions followed by configuration changes or device restarts. Because exploitation abuses valid-looking authentication logic, detection should focus on anomalous management access patterns rather than only failed logins. Review any device audit logs, configuration export timestamps, user/session records, and system event logs for administrative actions by unknown users or from non-administrative networks. Network teams should also look for scanning of the CGI path across multiple hosts and outbound connections from Vitogate devices to unfamiliar destinations after suspicious login activity. If logs are limited, compare current device configuration to known-good backups and verify whether firewall or NAT logs show historical inbound access to the management service.

  • /cgi-bin/vitogate.cgi
  • POST /cgi-bin/vitogate.cgi
  • GET /cgi-bin/vitogate.cgi
  • vitogate.cgi
  • isValidUser
  • Viessmann Vitogate 300
  • Vitogate 300
  • VDB-240364

What your security team should do

  • Immediately identify all Viessmann Vitogate 300 deployments and record firmware versions, network location, and management interface exposure.
  • Treat any Vitogate 300 running firmware up to and including 2.1.3.0 as vulnerable unless the vendor confirms otherwise.
  • Urgently remove internet exposure and restrict management access to approved administrative sources through firewall allowlists, VPN, or a jump host.
  • Search historical web, proxy, firewall, VPN, and device logs for access to /cgi-bin/vitogate.cgi, especially from unknown external IP addresses.
  • Review device configuration for unauthorized changes, new users, altered network settings, unexpected restarts, or modified integration parameters.
  • Contact the vendor or integrator for firmware, compensating controls, or replacement guidance; document the absence of an official fixed version if none is available.
  • Segment building-management and OT devices from enterprise user networks and monitor east-west traffic from Vitogate devices for unusual connections.
  • If compromise is suspected, isolate the device, preserve logs and configuration, rebuild or replace the appliance, and rotate credentials used by connected systems.

The record

A vulnerability classified as critical was found in Viessmann Vitogate 300 up to 2.1.3.0. This vulnerability affects the function isValidUser of the file /cgi-bin/vitogate.cgi of the component Web Management Interface. The manipulation leads to use of hard-coded password. The exploit has been disclosed to the public and may be used. The identifier of this vulnerability is VDB-240364. NOTE: The vendor was contacted early about this disclosure but did not respond in any way.

Affected packages

Ecosystem Package Introduced Fixed

Related vulnerabilities