Security Advisory

CVE-2024-33893: Ewon Cosy+ XSS in the Event Log

Last updated:
  • CVE-2024-33893

CVE-2024-33893 is a cross-site scripting flaw in the event log view of HMS Ewon Cosy+ remote-access gateways on firmware 21.x below 21.2s10 and 22.x below 22.1s3. The username from a failed FTP login is shown unescaped, so an unauthenticated attacker can run script in an administrator's browser. NVD scores it 6.1, HMS 2.1 (CVSS v4.0).

Vulnerability summary

CVSS base score

6.1

Medium severity

EPSS score (FIRST)

0.7%

Probability of exploitation in the wild in the next 30 days

CISA KEV catalog

No

Not listed

Published

Vulnerability ID: CVE-2024-33893 · Source: NVD

Affected components

ComponentCPEVersion range
HMS Networks Ewon Cosy+ industrial remote-access VPN gateway firmwarecpe:2.3:o:hms-networks:ewon_cosy\+_firmware:*:*:*:*:*:*:*:*21.x below 21.2s10 and 22.x below 22.1s3 (HMS HMSSAR-2024-07-29-001); fixed in 21.2s10 and 22.1s3. NVD CPE reads 21.0 up to and including 21.2s10 and 22.0 up to and including 22.1s3

What does this mean for affected devices?

NVD's description reads: "Cosy+ devices running a firmware 21.x below 21.2s10 or a firmware 22.x below 22.1s3 are vulnerable to XSS when displaying the logs due to improper input sanitization. This is fixed in version 21.2s10 and 22.1s3." NVD's Primary score is CVSS v3.1 6.1 (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N), with CWE-79; the CISA ADP entry gives the same score and CWE. MITRE assigned the record with vendor and product n/a; it was published on 2024-08-02 (NVD, CVE record). NVD's CPE ranges read "up to and including" 21.2s10 and 22.1s3, which would also match the fixed releases; HMS and the description name those versions as the fix. NVD lists the Cosy+ 4G APAC, 4G EU, 4G JP, 4G NA, Ethernet and WiFi hardware as the platforms.

How does a failed FTP login become script in the web interface?

The researcher's advisory SYSS-2024-016 (Full Disclosure, 2024-08-11) explains: when a login to the Cosy+ FTP service fails, the submitted username is written to a log, and the web interface shows that event log without neutralizing it. An unauthenticated attacker who can reach the FTP service can therefore plant HTML and JavaScript that runs when an administrator opens the logs. The FTP username is limited to 16 characters, so the payload is short, but SySS notes that a short URL or controlled DNS still makes loading a full script possible. SySS rates the risk medium, tested firmware 21.2s7, reported it to HMS on 2024-03-27 and lists 2024-07-18 as the date HMS released the fixed firmware.

Why is the score higher than the vendor's?

HMS advisory HMSSAR-2024-07-29-001 (version 1 of 2024-07-29, typo fix on 2024-08-07) scores it 2.1 on CVSS v4.0 (AV:A/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N, with E:P and AU:Y), treating the attacker as adjacent to the device. SySS's blog post shows why the finding matters more in a chain: the script can read the credentials cookie, which holds the web password (CVE-2024-33892), and with admin access an OpenVPN configuration injection (CVE-2024-33896) gives a root shell. SySS states that an unauthenticated attacker can gain root on the Cosy+ by combining the findings and waiting for an admin user to log in.

What should Cosy+ owners do?

HMS recommends firmware 21.2s10 or later on the 21.x line, or 22.1s3 or later on the 22.x line; a Cosy+ kept current for HMS's 2026 advisory (22.1s6 or 23.0s3) is past both. Until then, block the FTP service from untrusted networks and change the web password if the logs may have been viewed on an affected version. The earlier reflected XSS in Flexy and Cosy, CVE-2020-10633, shows the same browser-side risk. The HMS Ewon Flexy and Cosy+ gateway guide covers all Ewon advisories, and the input handling fix guide covers output encoding of logged data.

