All vulnerabilities

Servers and applications

GHSA-rw63-4hw9-p4v7

OpenVPN Client Export Utility users can export private keys for unlisted certificate refs

Severity
Medium 5.9
Published
21 Jul 2026
Last changed
21 Jul 2026
Added to UpHeron
3 Nov 2026
Fixed in
26.7.1
Weakness
Authorization bypass through a user-controlled key (IDOR) (CWE-639)
Attack
Over the network · Only under certain conditions · Needs a user account · No user action needed
Attacker can
Read data · Change some data
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:L/A:N
Sources
Project advisories (GitHub)

Description

OPNsense Core's OpenVPN Client Export API accepts a route-supplied certref in the download endpoint without verifying that the certificate is present in the selected OpenVPN server's account/certificate allowlist. An authenticated user with only the VPN: OpenVPN: Client Export Utility permission can request an unlisted certificate reference and receive an exported configuration containing the private key.

The affected module is OPNsense\OpenVPN\Api\ExportController. accountsAction($vpnid) looks up the selected OpenVPN server and lists only certificate references where cert->caref == server['caref']; this is the account/certificate list exposed to the frontend. downloadAction($vpnid, $certref) instead accepts certref directly from the URL route, calls OPNsense\Trust\Store::getCertificate($certref), and copies the returned crt and prv values into $config['client_crt'] and $config['client_prv'].

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 26.7.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