Security Advisory

CVE-2025-34240: WebAccess/VPN SQL Injection

Last updated:
  • CVE-2025-34240

CVE-2025-34240 is a SQL injection flaw in Advantech WebAccess/VPN before 1.1.5 that lets a signed-in user with the low-privileged observer role inject SQL through datatable search parameters and read database contents. NVD scores it 6.5 and Advantech 8.1. The sources disagree on which function is affected. Version 1.1.5 fixes it.

Vulnerability summary

CVSS base score

6.5

Medium severity

EPSS score (FIRST)

0.3%

Probability of exploitation in the wild in the next 30 days

CISA KEV catalog

No

Not listed

Published

Vulnerability ID: CVE-2025-34240 · Source: NVD

Affected components

ComponentCPEVersion range
Advantech WebAccess/VPN (VPN Portal), AjaxDeviceController.ajaxActionValidateTable() per Advantech SA-2025-01cpe:2.3:a:advantech:webaccess\/vpn:*:*:*:*:*:*:*:*Before 1.1.5 (NVD CPE and CVE record); 1.1.4 and prior (Advantech SA-2025-01); fixed in 1.1.5

What does this mean for affected devices?

The CVE record, from VulnCheck as CNA, says WebAccess/VPN versions prior to 1.1.5 "contain a SQL injection vulnerability in AppManagementController.appUpgradeAction() that allows an authenticated low-privileged observer user to inject SQL via datatable search parameters, leading to disclosure of database information." The weakness is CWE-89 and the record was published on 2025-11-06 (NVD, CVE record, VulnCheck advisory).

Which function is affected?

The sources disagree. Advantech's SA-2025-01 lists CVE-2025-34240 as item 5, "AjaxDeviceController.ajaxActionValidateTable() – SQL Injection", and gives AppManagementController.appUpgradeAction() to CVE-2025-34239, a command injection. The CVE record's own affected-module field also says AjaxDeviceController.ajaxActionValidateTable(), while its title and description, which NVD copies, say appUpgradeAction(). The "datatable search parameters" wording fits a table validation handler better than an upgrade action. This page follows the vendor advisory. For patching the difference does not matter: every SA-2025-01 flaw is fixed in 1.1.5.

Which products are affected?

WebAccess/VPN, which Advantech also calls the VPN Portal, is a server application that Advantech publishes and patches through its cellular router security notifications. Advantech's later advisory SA-2026-02 says it runs its web interface on PHP 5.6 under Apache mod_php on Ubuntu 20.04 to 26.04. SA-2025-01 (notification date 31 October 2025) covers twelve flaws in WebAccess/VPN 1.1.4 and earlier, found by Alex Williams of Pellera Technologies; NVD's CPE matches all versions before 1.1.5. Related pages: the stored XSS CVE-2025-34236 and the SQL injection CVE-2025-34247.

How severe is CVE-2025-34240?

NVD's Primary score is CVSS v3.1 6.5 (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N), counting only the database disclosure the description mentions. Advantech rates it 8.1 (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N), adding a high integrity impact, and VulnCheck 8.6 under CVSS v4.0 (VC:H/VI:H/VA:N). All agree any authenticated account, even the read-only observer role, can reach it.

How do you fix CVE-2025-34240?

Upgrade WebAccess/VPN to 1.1.5, the fix Advantech gives for all twelve SA-2025-01 flaws. That is not the end of it: Advantech's SA-2026-02 (30 October 2026) says every WebAccess/VPN version on Ubuntu 20.04, 22.04, 24.04 and 26.04 is affected by the PHP2Shell flaws CVE-2026-109618 and CVE-2026-109619, that the portal login does not protect against them, and that working attacks are in use; CISA added both to KEV on 2026-10-26. Install Advantech's PHP2Shell patch package, restrict HTTPS access to the portal to trusted IP addresses or a separate VPN as SA-2026-02 asks, and plan the migration to WebAccess/DMP that Advantech recommends because PHP 5.6 has been end of life since 2018.

The Advantech guide covers WebAccess/VPN alongside the router firmware and R-SeeNet advisories. The input handling fix guide covers parameterised queries, and the WebAccess/SCADA SQL injection CVE-2025-46268 is another Advantech example.

