Live threats

All CVEs / Strongswan

CVE-2021-41991Strongswan

High 7.5 No auth needed

Priority
61
CVSS 3.1
7.5
EPSS
5.3%
probability of exploitation in 30 days · percentile 93
Auth required
No
Published
Oct 18, 2021
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-190
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

What happens

The in-memory certificate cache in strongSwan before 5.9.4 has a remote integer overflow upon receiving many requests with different certificates to fill the cache and later trigger the replacement of cache entries. The code attempts to select a less-often-used cache entry by means of a random number generator, but this is not done correctly. Remote code execution might be a slight possibility.

Original NVD text.

What to do

  1. Apply the vendor's security update for Strongswan.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected products (CPE)

VendorProductVersions
strongswanstrongswan≥ 4.2.10 < 5.9.4
debiandebian_linux9.0
debiandebian_linux10.0
debiandebian_linux11.0
fedoraprojectfedora33
fedoraprojectfedora34
fedoraprojectfedora35
siemenssinema_remote_connect_serverall
siemenssiplus_et_200sp_cp_1542sp-1_irc_tx_rail_firmwareall
siemenssimatic_cp_1243-1_firmwareall
siemenssimatic_cp_1242-7_gprs_v2_firmwareall
siemenssimatic_net_cp_1243-8_irc_firmwareall
siemensscalance_sc632-2c_firmwareall
siemenssiplus_et_200sp_cp_1543sp-1_isec_firmwareall
siemenscp_1543-1_firmwareall
siemenssimatic_net_cp_1545-1_firmwareall
siemenssimatic_cp_1543sp-1_firmwareall
siemenssimatic_net_cp1243-7_lte_eu_firmwareall
siemenssimatic_cp_1243-7_lte/us_firmwareall
siemenssimatic_cp_1542sp-1_firmwareall
siemensscalance_sc636-2c_firmwareall
siemenssimatic_cp_1542sp-1_irc_firmwareall
siemensscalance_sc642-2c_firmwareall
siemensscalance_sc646-2c_firmware< 2.3
siemensscalance_sc622-2c_firmwareall
siemenssiplus_s7-1200_cp_1243-1_rail_firmwareall
siemenssiplus_s7-1200_cp_1243-1_firmwareall
siemenssiplus_net_cp_1543-1_firmwareall
siemenssiplus_et_200sp_cp_1543sp-1_isec_tx_rail_firmwareall

Official sources

References

Links published by the sources. Open them with care.