Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-63442 Overview
CVE-2026-63442 is a log injection vulnerability [CWE-117] in OPNsense, a FreeBSD-based firewall and routing platform. The unauthenticated WebGUI login field usernamefld accepts carriage-return and line-feed (CRLF) characters that survive LOG_AUTH processing. The injected content flows through syslog-ng-lockout.conf into the lockout_handler script, which parses forged lines as separate authentication events. An attacker on an adjacent network can forge failure events to block arbitrary IP addresses or forge accepted events to reset their own brute-force counter. The issue is fixed in version 26.1.11.
Critical Impact
An unauthenticated attacker can inject syslog entries to add administrator, DNS, gateway, or monitoring IP addresses to the sshlockout PF table, killing active states and bypassing password-guessing lockout.
Affected Products
- OPNsense firewall and routing platform prior to version 26.1.11
- Deployments using the default syslog-ng-lockout.conf configuration
- Systems where the WebGUI login page is reachable over the network
Discovery Timeline
- 2026-10-15 - CVE-2026-63442 published to the National Vulnerability Database (NVD)
- 2026-10-16 - Last updated in NVD database
Technical Details for CVE-2026-63442
Vulnerability Analysis
The vulnerability is a textbook CRLF log injection flaw [CWE-117]. The usernamefld parameter on the OPNsense WebGUI login page accepts raw \r and \n characters. When a failed login occurs, the username is written through the FreeBSD LOG_AUTH facility. The syslog-ng configuration template syslog-ng-lockout.conf forwarded the message unchanged to the program destination feeding lockout_handler.
The downstream Python consumer reads from the pipe with readline(), meaning any attacker-injected newline terminates a record and begins a new one. The handler then applies loose IP matching to the forged line and feeds the result into packet filter (PF) table manipulation. Because authentication is not required to reach the login form, the attack surface is pre-auth.
Root Cause
Two defects combine to produce the issue. First, the syslog pipeline did not sanitize CRLF sequences before program-destination delivery. Second, the lockout_handler script selected the first syntactically valid IP token from a line, allowing attackers to prepend a chosen address to a forged record. The patch strips newlines inside syslog-ng and changes IP selection to the last matching token on the line.
Attack Vector
An attacker with network access to the WebGUI submits a crafted username containing CRLF sequences followed by fabricated syslog content and a target IP. The forged line is parsed as a legitimate authentication event. Submitting fake failure records causes the target IP to be added to the sshlockout PF table and its active states to be killed. Submitting fake accepted records resets the attacker's lockout counter, enabling continued brute-force attempts.
// Patch: src/opnsense/scripts/syslog/lockout_handler
// Collect the LAST valid IP on the line instead of the first,
// preventing an attacker-prepended address from being chosen.
ip = None
for part in line.split():
+ # collect last IP address from line (which matches from XXXX)
if re.match('^[0-9.]+$', part) or re.match('^[a-fA-F0-9:]+$', part):
try:
ip = ipaddress.ip_address(part)
- break
except ValueError:
ip = None
if ip:
Source: GitHub Commit 8bdaad9
// Patch: src/opnsense/service/templates/OPNsense/Syslog/syslog-ng-lockout.conf
// Add a rewrite rule that strips CR/LF from MESSAGE before
// forwarding to the lockout_handler program destination.
program("/usr/local/opnsense/scripts/syslog/lockout_handler");
};
+rewrite r_lo_strip_newlines {
+ subst("\r?\n", " ", value("MESSAGE"), type("pcre"), flags("global"));
+};
+
log {
source(s_all);
+ rewrite(r_lo_strip_newlines);
filter(f_local_lockout_auth);
destination(d_local_lockout_auth);
};
Source: GitHub Commit c930ab5
Detect Identity Attacks the Moment Authentication Fails
Singularity™ Identity surfaces credential misuse, lateral movement, and privilege escalation in real time, so you can contain the breach before it spreads.
Stop Identity AttacksDetection Methods for CVE-2026-63442
Indicators of Compromise
- Entries in /var/log/auth.log containing embedded CR or LF byte sequences within the usernamefld value.
- Unexpected additions to the sshlockout PF table for IP addresses belonging to administrators, DNS resolvers, gateways, or monitoring systems.
- Sudden termination of active PF states for infrastructure addresses with no corresponding operator action.
- Repeated login failures from a single source IP where the lockout counter never trips.
Detection Strategies
- Inspect WebGUI POST bodies for %0d, %0a, or raw control characters in the usernamefld field.
- Correlate authentication log events against PF table modifications to identify forged-source entries.
- Baseline the sshlockout table membership and alert on additions of trusted management IPs.
Monitoring Recommendations
- Forward OPNsense authentication and PF logs to a central analytics platform for cross-source correlation.
- Alert on any lockout_handler action that blocks an address matching the management, DNS, or monitoring CIDR allowlist.
- Monitor WebGUI access logs for login attempts originating from unexpected adjacent networks.
How to Mitigate CVE-2026-63442
Immediate Actions Required
- Upgrade OPNsense to version 26.1.11 or later, which contains both the syslog-ng rewrite rule and the corrected IP parsing logic.
- Restrict WebGUI access to a dedicated management network or VPN until the patch is applied.
- Audit the current sshlockout PF table and remove any entries for trusted infrastructure addresses.
Patch Information
The fix is delivered in OPNsense 26.1.11. Two commits implement the remediation: commit 8bdaad9 and commit c930ab5 modify lockout_handler to select the last valid IP on a line, and add the r_lo_strip_newlines rewrite rule in syslog-ng-lockout.conf to replace \r?\n sequences with spaces before program-destination delivery. See GHSA-2v2x-m4j7-76pv for the full advisory.
Workarounds
- Place the WebGUI behind a reverse proxy or WAF rule that rejects requests containing CR or LF bytes in POST parameters.
- Limit WebGUI listener binding to a management interface not reachable from untrusted networks.
- Temporarily disable the lockout handler if operational risk is acceptable, understanding that this removes brute-force protection.
# Example reverse-proxy filter: drop login requests containing CRLF in usernamefld
# nginx location block fronting the OPNsense WebGUI
location = /index.php {
if ($request_body ~* "usernamefld=[^&]*(%0d|%0a|\r|\n)") {
return 400;
}
proxy_pass https://opnsense-backend;
}
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

