CVE and update status of the FreeBSD ports tree3,296 unaddressed CVEs in 671 portsAll times are CET
Port details

security/strongswan 6.1.0

Open Source IKEv2 IPsec-based VPN solution

Port info

Maintainer
rcm@FreeBSD.org
Packages
latest: 6.1.0
Upstream
up to date
Last update
to 6.1.0 · 5a7f75878c
Quarterly
2026Q4: 6.1.0
WWW
https://www.strongswan.org
Links
cgit · VuXML · Report wrong data

Install

Package
# pkg install strongswan
installs 6.1.0 from latest; from quarterly (2026Q4) 6.1.0
Port
# cd /usr/ports/security/strongswan && make install clean
# make -C /usr/ports/security/strongswan config  # change options first
Size
897 KiB download · 2.7 MiB installed
Depends on
ftp/curl 8.23.0
License
GPLv2
Options
10 of 36 on in the package: BUILTIN CURL GCM IKEV1 KDF KERNELLIBIPSEC ML PKI SWANCTL VICI
Show the 26 options that are off
CTR DHCP EAPAKA3GPP2 EAPDYNAMIC EAPRADIUS EAPSIMFILE FARP FIPS_PRF IPSECKEY LDAP LIBC LOADTESTER MEDIATION MYSQL PKCS11 PYTHON SMP SQLITE STROKE TESTVECTOR TPM TSS2 UNBOUND UNITY VSTR XAUTH
pkg-message
Shown after installing
The default strongSwan configuration interface have been updated to vici since version 5.9.2_1.
To use the stroke interface by default either compile the port without the vici option or
set 'strongswan_interface="stroke"' in your rc.conf file.
Shown after upgrading
The default strongSwan configuration interface have been updated to vici.
To use the stroke interface by default either compile the port without the vici option or
set 'strongswan_interface="stroke"' in your rc.conf file.

Packages by version and architecture

latest

FreeBSD versionamd64aarch64i386
FreeBSD 166.1.06.1.0–
FreeBSD 156.1.06.1.0–
FreeBSD 146.1.06.1.06.1.0

quarterly (2026Q4)

FreeBSD versionamd64aarch64i386
FreeBSD 156.1.06.1.0–
FreeBSD 146.1.06.1.06.1.0

version as in the ports tree (latest) or the most common one (quarterly) · different version · ✗ not built · – no packages for this platform. Package sets that have not been rebuilt for 60 days are left out.

Unaddressed and VuXML only (0)

No unaddressed CVE and nothing reported by pkg audit for the packaged version 6.1.0.

Fixed (27)

Show 27 fixed
VuXML entries whose affected range the packaged version has left, plus CVEs from the last 90 days that this version is already past (fixed by update).
CVECVSSPublishedDescription
CVE-2026-781307.52026-09-11strongSwan 4.2.0 through 6.0.7 has a NULL pointer dereference in the x509 plugin's attribute certificate parser.
CVE-2026-781327.52026-09-11strongSwan 5.1.3 through 6.0.7 has an infinite loop in the x509 plugin's attribute certificate parser for ietfAttrSyntax.
CVE-2026-781337.52026-09-11libcharon in strongSwan 6.0.0 through 6.0.7 has a use-after-free in IKEv2 rekeying collision handling.
CVE-2026-781347.12026-09-11strongSwan 4.5.0 through 6.0.7 has Incorrect Access Control in the eap-ttls and eap-peap plugins because there can be a missing or mismatched inner EAP identity.
CVE-2026-781295.92026-09-11strongSwan 4.6.2 through 6.0.7 has an infinite loop in PKCS#5 decryption.
CVE-2026-781235.92026-09-11strongSwan 5.0.2 through 6.0.7 has an Expired Pointer Dereference in PKCS#7 parsing in the openssl plugin.
CVE-2026-781265.92026-09-11strongSwan 4.1.10 through 6.0.7 allows a NULL pointer dereference in the eap-aka plugin.
CVE-2026-781273.72026-09-11libcharon in strongSwan 4.1.2 through 6.0.7 has a missing release of memory after its effective lifetime in the IKE message parser.
CVE-2026-781313.72026-09-11strongSwan 4.2.0 through 6.0.7 has a missing release of memory after its effective lifetime in the x509 plugin's attribute certificate parser.
CVE-2026-781243.72026-09-11strongSwan 5.0.2 through 6.0.7 allows PKCS#7 certificate enumeration in the openssl plugin that leads to a lack of release of memory after its effective lifetime.

