Skip to main content

OPNsense CVE-2026-53581

CRITICAL
Path Traversal (CWE-22)
2026-09-08 security-advisories@github.com
9.0
CVSS 3.1 · Vendor: github
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain admin access to OPNsense config GUI
  2. Delivery
    Open NTP GPS/PPS serial-port setting
  3. Exploit
    Inject path-traversal value
  4. Execution
    Apply config triggers root-owned write
  5. Persist
    Overwrite arbitrary file as root
  6. Impact
    Achieve code execution or system disruption

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK

2 techniques across 2 tactics: Discovery, Collection

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Requires an authenticated session with access to the OPNsense NTP configuration module (administrative/operator-level GUI access - consistent with CVSS PR:H), and the specific input is the GPS or PPS serial-port parameter, which the attacker sets to a directory-traversal value. Limiting factors: it is not exploitable pre-authentication; the attacker must reach the web configuration interface, which is normally restricted to management networks; only affects opnsense/core before 26.1.9 and BE/opnsense/core before 26.4_20. No user interaction by a victim is required.

Impact

The CVSS 3.1 vector (AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:L/A:H, 9.0) is internally consistent with the description: network-reachable web UI, low complexity, but PR:H because the attacker must already hold access to the NTP configuration - i.e. an authenticated administrative/operator session, not an anonymous remote attacker. This is the key limiter: it is not a pre-auth internet-facing RCE but a privilege-to-root escalation and integrity/availability compromise for someone who already has config access. Scope is Changed (S:C) because a root-level arbitrary write escapes the web-app's authorization context to affect the whole OS. No EPSS, KEV, or POC signals were provided, so real-world exploitation pressure appears low/targeted rather than mass-scanned; the primary risk is a malicious or compromised admin account, or chaining from another auth bypass. The provided I:L arguably understates impact - root arbitrary file overwrite typically enables full integrity compromise and code execution.

Exploit ScenarioDerived

An attacker who has obtained OPNsense administrative/config access (e.g. via phished credentials, a shared operator account, or a chained auth flaw) opens the NTP configuration and sets the GPS or PPS serial-port parameter to a traversal payload. When the configuration is applied, the system writes attacker-controlled content as root to a sensitive file (e.g. a cron job, rc script, or shell profile), yielding root-level code execution or device disruption. No public exploit code was identified at time of analysis.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
No patch listed yet 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Sep 08, 2026

Arbitrary file write as root in OPNsense's NTP configuration module (opnsense/core before 26.1.9 and BE/opnsense/core before 26.4_20) lets an administrator-level attacker escape the intended directory via a crafted GPS or PPS serial-port parameter and overwrite any file on the FreeBSD-based firewall. Because writes occur as root, this path traversal is a strong primitive for full device compromise. Fixes are released; there is no public exploit identified at time of analysis.

RemediationAI

Vendor-released patch: upgrade opnsense/core to 26.1.9 or later, and BE/opnsense/core to 26.4_20 or later, per GHSA-872g-g543-j37m (https://github.com/opnsense/core/security/advisories/GHSA-872g-g543-j37m). Until patched, restrict access to the web configuration/GUI to trusted management networks only and enforce least privilege so that non-trusted operators cannot reach the NTP/GPS/PPS configuration; audit accounts with configuration privileges. Where GPS/PPS time sources are not used, avoid configuring those serial-port parameters, which removes the attacker-reachable input path at the cost of losing GPS/PPS time discipline. These controls reduce exposure but do not eliminate the flaw, so patching remains the primary fix.

Affected ProductsAI

OPNsense (opnsense/core) prior to version 26.1.9, and the business edition BE/opnsense/core prior to version 26.4_20, on the FreeBSD-based firewall platform. No CPE was supplied in the input. The vendor advisory is GitHub Security Advisory GHSA-872g-g543-j37m (https://github.com/opnsense/core/security/advisories/GHSA-872g-g543-j37m).

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

OPNsense is a FreeBSD-based open-source firewall/router platform whose configuration backend runs privileged PHP/shell logic. The flaw is a classic CWE-22 path traversal: the NTP module takes the GPS or PPS serial-port device parameter from the web configuration and uses it to construct a filesystem write path without sanitizing directory-traversal sequences. Since the NTP daemon configuration is applied by root, the attacker-controlled traversal payload causes root-owned writes anywhere on the filesystem, converting a bounded configuration write into an arbitrary-file overwrite primitive.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (github) PRIMARY 9.0 CRITICAL
AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:L/A:H
vuln.today AI 9.1 CRITICAL

Network-reachable web UI with low complexity but requires admin config access (PR:H); root arbitrary file write escapes app scope (S:C) and enables full integrity/availability and code-exec-driven confidentiality impact.

3.1 AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H

Primary rating from Vendor (github).

CVSS VectorVendor: github

Attack Vector
Network
Attack Complexity
Low
Privileges Required
High
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
Low
Availability
High

DescriptionCVE.org

OPNsense is a FreeBSD based firewall and routing platform. Prior to version 26.1.9 of opnsense/core and version 26.4_20 of BE/opnsense/core, a path traversal vulnerability in the NTP configuration module allows an attacker to overwrite arbitrary files on the system as the root user. By manipulating the GPS or PPS serial port parameter, an attacker with access to the NTP configuration can escape the intended directory and force the system to write user-controlled data to any file on the filesystem. Version 26.1.9 of opnsense/core and version 26.4_20 of BE/opnsense/core patch the issue.

Technical POC Analysis

CWE-22: Improper Limitation of a Pathname to a Restricted Directory, with CWE-73 also cited.

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Executive ViewAI

Why It Matters

OPNsense firewall administrators can exploit a path traversal flaw in the NTP configuration module to write arbitrary files as root, enabling complete device takeover. This critical vulnerability threatens organizations running versions before 26.1.9 and 26.4_20, as administrator-level attackers can bypass filesystem protections to compromise core firewall infrastructure. Immediate patching is essential to prevent insider threats and configuration tampering at the firewall perimeter.

Business Impact: Severe
Compensating Controls

Vendor-released patch: opnsense/core 26.1.9 and BE/opnsense/core 26.4_20. Until patching is possible, disable or restrict access to the NTP configuration module; audit administrative credentials and enforce principle of least privilege for firewall administration.

Threat Intelligence Overview

EPSS Score
0.3%
Top 75% exploitable
Prevalence
Medium
widely used open-source firewall, but self-hosted niche vs. ubiquitous
Data Quality
5 sources
Confidence: Medium
NVD CVE.org EPSS Vulnrichment GitHub

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.3%
Patch available No
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
Very High
Technical Impact
Partial

Priority Score

45
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +45
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy