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…
Noroxi assessment
Priority: Monitor (action score 32/100)
- The sources we track (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) show no public exploit code or exploitation in the wild.
- Probability of exploitation in the next 30 days: 5.3% (FIRST EPSS); higher than 92.7% of all records.
- Anyone who can reach it over the internet can trigger it. No account or password is required. No user action is required. No special conditions are required; it is repeatable.
- Fixed version: strongswan (Alpine:v3.12) 5.8.4-r3; strongswan (Alpine:v3.13) 5.9.1-r1; strongswan (Alpine:v3.14) 5.9.1-r2.
Low priority for now. Upgrade to strongswan (Alpine:v3.12) 5.8.4-r3; strongswan (Alpine:v3.13) 5.9.1-r1; strongswan (Alpine:v3.14) 5.9.1-r2 or later.
Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it
Primary sources: NVD · CVE.org · FIRST EPSS
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.
- Published
- Oct 18, 2021
- Updated
- Jun 17, 2026
- EPSS
- 5.3% · 92th percentile
- CWE
- CWE-190
Report tools
Action score
32
Low priority for now.
- CVSS
- 30 / 40 · 7.5 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 2 / 30 · 5.3%
Get told when this record changes
- Not in KEV: no record of exploitation in the wild
- No public exploit code on record
- A fix has been released
If any of these changes, we'll tell you in the daily email digest.
Is your version affected? Check itNoroxi analysis
What does it mean in your environment?
The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.
We use this product, ask for helpAffected systems
Is your version affected?
Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.
| Vendor | Product | CPE |
|---|---|---|
| strongswan | strongswan | cpe:2.3:a:strongswan:strongswan |
| debian | debian linux | cpe:2.3:o:debian:debian_linux |
| fedoraproject | fedora | cpe:2.3:o:fedoraproject:fedora |
| siemens | sinema remote connect server | cpe:2.3:a:siemens:sinema_remote_connect_server |
| siemens | siplus et 200sp cp 1542sp-1 irc tx rail firmware | cpe:2.3:o:siemens:siplus_et_200sp_cp_1542sp-1_irc_tx_rail_firmware |
| siemens | siplus et 200sp cp 1542sp-1 irc tx rail | cpe:2.3:h:siemens:siplus_et_200sp_cp_1542sp-1_irc_tx_rail |
| siemens | simatic cp 1243-1 firmware | cpe:2.3:o:siemens:simatic_cp_1243-1_firmware |
| siemens | simatic cp 1243-1 | cpe:2.3:h:siemens:simatic_cp_1243-1 |
| siemens | simatic cp 1242-7 gprs v2 firmware | cpe:2.3:o:siemens:simatic_cp_1242-7_gprs_v2_firmware |
| siemens | simatic cp 1242-7 gprs v2 | cpe:2.3:h:siemens:simatic_cp_1242-7_gprs_v2 |
| siemens | simatic net cp 1243-8 irc firmware | cpe:2.3:o:siemens:simatic_net_cp_1243-8_irc_firmware |
| siemens | simatic net cp 1243-8 irc | cpe:2.3:h:siemens:simatic_net_cp_1243-8_irc |
and 34 more
Affected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- debian debian linux10.0
- debian debian linux11.0
- debian debian linux9.0
- fedoraproject fedora33
- fedoraproject fedora34
- fedoraproject fedora35
- siemens cp 1543-1 firmwareall versions
- siemens scalance sc622-2c firmwareall versions
+12 more rows
- siemens scalance sc632-2c firmwareall versions
- siemens scalance sc636-2c firmwareall versions
- siemens scalance sc642-2c firmwareall versions
- siemens scalance sc646-2c firmwarebefore 2.3
- siemens simatic cp 1242-7 gprs v2 firmwareall versions
- siemens simatic cp 1243-1 firmwareall versions
- siemens simatic cp 1243-7 lte/us firmwareall versions
- siemens simatic cp 1542sp-1 firmwareall versions
- siemens simatic cp 1542sp-1 irc firmwareall versions
- siemens simatic cp 1543sp-1 firmwareall versions
- siemens simatic net cp 1243-8 irc firmwareall versions
- siemens simatic net cp 1545-1 firmwareall versions
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Alpine:v3.12 | strongswan | from 4.2.10 · before 5.8.4-r3 | 5.8.4-r3 |
| Alpine:v3.13 | strongswan | from 4.2.10 · before 5.9.1-r1 | 5.9.1-r1 |
| Alpine:v3.14 | strongswan | from 4.2.10 · before 5.9.1-r2 | 5.9.1-r2 |
| Alpine:v3.15 | strongswan | from 4.2.10 · before 5.9.1-r3 | 5.9.1-r3 |
| Debian:10 | strongswan | before 5.7.2-1+deb10u1 | 5.7.2-1+deb10u1 |
| Debian:11 | strongswan | before 5.9.1-1+deb11u1 | 5.9.1-1+deb11u1 |
| Debian:12 | strongswan | before 5.9.4-1 | 5.9.4-1 |
| Debian:9 | strongswan | before 5.5.1-4+deb9u5 | 5.5.1-4+deb9u5 |
| openSUSE:Leap 15.2 | strongswan | before 5.8.2-lp152.2.18.1 | 5.8.2-lp152.2.18.1 |
| openSUSE:Leap 15.3 | strongswan | before 5.8.2-11.21.1 | 5.8.2-11.21.1 |
| openSUSE:Tumbleweed | strongswan | before 5.9.4-1.1 | 5.9.4-1.1 |
| SUSE:HPE Helion OpenStack 8 | strongswan | before 5.1.3-26.16.1 | 5.1.3-26.16.1 |
| SUSE:Linux Enterprise High Performance Computing 15-ESPOS | strongswan | before 5.8.2-4.14.2 | 5.8.2-4.14.2 |
| SUSE:Linux Enterprise Module for Basesystem 15 SP2 | strongswan | before 5.8.2-11.21.1 | 5.8.2-11.21.1 |
| SUSE:Linux Enterprise Point of Sale 11 SP3 | strongswan | before 4.4.0-6.36.9.1 | 4.4.0-6.36.9.1 |
Same product
strongswan: all recordsOther highest-scoring records for the same primary product.
- CVE-2023-41913strongSwan before 5.9.12 has a buffer overflow and possible unauthenticated remote code execution via a DH public value that exceeds the…40Plan
- CVE-2023-26463strongSwan 5.9.8 and 5.9.9 potentially allows remote code execution because it uses a variable named "public" for two different purposes…40Plan
- CVE-2015-3991strongSwan 5.2.2 and 5.3.0 allows remote attackers to cause a denial of service (daemon crash) or execute arbitrary code.40Plan
Published before and after this one in the same product
- ← EarlierCVE-2018-17540Oct 3, 2018 · The gmp plugin in strongSwan before 5.7.1 has a Buffer Overflow via a crafted certificate.31Monitor
- ← EarlierCVE-2021-41990Oct 18, 2021 · The gmp plugin in strongSwan before 5.9.4 has a remote integer overflow via a crafted certificate with an RSASSA-PSS signature.32Monitor
- Later →CVE-2021-45079Jan 31, 2022 · In strongSwan before 5.9.5, a malicious responder can send an EAP-Success message too early without actually authenticating the client and…37Monitor
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| alpine:strongswan | 5.8.4-r3 · Alpine:v3.12 | Package registry (OSV) |
| debian:strongswan | 5.9.4-1 · Debian:12 | Package registry (OSV) |
| opensuse:strongswan | 5.8.2-lp152.2.18.1 · openSUSE:Leap 15.2 | Package registry (OSV) |
| suse:strongswan | 4.4.0-6.36.9.1 · SUSE:Linux Enterprise Point of Sale 11 SP3 | Package registry (OSV) |
Exploit status
No known public exploit
No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
No dated events beyond publication.
Not on record for this CVE: EPSS history · patch commit or PR link · researcher credit · variant or chain candidate · public bounty program.
Technical details
Attack conditions
- Anyone who can reach it over the internet can trigger it.
- No account or password is required.
- No user action is required.
- No special conditions are required; it is repeatable.
If successful
- Confidentiality
- none
- Integrity
- none
- Availability
- high · the service can be disrupted
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality impact
- None
- Integrity impact
- None
- Availability impact
- High
Weakness class (CWE)
CWE-190 · Integer Overflow or WraparoundCVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
nvd-primary
Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
Attack patterns (CAPEC)
ATT&CK techniques
—
Change log (1)
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
Show all references (7 more)Show less
- github.com/strongswan/strongswan/releases/tag/5.9.4
- lists.debian.org/debian-lts-announce/2021/10/msg00014.html
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/5FJSATD2R2XHTG4P63GCMQ2N7EWKMME5/
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/WQSQ3BEC22NF4NCDZVCT4P3Q2ZIAJXGJ/
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/Y3TQ32JLJOBJDB2EJKSX2PBPB5NFG2D4/
- www.debian.org/security/2021/dsa-4989
- www.strongswan.org/blog/2021/10/18/strongswan-vulnerability-%28cve-2021-41991%29.html
Vendor advisories and official records. Exploit/PoC links are deliberately left out.