Problem reports (0) · open in Bugzilla, most recently changed first

None.

Commits (119)

Renato Botelho (garga) · 5.8.2
security/strongswan: Update to 5.8.2

PR:		242687
Approved by:	maintainer
Obtained from:	pfSense
Sponsored by:	Rubicon Communications, LLC (Netgate)
63290106b6
Renato Botelho (garga) · 5.8.1
Add a new option to enable PKCS11 plugin

PR:		240684
Approved by:	strongswan@Nanoteq.com (maintainer)
Obtained from:	pfSense
Sponsored by:	Rubicon Communications, LLC (Netgate)
c2e5505afa
Steve Wills (swills) · 5.8.1
security/strongswan: update to 5.8.1

PR:		240316
Submitted by:	Jose Luis Duran <jlduran@gmail.com>
Approved by:	strongswan@Nanoteq.com (maintainer)
b1c34a2767
Koichiro Iwao (meta) · 5.8.0
security/strongswan: Add support for the VIA Padlock plugin

PR:		239458
Submitted by:	Evgeny <mojolicious@yandex.com> (initial revision)
		strongswan@Nanoteq.com (maintainer, brushed-up revision)
Approved by:	strongswan@Nanoteq.com (maintainer)
c07f70692d
Koichiro Iwao (meta) · 5.8.0
Implement new virtual category: net-vpn for VPN related ports

based on discussion at ports@ [1]. As VPN softwares are put in different
physical category net and security. This is a little bit confusing. Let's
give them new virtual category net-vpn.

[1] https://lists.freebsd.org/pipermail/freebsd-ports/2019-April/115915.html

PR:		239395
Submitted by:	myself
Approved by:	portmgr (mat)
Differential Revision:	https://reviews.freebsd.org/D21174
222e095f2a
Renato Botelho (garga) · 5.8.0
security/strongswan: Update to 5.8.0

PR:		238173
Approved by:	maintainer
Obtained from:	pfSense
Sponsored by:	Rubicon Communications, LLC (Netgate)
d5a85043e3
Kurt Jaeger (pi) · 5.7.2_2
security/strongswan: add vici-based configuration for the rc script

The rc script is modified to allow both a legacy (ipsec.conf-based)
startup or a new (swanctl.conf-based) config. Default is the legacy.

The new setup is based on vici, the Versatile IKE Configuration Interface.

For more details, see:

https://wiki.strongswan.org/projects/strongswan/wiki/Vici

PR:		234648
Submitted by:	Jose Luis Duran <jlduran@gmail.com>
Reviewed by:	Sam Chen <sc.gear@one.caeon.com>
Approved by:	strongswan@Nanoteq.com (maintainer)
Differential Revision:	D19367
35f91bc9a3
Kurt Jaeger (pi) · 5.7.2_1
security/strongswan: add PAM to XAUTH

PR:		236218
Submitted by:	Franco Fichtner <franco@opnsense.org>
Approved by:	strongswan@Nanoteq.com (maintainer)
a17fd70e84
Steve Wills (swills) · 5.7.2_1
security/strongswan: Minor port improvements

- Follow the same patching logic for swanctl.conf as the other config
  files.
- Silence warning: $strongswan_enable not properly set.

PR:		235340
Submitted by:	Jose Luis Duran <jlduran@gmail.com>
Approved by:	strongswan@Nanoteq.com (maintainer)
1c226cc6ed
Steve Wills (swills) · 5.7.2
security/strongswan: update to version 5.7.2

PR:		234882
Submitted by:	Jose Luis Duran <jlduran@gmail.com>
Approved by:	strongswan@Nanoteq.com (maintainer)
f712c6381c
Renato Botelho (garga) · 5.7.1
security/strongswan: Update to 5.7.1

PR:		231862
Approved by:	maintainer
Obtained from:	pfSense
MFH:		2018Q4
Security:	CVE-2018-16151 CVE-2018-16152
Sponsored by:	Rubicon Communications, LLC (Netgate)
405927e1c4
Renato Botelho (garga) · 5.7.0
security/strongswan: Fix rc startup script to support rc.conf settings like _nice, _fib

Do not bump version since I'll commit the upgrade to 5.7.1 just after it

