{"id":"CVE-2026-57154","kind":"vulnerability","aliases":["CVE-2026-57154"],"related":[],"title":"OPNsense: line injection in settings lets delegated users alter privileged configs","description":"OPNsense is a FreeBSD based firewall and routing platform. Prior to 26.1.11 and 26.4.1p1, authenticated Web UI or API users with delegated access to affected settings can submit CR or LF characters in fields expected to contain one line, causing generated privileged service configuration files to contain additional attacker-controlled directives or policy lines. The confirmed Dnsmasq path includes dhcp_boot.filename, dhcp_boot.servername, dhcp_boot.address, and dhcp_options.value, which are rendered into /usr/local/etc/dnsmasq.conf; access through page-services-dnsforwarder covers api/dnsmasq/*. Related affected fields span OpenVPN, DHCPv6, Unbound, IPsec, NTP, PPP or MPD, Monit, firewall, sudo, WebGUI, and System General configuration. Applying or restarting the affected service can alter behavior beyond the delegated setting, create service-side files, cross RBAC boundaries, or cause denial of service. Line injection through Monit mail password and adjacent Monit text fields into /usr/local/etc/monitrc demonstrated root command execution. Arbitrary shell command execution was not confirmed for the Dnsmasq path. This issue is fixed in versions 26.1.11 and 26.4.1p1.","summary":"Authenticated Web UI or API users with delegated access can submit carriage return or line feed characters in single-line fields, which get written into privileged service configuration files. An attacker can add directives that change service behavior beyond their delegated scope, and the Monit path was shown to allow root command execution.","severity":"high","cvss":8.1,"epss":null,"exploited":false,"exploited_at":null,"products":[],"ecosystems":[],"tags":["dnsmasq","firewall","freebsd","monit","opnsense","other"],"not_affected_if":["fixed-version","no-delegated-users"],"how_to_check":"- Check the installed OPNsense version in the Web UI dashboard or with `opnsense-version`, and compare it with the fixed versions.\n- Review which users hold delegated access to services such as Dnsmasq, Monit, OpenVPN or the firewall settings.","fix":"- OPNsense: move to `26.1.11` or `26.4.1p1`, the versions the sources state fix the issue.","status":"open","published_at":"2026-11-03T19:18:06+00:00","first_seen_at":"2026-11-03T19:44:53+00:00","triaged_at":"2026-11-03T19:45:29+00:00","updated_at":"2026-11-03T19:45:29+00:00","category":"other","confidence":0.8,"triage":{"at":"2026-11-03T19:45:29Z","model":"claude-haiku-5-5","output":{"fix":"- OPNsense: move to `26.1.11` or `26.4.1p1`, the versions the sources state fix the issue.","reach":"network","title":"OPNsense: line injection in settings lets delegated users alter privileged configs","impact":"high","summary":"Authenticated Web UI or API users with delegated access can submit carriage return or line feed characters in single-line fields, which get written into privileged service configuration files. An attacker can add directives that change service behavior beyond their delegated scope, and the Monit path was shown to allow root command execution.","audience":"businesses","category":"other","nicknames":[],"who_cares":["opnsense","firewall","freebsd","dnsmasq","monit"],"confidence":0.8,"fix_status":"available","needs_auth":"yes","worst_case":"Authenticated delegated user gains root command execution through Monit config.","analyst_note":"","how_to_check":"- Check the installed OPNsense version in the Web UI dashboard or with `opnsense-version`, and compare it with the fixed versions.\n- Review which users hold delegated access to services such as Dnsmasq, Monit, OpenVPN or the firewall settings.","plain_action":"","needs_analyst":false,"not_affected_if":["fixed-version","no-delegated-users"],"who_is_affected":"Any OPNsense firewall before 26.1.11 or 26.4.1p1 where some users hold delegated Web UI or API access to service settings is exposed. Only users who already have an account with that delegated access can trigger it, so instances with only administrator accounts are at lower risk. Managed or appliance setups where no one has delegated access can skip it.","user_interaction":"no","needs_special_setup":"no","severity_if_unknown":"high"},"cost_usd":0.000746,"input_tokens":4497,"output_tokens":592,"severity_before":"high"},"analyst_status":null,"analyst_note":null,"search":"'-2026':13A,16A '-57154':14A,17A '/usr/local/etc/dnsmasq.conf':147C '/usr/local/etc/monitrc':214C '26.1.11':88C,236C '26.4.1':90C,238C 'access':31B,100C,148C 'add':56B 'addit':125C 'adjac':209C 'affect':102C,157C,180C 'allow':73B 'alter':9A,183C 'api':27B,96C 'api/dnsmasq':155C 'appli':176C 'arbitrari':219C 'attack':54B,127C 'attacker-control':126C 'authent':23B,92C 'base':81C 'behavior':61B,184C 'beyond':62B,185C 'boundari':196C 'carriag':34B 'caus':117C,198C 'chang':59B 'charact':39B,109C 'command':75B,217C,221C 'config':11A 'configur':51B,121C,175C 'confirm':134C,225C 'contain':114C,124C 'control':128C 'cover':154C 'cr':106C 'creat':189C 'cross':194C 'cve':12A,15A 'deleg':7A,30B,64B,99C,187C 'demonstr':215C 'denial':199C 'dhcp_boot.address':140C 'dhcp_boot.filename':138C 'dhcp_boot.servername':139C 'dhcp_options.value':142C 'dhcpv6':161C 'direct':57B,129C 'dnsforward':153C 'dnsmasq':18B,135C,228C 'execut':76B,218C,222C 'expect':112C 'feed':38B 'field':44B,111C,158C,212C 'file':52B,122C,193C 'firewal':19B,82C,169C 'fix':233C 'freebsd':20B,80C 'general':174C 'generat':118C 'get':46B 'includ':137C 'inject':3A,203C 'ipsec':163C 'issu':231C 'let':6A 'lf':108C 'line':2A,37B,43B,116C,132C,202C 'mail':206C 'monit':21B,68B,168C,205C,210C 'mpd':167C 'ntp':164C 'one':115C 'openvpn':160C 'opnsens':1A,22B,77C 'p1':91C,239C 'page':151C 'page-services-dnsforward':150C 'password':207C 'path':69B,136C,229C 'platform':85C 'polici':131C 'ppp':165C 'prior':86C 'privileg':10A,49B,119C 'rbac':195C 'relat':156C 'render':145C 'restart':178C 'return':35B 'root':74B,216C 'rout':84C 'scope':65B 'servic':50B,60B,120C,152C,181C,191C,201C 'service-sid':190C 'set':5A,103C,188C 'shell':220C 'shown':71B 'side':192C 'singl':42B 'single-lin':41B 'span':159C 'submit':33B,105C 'sudo':170C 'system':173C 'text':211C 'ui':25B,94C 'unbound':162C 'user':8A,28B,97C 'version':235C 'web':24B,93C 'webgui':171C 'written':47B","nicknames":[],"mitigations":[],"who_affected":"Any OPNsense firewall before 26.1.11 or 26.4.1p1 where some users hold delegated Web UI or API access to service settings is exposed. Only users who already have an account with that delegated access can trigger it, so instances with only administrator accounts are at lower risk. Managed or appliance setups where no one has delegated access can skip it.","tier":"B","verified":{},"analyst_revisit_at":null,"fix_status":"available","audience":"businesses","plain_action":null,"pkeys":[],"ptokens":[],"labels":["dnsmasq","firewall","freebsd","high","monit","opnsense","other"],"campaign_type":null,"first_public_at":"2026-07-01T13:29:26+00:00","kev":null,"cvss_vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H","cvss_by":"security-advisories@github.com","poc_count":0,"sources":[{"source":"nvd","external_id":"CVE-2026-57154","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-57154","severity":null,"published_at":"2026-11-03T19:18:06+00:00","modified_at":"2026-11-03T19:18:06+00:00","first_seen_at":"2026-11-03T19:44:53+00:00","fetched_at":"2026-11-03T19:44:53+00:00","note":null}],"documents":[{"id":60201,"url":"https://github.com/opnsense/core/commit/52b18e67a9ec4596a64ac3a53f3aa102ced55293","title":"Patch: github.com","kind":"other","source":"nvd","publisher":"vendor","text":null,"published_at":null,"relation":"fix","confidence":null,"note":"Patch: github.com"},{"id":60202,"url":"https://github.com/opnsense/core/commit/6c3be9a11699879fe50aea1c30e50de5864601d7","title":"Patch: github.com","kind":"other","source":"nvd","publisher":"vendor","text":null,"published_at":null,"relation":"fix","confidence":null,"note":"Patch: github.com"},{"id":49606,"url":"https://github.com/opnsense/core/security/advisories/GHSA-fq94-cxvc-9r7w","title":"Vendor advisory: github.com","kind":"vendor","source":"nvd","publisher":"vendor","text":null,"published_at":"2026-07-01T13:29:26+00:00","relation":"advisory","confidence":null,"note":"Vendor advisory: github.com"}],"notice":"Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai"}