Home / Strongswan / Strongswan / CVE-2021-41991
CVE-2021-41991: is it exploited, and which versions of Strongswan are affected and fixed?
CVE-2021-41991 is an integer overflow vulnerability in Strongswan. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 19:09 UTC). Affected: strongswan from 4.2.10 before 5.9.4, debian linux 9.0, debian linux 10.0 and 26 more (NVD). Fixed in 5.9.4 and 2.3 (NVD). Severity: High (7.5, CVSS 3.1, from NVD).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 19:09 UTC, CVE record November 19, 2026, 07:15 UTC and NVD November 19, 2026, 07:54 UTC.
What is CVE-2021-41991?
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.
From the CVE record by mitre, last updated August 4, 2024, 03:22 UTC.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| strongswan | strongswan | from 4.2.10 before 5.9.4 | application |
| debian | debian linux | 9.0 | operating system |
| debian | debian linux | 10.0 | operating system |
| debian | debian linux | 11.0 | operating system |
| fedoraproject | fedora | 33 | operating system |
| fedoraproject | fedora | 34 | operating system |
| fedoraproject | fedora | 35 | operating system |
| siemens | sinema remote connect server | all versions | application |
| siemens | siplus et 200sp cp 1542sp-1 irc tx rail firmware | all versions | operating system |
| siemens | simatic cp 1243-1 firmware | all versions | operating system |
| siemens | simatic cp 1242-7 gprs v2 firmware | all versions | operating system |
| siemens | simatic net cp 1243-8 irc firmware | all versions | operating system |
| siemens | scalance sc632-2c firmware | all versions | operating system |
| siemens | siplus et 200sp cp 1543sp-1 isec firmware | all versions | operating system |
| siemens | cp 1543-1 firmware | all versions | operating system |
| siemens | simatic net cp 1545-1 firmware | all versions | operating system |
| siemens | simatic cp 1543sp-1 firmware | all versions | operating system |
| siemens | simatic net cp1243-7 lte eu firmware | all versions | operating system |
| siemens | simatic cp 1243-7 lte\/us firmware | all versions | operating system |
| siemens | simatic cp 1542sp-1 firmware | all versions | operating system |
| siemens | scalance sc636-2c firmware | all versions | operating system |
| siemens | simatic cp 1542sp-1 irc firmware | all versions | operating system |
| siemens | scalance sc642-2c firmware | all versions | operating system |
| siemens | scalance sc646-2c firmware | before 2.3 | operating system |
| siemens | scalance sc622-2c firmware | all versions | operating system |
NVD analysis (status Modified), last modified June 17, 2026, 04:09 UTC.
How severe is CVE-2021-41991?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 7.5 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H | NVD |
| Medium 5.0 | CVSS 2.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2021-41991 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- EPSS
- 5.30% probability of exploitation activity in the next 30 days, percentile 92.8 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
- CWE-190 Integer Overflow or Wraparound
Where are the vendor advisories and references?
- https://github.com/strongswan/strongswan/releases/tag/5.9.4 x_refsource_MISC
- https://www.strongswan.org/blog/2021/10/18/strongswan-vulnerability-%28cve-2021-41991%29.html x_refsource_CONFIRM
- DSA-4989 vendor-advisory, x_refsource_DEBIAN
- [debian-lts-announce] 20211019 [SECURITY] [DLA 2788-1] strongswan security update mailing-list, x_refsource_MLIST
- FEDORA-2021-0b37146973 vendor-advisory, x_refsource_FEDORA
- FEDORA-2021-b3df83339e vendor-advisory, x_refsource_FEDORA
- FEDORA-2021-95fab6a482 vendor-advisory, x_refsource_FEDORA
- https://cert-portal.siemens.com/productcert/pdf/ssa-539476.pdf x_refsource_CONFIRM
When was it published, and where is the official record?
- Reserved
- October 4, 2021
- Published
- October 18, 2021, 13:44 UTC
- CVE record updated
- August 4, 2024, 03:22 UTC by mitre
- NVD
- Modified, last modified June 17, 2026, 04:09 UTC
- Last checked
- CVE list November 19, 2026, 07:15 UTC; NVD November 19, 2026, 07:54 UTC; KEV December 3, 2026, 19:09 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
What other CVEs affect Strongswan?
- Sep 11, 2026CVE-2026-78135 strongSwan: improper Enforcement of Behavioral Workflow
- Sep 11, 2026CVE-2026-78134 strongSwan: incorrect authorization
- Sep 11, 2026CVE-2026-78133 strongSwan: use after free
- Sep 11, 2026CVE-2026-78132 strongSwan: infinite loop (denial of service)
- Sep 11, 2026CVE-2026-78131 strongSwan: memory leak
- Sep 11, 2026CVE-2026-78130 strongSwan: NULL pointer dereference (crash)
- Sep 11, 2026CVE-2026-78129 strongSwan: infinite loop (denial of service)
- Sep 11, 2026CVE-2026-78127 strongSwan: memory leak
Questions about CVE-2021-41991
Is CVE-2021-41991 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 19:09 UTC. FIRST's EPSS gives it a 5.30% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of Strongswan are affected by CVE-2021-41991?
strongswan from 4.2.10 before 5.9.4, debian linux 9.0, debian linux 10.0, debian linux 11.0, fedora 33, fedora 34 and 23 more, per the NVD. The tables above give every range the sources list.
Which version fixes CVE-2021-41991?
5.9.4 and 2.3, per the NVD. Check the vendor's advisory before you rely on it.
How severe is CVE-2021-41991?
High (7.5, CVSS 3.1, from NVD). The severity table above shows each score with its source.
Where is the official record of CVE-2021-41991?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.