PR:		211108
Submitted by:	Dmitry Wagin <dmitry.wagin@ya.ru>
Approved by:	maintainer
Sponsored by:	Rubicon Communications, LLC (Netgate)
574f70ef77
Renato Botelho (garga) · 5.7.0
- Update security/strongswan to 5.7.0 - While here, silence portlint warning renaming option IKEv1 to IKEV1

PR:		231720
Approved by:	maintainer
Obtained from:	pfSense
Sponsored by:	Rubicon Communications, LLC (Netgate)
531be1c7b6
Kirill Ponomarev (krion) · 5.6.3
Update to 5.6.3

Fixes:
 - Denial-of-Service Vulnerability in the IKEv2 key derivation
   (CVE-2018-10811)
 - Denial-of-Service Vulnerability in the stroke plugin
   (CVE-2018-5388)
 - Crash on FreeBSD that was present in 5.6.2
 - The kernel-pfkey plugin optionally installs routes via internal
   interface (one with an IP in the local traffic selector). On
   FreeBSD, enabling this selects the correct source IP when sending
   packets from the gateway itself.

PR:		228631
Submitted by:	maintainer
9ccf25ffb8
Yuri Victorovich (yuri) · 5.6.2_1
security/strongswan: Fix crash in public key authentication with 5.6.2

While here, added LICENSE_FILE.

PR:		226404
Submitted by:	strongswan@Nanoteq.com (maintainer)
Approved by:	tcberner (mentor, implicit)
f5b4b6fb0e
Renato Botelho (garga) · 5.6.2
- Update security/strongswan to 5.6.2 [1] - Enable CURL option by default [2]

PR:		226043 [1], 220488 [2]
Submitted by:	strongswan@Nanoteq.com (maintainer) [1]
		karl@denninger.net [2]
Approved by:	maintainer [2]
MFH:		2018Q1
Security:	CVE-2018-6459
Sponsored by:	Rubicon Communications, LLC (Netgate)
b3ff476a60
Mathieu Arnold (mat) · 5.6.0
Remove USES=execinfo.

PR:		220271
Submitted by:	mat (review), Yasuhiro KIMURA (PR)
Sponsored by:	Absolight
Differential Revision:	https://reviews.freebsd.org/D11488
3fcd0e41de
Kurt Jaeger (pi) · 5.6.0
security/strongswan: update 5.5.3 -> 5.6.0

- the gmp plugin responsible for CVE-2017-11185 is not enabled
  in the FreeBSD build

PR:		221716
Relnotes:	https://wiki.strongswan.org/versions/66
Reported by:	i.dani@outlook.com
Approved by:	strongswan@nanoteq.com (maintainer)
66ea0a1c94
Olivier Cochard (olivier) · 5.5.3
Update strongswan to 5.5.3

PR:		220823
Submitted by:	strongswan@Nanoteq.com (maintainer)
Reported by:	i.dani@outlook.com
51bb85d963
Olivier Cochard (olivier) · 5.5.2_1
Add option for enabling mediation feature (like STUN for IPSec peers)

Approved by:	strongswan@nanoteq.com (maintainer)
Sponsored by:	Orange
7d74e337ec
Renato Botelho (garga) · 5.5.2
Update security/strongswan to 5.5.2

PR:		218430
Approved by:	maintainer
Sponsored by:	Rubicon Communications (Netgate)
cc6418d4b8
Martin Wilke (miwi) · 5.5.1_1
- Chase ldns shlip bump

PR:		217495
6d14406a13
Renato Botelho (garga) · 5.5.1
Update security/strongswan to 5.5.1

PR:		213844
Approved by:	strongswan@Nanoteq.com (maintainer)
Obtained from:	pfSense
Sponsored by:	Rubicon Communications (Netgate)
c1ddb127a2
John Marino (marino) · 5.5.0
security/strongswan: Fix build with LibreSSL

Approved by:	SSL blanket
d2849d0cce
Renato Botelho (garga) · 5.5.0
Update security/strongswan to 5.5.0

PR:		211095
Submitted by:	strongswan@Nanoteq.com (maintainer)
6651f71c86
Jason Unovitch (junovitch) · 5.4.0
security/strongswan: unbreak FreeBSD 9 builds

- Add patch to include sys/endian.h header

PR:		208446
Submitted by:	strongswan@Nanoteq.com (maintainer)
MFH:		2016Q2 (build fix blanket)
6a2558d8a8
Mathieu Arnold (mat) · 5.4.0
Remove ${PORTSDIR}/ from dependencies, categories r, s, t, and u.

