CVE-2021-41991Strongswan
High 7.5 No auth needed
Follow: this CVE · Strongswan · Strongswan We alert you by email or Slack (account required).
- 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.
What to do
- Apply the vendor's security update for Strongswan.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| strongswan | strongswan | ≥ 4.2.10 < 5.9.4 |
| debian | debian_linux | 9.0 |
| debian | debian_linux | 10.0 |
| debian | debian_linux | 11.0 |
| fedoraproject | fedora | 33 |
| fedoraproject | fedora | 34 |
| fedoraproject | fedora | 35 |
| siemens | sinema_remote_connect_server | all |
| siemens | siplus_et_200sp_cp_1542sp-1_irc_tx_rail_firmware | all |
| siemens | simatic_cp_1243-1_firmware | all |
| siemens | simatic_cp_1242-7_gprs_v2_firmware | all |
| siemens | simatic_net_cp_1243-8_irc_firmware | all |
| siemens | scalance_sc632-2c_firmware | all |
| siemens | siplus_et_200sp_cp_1543sp-1_isec_firmware | all |
| siemens | cp_1543-1_firmware | all |
| siemens | simatic_net_cp_1545-1_firmware | all |
| siemens | simatic_cp_1543sp-1_firmware | all |
| siemens | simatic_net_cp1243-7_lte_eu_firmware | all |
| siemens | simatic_cp_1243-7_lte/us_firmware | all |
| siemens | simatic_cp_1542sp-1_firmware | all |
| siemens | scalance_sc636-2c_firmware | all |
| siemens | simatic_cp_1542sp-1_irc_firmware | all |
| siemens | scalance_sc642-2c_firmware | all |
| siemens | scalance_sc646-2c_firmware | < 2.3 |
| siemens | scalance_sc622-2c_firmware | all |
| siemens | siplus_s7-1200_cp_1243-1_rail_firmware | all |
| siemens | siplus_s7-1200_cp_1243-1_firmware | all |
| siemens | siplus_net_cp_1543-1_firmware | all |
| siemens | siplus_et_200sp_cp_1543sp-1_isec_tx_rail_firmware | all |
Official sources
References
Links published by the sources. Open them with care.
- cert-portal.siemens.com Patch Third Party Advisory
- github.com Third Party Advisory
- lists.debian.org Mailing List Third Party Advisory
- lists.fedoraproject.org
- lists.fedoraproject.org
- lists.fedoraproject.org
- www.debian.org Third Party Advisory
- www.strongswan.org