All vulnerabilities

Servers and applications

GHSA-fqmm-g6xw-qhm4

OpenVPN session kill endpoint executes arbitrary management protocol commands through unvalidated `session_id` (delegated status user to daemon control)

Severity
Medium 6.5
Published
12 Aug 2026
Last changed
12 Aug 2026
Added to UpHeron
3 Nov 2026
Fixed in
26.7.2
Weakness
Command injection (CWE-77)
Attack
Over the network · Needs an administrator account · No user action needed
Attacker can
Read data · Take it down
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:H
Sources
Project advisories (GitHub)

Description

The WebGUI endpoint POST /api/openvpn/service/kill_session accepts a session_id parameter (source address:port or certificate common name) and passes it without any validation to the configd action openvpn kill. The backend script kill_session.py concatenates the value directly into an OpenVPN management protocol command ('kill %s\n' % session_id) and writes it to the daemon's management unix socket as root.

A newline character inside session_id frames a second, independent management protocol command. Any management command available on the interface can be injected, including signal SIGTERM (terminate the daemon), signal SIGHUP (restart), client-kill, and client-auth/client-deny (interfere with client authorization).

The endpoint is reachable by any WebGUI user holding the delegated Status: OpenVPN privilege (page-status-openvpn → api/openvpn/service/*), a monitoring role whose intended capability is to view sessions and kill individual connections.

From opnsense/core's security advisory. Shortened; the full text is there.

Affected software

SoftwareAffected versions
OPNsenseServers and applications · github:opnsense/core
  • From 26.7.1 before 26.7.2

About OPNsense

open-source firewall

From Wikidata, CC0 1.0.
GitHub stars
4,802GitHub, 15 Nov 2026
Forks
1,029GitHub, 15 Nov 2026
License
2-clause BSD LicenseWikidata
Written in
PHP, CWikidata
First released
2 Jan 2015Wikidata
First published on GitHub
13 Dec 2014GitHub

Release lines

ReleaseLatestSecurity fixes
26.7 'Xenial Xenops'26.7.9Yes
26.1 'Witty Woodpecker'26.1.11Ended 15 Jul 2026
25.7 'Visionary Viper'25.7.11Ended 28 Jan 2026
25.1 'Ultimate Unicorn'25.1.12Ended 23 Jul 2025
24.7 'Thriving Tiger'24.7.12Ended 28 Jan 2025
24.1 'Savvy Shark'24.1.10Ended 25 Jul 2024

From endoflife.date.

References