Is CVE-2025-34240 exploited?

It is not in the CISA KEV catalog as of 2026-11-21 (catalog version 2026.11.20, 1,790 entries). FIRST EPSS gives it 0.00312, the 24.7th percentile, in the 2026-11-20 dataset (CISA KEV, FIRST EPSS). The CISA ADP entry on the CVE record rates exploitation as none.

How to fix this class of issueThis advisory's weakness class is SQL injection. 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-21): status Analyzed; published 2025-11-06; description names AppManagementController.appUpgradeAction(), observer user, datatable search parameters; NVD Primary CVSS v3.1 6.5 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N; [email protected] Secondary CVSS v4.0 8.6; CWE-89 (CNA); CPE advantech:webaccess/vpn versions before 1.1.5. — NVD
  • Advantech SA-2025-01 (notification date October 31, 2025; read 2026-11-21): item 5, AjaxDeviceController.ajaxActionValidateTable() SQL injection, score 8.1 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N, WebAccess/VPN 1.1.4 and prior, CVE-2025-34240; item 4 AppManagementController.appUpgradeAction() command injection is CVE-2025-34239; solution: upgrade to 1.1.5. — Advantech
  • CVE record (read 2026-11-21): state PUBLISHED, CNA VulnCheck, published 2025-11-06, updated 2025-11-17; title 'Advantech WebAccess/VPN < 1.1.5 SQL Injection via AppManagementController.appUpgradeAction()'; affected module field AjaxDeviceController.ajaxActionValidateTable(); versions below 1.1.5; CVSS v4.0 8.6 (PR:L, VC:H/VI:H). CISA ADP SSVC: Exploitation none, Automatable yes, Technical Impact total. — CVE.org / VulnCheck
  • Advantech SA-2026-02 (30 October 2026, read 2026-11-21): all versions of WebAccess/VPN (VPN Portal) on Ubuntu 20.04, 22.04, 24.04 and 26.04 are affected by CVE-2026-109618 and CVE-2026-109619; WebAccess/VPN runs its web interface on PHP 5.6 under Apache mod_php; fix is the offline PHP2Shell patch package; restrict HTTPS access to trusted IP addresses; plan a migration to WebAccess/DMP. Security Notifications page lists SA-2025-01 posted 06.11.2025. — Advantech
  • Not in the CISA KEV catalog, version 2026.11.20 (1,790 entries, released 2026-11-20), checked 2026-11-21. — CISA KEV
  • EPSS 0.00312, percentile 0.2468, dataset 2026-11-20, read 2026-11-21. — FIRST EPSS

Related advisories

Sources

  1. NVD
  2. Advantech SA-2025-01: Multiple Vulnerabilities in Advantech WebAccess/VPN
  3. Advantech SA-2026-02: PHP2Shell Vulnerabilities in WebAccess/VPN
  4. Advantech cellular routers: Security Notifications
  5. VulnCheck: Advantech WebAccess/VPN SQLi (CVE-2025-34240)
  6. CVE.org record CVE-2025-34240 (CNA: VulnCheck)
  7. CISA KEV
  8. FIRST EPSS

Frequently asked questions

Which function does CVE-2025-34240 affect?

Advantech's SA-2025-01 and the CVE record's affected-module field say AjaxDeviceController.ajaxActionValidateTable(). The CVE title and description, copied by NVD, say AppManagementController.appUpgradeAction(), which Advantech assigns to the command injection CVE-2025-34239.

Can a read-only user exploit CVE-2025-34240?

Yes. The CVE description names the low-privileged observer user, and NVD, Advantech and VulnCheck all score it with low privileges required (PR:L) and no user interaction.

Which version fixes CVE-2025-34240?

WebAccess/VPN 1.1.5, per Advantech advisory SA-2025-01, which lists 1.1.4 and earlier as affected. Also apply the PHP2Shell patch from Advantech SA-2026-02 and restrict HTTPS access to the portal.

Why do the CVSS scores differ for CVE-2025-34240?

NVD's 6.5 counts confidentiality impact only; Advantech's 8.1 adds a high integrity impact, meaning an attacker could also change data; VulnCheck's CVSS v4.0 score of 8.6 also rates both as high.