All vulnerabilities

Servers and applications

GHSA-jjm2-jg4p-3v9q

Audit log injection via login username in auth_log()

Severity
Medium 5.3
Published
15 Sept 2026
Last changed
15 Sept 2026
Added to UpHeron
3 Nov 2026
Fixed in
1
Weakness
CWE-117
Attack
Over the network · No login needed · No user action needed
Attacker can
Change some data
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
Sources
Project advisories (GitHub)

Description

Summary

An unauthenticated attacker can write arbitrary lines into the OPNsense audit log by putting a newline (0x0A) in the login username field. The web GUI auth handler hands $_POST['usernamefld'] straight to auth_log() with no control-character filtering, and a LF byte in the syslog message acts as a record separator, so the output splits into log entries the attacker controls. No credentials needed. The only requirement is being able to reach the login page.

Details

Vulnerable file: src/etc/inc/auth.inc Vulnerable function: auth_log()

Data flow:

Vulnerable code (before patch):

How the injection works:

Auth failures go through two separate log sinks at once. The first is auth_log() -> log_msg() -> syslog(). The second is a set of direct syslog() calls in AuthenticationFactory::authenticate() that never touch auth_log(). Both drop the raw username into the message, so fixing only one still leaves the other open.

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

Affected software

SoftwareAffected versions
OPNsenseServers and applications · github:opnsense/core
  • Every version before 1

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