With hat:	portmgr
Sponsored by:	Absolight
597afc47ba
Renato Botelho (garga) · 5.4.0
Update security/strongswan to 5.4.0

PR:		208219
Approved by:	swan@nanoteq.com (maintainer)
Obtained from:	pfSense
Sponsored by:	Rubicon Communications (Netgate)
54774528b6
Olli Hauer (ohauer) · 5.3.5_4
- bump PORTREVISION on ports depending on unbound

PR:		207948
Submitted by:	jaap@NLnetLabs.nl (maintainer)
98bbb468b4
Jason Unovitch (junovitch) · 5.3.5_3
security/strongswan: enable options to increase usefulness of default pkg

- Enable PKI, SWANCTL, and VICI options (no external dependencies)
- Document IMPLIES dependency on VICI for SWANCTL; mention in SWANCTL_DESC
- Bump PORTREVISION

PR:		205438
Reported by:	Nick B <nicblais@clkroot.net>
Submitted by:	strongswan@Nanoteq.com (maintainer)
4afaf01c5f
Erwin Lansing (erwin) · 5.3.5_2
- Update unbound to 1.5.7 - Bump PORTREVISIOn on dependent ports

Some Upgrade Notes:

This release fixes a validation failure for nodata with wildcards and
emptynonterminals. Fixes OpenSSL Library compability. Fixes correct
response for malformed EDNS queries. For crypto in libunbound there is
libnettle support.

