CVE-2025-50989CWE-78

OPNsense before 25.1.8 contains an authenticated command injection vulnerability in its Bridge Interface Edit endpoint (interfaces_bridge_edit.php)

Critical · published August 27, 2025

CVSS v3.1
9.1
EPSS
10%
Percentile
95.6
In the wild
Unconfirmed
What it is

🚨 An authenticated command injection vulnerability in OPNsense could let a crafty admin run arbitrary commands with root privileges! 🔥 Imagine a restaurant where the chef can add whatever ingredients they want without anyone checking the order — if they decide to throw in something toxic, you’re in for a disaster. That's what happens here when the span POST parameter is used without proper checks. An attacker could exploit this vulnerability to gain remote code execution, potentially taking complete control of the system or moving laterally across the network. The stakes are extremely high—this could mean altering configurations, stealing sensitive data, or even completely compromising your network's integrity!

Put simply

Imagine a restaurant where the chef can add whatever ingredients they want without anyone checking the order — if they decide to throw in something toxic, you’re in for a disaster. That's what happens here when the span POST parameter is used without proper checks. This vulnerability allows the concatenation of unsanitized input from the span POST parameter into system-level commands, enabling execution of arbitrary shell commands with the privileges of the web service, typically root. This oversight arises from inadequate input validation and improper handling of user-provided data.

What to do

An attacker could exploit this vulnerability to gain remote code execution, potentially taking complete control of the system or moving laterally across the network. The stakes are extremely high—this could mean altering configurations, stealing sensitive data, or even completely compromising your network's integrity! To mitigate this risk, immediately update OPNsense to version 25.1.8 or later. Additionally, review command invocation practices to ensure proper input validation and implement stringent access controls for admin privileges. You've got this! Implement these steps and you'll secure your system in no time. 🛡️

The record
Technical detail
CVSS v3.1
9.1 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.10114 · 95.6th percentile
Weakness
CWE-78 · Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
Published
2025-08-27T00:00Z
EPSS history
Timeline
  • 27 AUG 00:00Z
    OPNsense before 25.1.8 contains an authenticated command injection vulnerability in its Bridge Interface Edit endpoint (interfaces_bridge_edit.php)
    cvelistv5