CVE-2024-33893 is not in the CISA KEV catalog as of 2026-11-23 (catalog version 2026.11.20, 1,790 entries). FIRST EPSS gives it 0.0072, the 54.7th percentile, in the 2026-11-22 dataset (CISA KEV, FIRST EPSS).

How to fix this class of issueThis advisory's weakness class is Cross-site scripting (XSS). Our practical guide covers how to detect, fix, verify and disclose it: How to fix SQL injection, XSS, resource exhaustion and deserialization flaws in embedded firmware.

Evidence

  • NVD (read 2026-11-23): status Modified; published 2024-08-02; NVD Primary CVSS v3.1 6.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N; CISA ADP Secondary 6.1; CWE-79; CPE ewon_cosy+_firmware 21.0 up to and including 21.2s10, 22.0 up to and including 22.1s3; hardware Cosy+ 4G APAC/EU/JP/NA, Ethernet, WiFi. — NVD
  • HMS HMSSAR-2024-07-29-001 (v1 2024-07-29, v2 typo 2024-08-07; read 2026-11-23): CVE-2024-33893 XSS when displaying the logs; CVSS v4.0 2.1 AV:A/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N/E:P/S:N/AU:Y/R:U/RE:M/U:Red; upgrade to >= 21.2s10 or 22.1s3; credit Moritz Abrell (SySS). — HMS Networks
  • SySS SYSS-2024-016, Full Disclosure 2024-08-11: failed FTP login username logged and shown unneutralized in web event log; unauthenticated injection; username limited to 16 characters; risk medium; tested 21.2s7; reported 2024-03-27; fixed firmware released 2024-07-18. — SySS
  • SySS blog (read 2026-11-23): XSS via FTP log poisoning reads the credential cookie; with admin access OpenVPN config injection gives root; an unauthenticated attacker can gain root by combining the findings and waiting for an admin to log in. — SySS Tech Blog
  • CVE record (checked 2026-11-23): state PUBLISHED, CNA MITRE, published 2024-08-02, vendor and product n/a, no CNA CVSS. — CVE.org
  • Not in the CISA KEV catalog, catalog version 2026.11.20, 1,790 entries, checked 2026-11-23. — CISA KEV
  • EPSS 0.00715, percentile 0.54659, dataset 2026-11-22, read 2026-11-23. — FIRST EPSS

Related advisories

Sources

  1. NVD
  2. HMS Security Advisory HMSSAR-2024-07-29-001: Several vulnerabilities affecting the Cosy+ product line
  3. SySS SYSS-2024-016 on Full Disclosure: Ewon Cosy+ cross-site scripting
  4. SySS Tech Blog: Hacking a Secure Industrial Remote Access Gateway
  5. CVE.org record CVE-2024-33893
  6. CISA KEV
  7. FIRST EPSS

Frequently asked questions

Which Cosy+ firmware fixes CVE-2024-33893?

Firmware 21.2s10 on the 21.x line and 22.1s3 on the 22.x line, per HMS advisory HMSSAR-2024-07-29-001. SySS lists 2024-07-18 as the release date of the fixed firmware.

Does the attacker need a login?

No. SySS shows that a failed FTP login is enough: the username submitted to the FTP service is written to the event log and runs as script when an administrator views the logs in the web interface.

Why does HMS rate it only 2.1?

HMS scores CVSS v4.0 with an adjacent-network attacker and low confidentiality and integrity impact. NVD scores CVSS v3.1 6.1 with a network attacker and changed scope. SySS shows it can be chained with the credential cookie and OpenVPN injection findings to reach root.

Is CVE-2024-33893 in the CISA KEV catalog?

No, not as of 2026-11-23 (catalog version 2026.11.20, 1,790 entries). FIRST EPSS rates it 0.0072 (54.7th percentile) in the 2026-11-22 dataset.