Qname minimisation is implemented. Use qname-minimisation: yes to
enable it. This version sends the full query name when an error is
found for intermediate names. It should therefore not fail for names
on nonconformant servers. It combines well with
harden-below-nxdomain: yes because those nxdomains are probed by the
qname minimisation, and that will both stop privacy sensitive traffic
and reduce nonsense traffic to authority servers. So consider
enabling both. In this implementation IPv6 reverse lookups add
several labels per increment, because otherwise those lookups would be
very slow. [ Reference
https://tools.ietf.org/html/draft-ietf-dnsop-qname-minimisation-08 ]

More details at <http://unbound.net>

PR:		206347
Submitted by:	Jaap Akkerhuis <jaap@NLnetLabs.nl>
Approved by:	maintainer timeout
Sponsored by:	DK Hostmaster A/S
d140eabacb
Renato Botelho (garga) · 5.3.5_1
Bump PORTREVISION to help users with custom OPTIONS to get the fix committed in r402880, as suggested by AMDmi3
a0edc3c586
Renato Botelho (garga) · 5.3.5
Add @sample to gcm.conf missed when I introduced it. No bump on PORTREVISION since GCM is disabled by default

Submitted by:	Jose Luis Duran
Obtained from:	https://github.com/pfsense/FreeBSD-ports/pull/2
7b7a23eef6
Renato Botelho (garga) · 5.3.5
Update security/strongswan to 5.3.5

PR:		204959
Approved by:	strongswan@Nanoteq.com (maintainer)
Obtained from:	pfSense
Sponsored by:	Rubicon Communications (Netgate)
169aacbd17
Renato Botelho (garga) · 5.3.4
Update security/strongswan to 5.3.4

PR:		204597
Submitted by:	strongswan@nanoteq.com (maintainer)
MFH:		2015Q4
Security:	CVE 2015-8023
Security:	https://github.com/strongswan/strongswan/commit/453e204ac40dfff2e0978e8f84a5f8ff0cbc45e2
Sponsored by:	Rubicon Communications (Netgate)
39618f2a30
Renato Botelho (garga) · 5.3.3_2
Backport a couple of commits from master, that will be present in 5.3.4:

- dff2d05bb9 [1]: kernel-pfKey: Enable AES-CTR
- 04f22cdabc [2]: VICI: add NAT information

Bump PORTREVISION

[1] https://github.com/strongswan/strongswan/commit/dff2d05bb9bec684b3b2efdafc9a47219550bbe1
[2] https://github.com/strongswan/strongswan/commit/04f22cdabc1c97d38692f95392429839f0fa90d1

PR:		204398
Approved by:	maintainer
Obtained from:	pfSense
Sponsored by:	Rubicon Communications (Netgate)
effa54ec4c
Renato Botelho (garga) · 5.3.3_1
- Add a new option, SWANCTL, to install swanctll utility - When VICI option is selected, install libvici.h to include directory,   it's useful when you need to build a custom code linked to libvici - Pass path to USE_LDCONFIG otherwise libraries will not be visible

PR:		204098
Approved by:	maintainer
Obtained from:	pfSense
Sponsored by:	Rubicon Communications (Netgate)
9c90e69933
Renato Botelho (garga) · 5.3.3_1
- Add a new option (VICI) to build VICI management protocol - Change SMP option description to show users it's deprecated

PR:		204090
Approved by:	maintainer
48f7ab060b
Renato Botelho (garga) · 5.3.3_1
strongSwan can be beuit using 3 different printf hooks: builtin, glibc (compatible with FreeBSD's libc) and vstr (devel/vstr). Since it's not selected any of them on CONFIGURE_ARGS, it uses auto, and end up using glibc.

pfSense users reported memory leaks on strongSwan [2] [3] and a it was
reported to upstream [1].

Add a single option and let user choose which printf hook to use, and
change default to use builtin. Bump PORTREVISION due to default change

[1] https://wiki.strongswan.org/issues/1106
[2] https://forum.pfsense.org/index.php?topic=96767.0
[3] https://redmine.pfsense.org/issues/5149

PR:		204051
Approved by:	maintainer
Obtained from:	pfSense
MFH:		2015Q4
Sponsored by:	Rubicon Communications (Netgate)
1f33e7ef35
Renato Botelho (garga) · 5.3.3
Fix pkg-descr, Strongswan supports IKEv1 since version 5.0.0

Spotted by:	Jim Thompson <jim@netgate.com>
Approved by:	strongswan@Nanoteq.com (maintainer)
Sponsored by:	Rubicon Communications (Netgate)
4aaa296bd1
Renato Botelho (garga) · 5.3.3
Update security/strongswan to 5.3.3

PR:		203178
Approved by:	strongswan@Nanoteq.com (maintainer)
Sponsored by:	Rubicon Communications (Netgate)
0ef9966922
Renato Botelho (garga) · 5.3.2
Update to 5.3.2

PR:		200721
Approved by:	strongswan@Nanoteq.com (maintainer)
MFH:		2015Q2
Security:	CVE-2015-3991
Sponsored by:	Netgate
30bfe91aba
Renato Botelho (garga) · 5.3.0_1
Fix PLIST when EAPAKA3GPP2 is unset and EAPDYNAMIC is set

PR:		199652
Approved by:	stronswan@Nanoteq.com (maintainer)
Sponsored by:	Netgate
cd5bec75b8
Dmitry Marakasov (amdmi3) · 5.3.0_1
- Add CPE info

Approved by:	portmgr blanket
0ef5155046
Mark Felder (feld) · 5.3.0_1
Add patches to fix Strongswan Management Protocol

SMP is an XML control interface for Strongswan used by pfSense and
Opnsense. SMP has been deprecated by upstream since 5.2.0 in favor of a
newer IPC mechanism called VICI. As a result upstream is not motivated
to take patches for SMP, and this uses non-portable strlcpy anyway.

The code has not been deleted from the project and if we can bludgeon it
into a working state I see no harm.

PR:		199442
d8fe21535f
Renato Botelho (garga) · 5.3.0
- Update to 5.3.0 - Add a new option UNITY, to enable Cisco unity extension plugin

PR:		199064
Approved by:	maintainer
Sponsored by:	Netgate
2daf580402
Renato Botelho (garga) · 5.2.2_1
- Add GCM and SMP options - Add pkgconfig to the list of dependencies - Enable IKEv1 OPTION by default - Bump PORTREVISION

PR:		197824
Submitted by:	Franco Fichtner <franco@lastsummer.de> (based on)
Reworked by:	strongswan@Nanoteq.com (maintainer)
Approved by:	strongswan@Nanoteq.com (maintainer)
37b65d30ff
Renato Botelho (garga) · 5.2.2
- Update to 5.2.2 - Add LICENSE

PR:		196615
Approved by:	strongswan@Nanoteq.com (maintainer)
Security:	CVE-2014-9221
c9e8d09893
Pawel Pekala (pawel) · 5.2.1
- Update to version 5.2.1 [1] - Convert to USES=execinfo - Fix LDAP, MYSQL options

PR:		195580 [1]
Submitted by:	maintainer [1]
2b036931bf
Baptiste Daroussin (bapt) · 5.2.0_1
Remove useless %D

Notified by:	antoine
50ab18630d