Regression #16863
openRADIUS authentication fails when attribute contains an invalid ACL
0%
Description
When I attempt to authenticate to my OpenVPN server configured to use a RADIUS backend, the authentication succeeds at the RADIUS level, but the pfSense openvpn.auth-user.php background script crashes and my VPN does not form. I observe that the client successfully passes the TLS handshake but hangs on PUSH_REQUEST until it times out. The OpenVPN client reports a user authentication error the the last message I see in the pfSense logs about OpenVPN is Peer Connection Initiated with [AF_INET]. This had no issues in pfSense version 25 and started when I upgraded to 26.03.1
Logs:
Crash report begins. Anonymous machine information:
arm
16.0-CURRENT
FreeBSD 16.0-CURRENT #13 plus-RELENG_26_03_1-n256546-1d1bfd578383: Wed May 20 15:20:32 UTC 2026 root@pfsense-build-release-aarch64-2.eng.atx.netgate.com:/var/jenkins/workspace/pfSense-Plus-snapshots-26_03_1-main/obj/armv7/wbqsxpHt/var/jenkins/workspac
Crash report details:
PHP Errors:
[30-May-2026 10:55:00 US/Eastern] PHP Fatal error: Uncaught ArgumentCountError: 3 arguments are required, 2 given in /etc/inc/util.inc:2768
Stack trace:
#0 /etc/inc/util.inc(2768): sprintf()
#1 /etc/inc/util.inc(5058): localize_text()
#2 /etc/inc/util.inc(5277): cisco_extract_index()
#3 /etc/inc/openvpn.attributes.php(30): parse_cisco_acl()
#4 /etc/inc/openvpn.auth-user.php(121): include_once('/etc/inc/openvp...')
#5 {main}
thrown in /etc/inc/util.inc on line 2768
[30-May-2026 11:06:18 US/Eastern] PHP Fatal error: Uncaught ArgumentCountError: 3 arguments are required, 2 given in /etc/inc/util.inc:2768
Stack trace:
#0 /etc/inc/util.inc(2768): sprintf()
#1 /etc/inc/util.inc(5058): localize_text()
#2 /etc/inc/util.inc(5277): cisco_extract_index()
#3 /etc/inc/openvpn.attributes.php(30): parse_cisco_acl()
#4 /etc/inc/openvpn.auth-user.php(121): include_once('/etc/inc/openvp...')
#5 {main}
thrown in /etc/inc/util.inc on line 2768
[30-May-2026 11:13:15 US/Eastern] PHP Fatal error: Uncaught ArgumentCountError: 3 arguments are required, 2 given in /etc/inc/util.inc:2768
Stack trace:
#0 /etc/inc/util.inc(2768): sprintf()
#1 /etc/inc/util.inc(5058): localize_text()
#2 /etc/inc/util.inc(5277): cisco_extract_index()
#3 /etc/inc/openvpn.attributes.php(30): parse_cisco_acl()
#4 /etc/inc/openvpn.auth-user.php(121): include_once('/etc/inc/openvp...')
#5 {main}
thrown in /etc/inc/util.inc on line 2768
No FreeBSD crash data found.
Updated by Marcos M 3 days ago
- Status changed from New to Feedback
- Assignee set to Marcos M
- Target version set to 26.07
- Affected Plus Version changed from 26.03.1 to 26.03
- Affected Architecture All added
- Affected Architecture deleted (
SG-3100)
The following patch fixes the PHP errors, though they aren't the root of the issue. An ACL rule from the RADIUS attribute is not formatted correctly which leads to the problematic code path when the rule error is logged. Show
Updated by Marcos M 3 days ago
- Tracker changed from Bug to Regression
- Subject changed from util.inc: Uncaught ArgumentCountError in parse_cisco_acl during OpenVPN RADIUS authentication to RADIUS authentication fails when attribute contains an invalid ACL
Applied with a75a241b8ce816347a5ce4e3d10de6d70579a3f2.