# 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 certif…

- Severity: High 7.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 5.30%, higher than 92% of CVEs (2026-12-01)
- Published: 2021-10-18T13:44:25.000Z
- Modified: 2026-06-17T04:09:07.460Z
- Weaknesses: CWE-190
- Assigned by: mitre

## Description

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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- strongswan strongswan: from 4.2.10 before 5.9.4
- debian debian_linux: 9.0; 10.0; 11.0
- fedoraproject fedora: 33; 34; 35
- siemens sinema_remote_connect_server: no versions given
- siemens siplus_et_200sp_cp_1542sp-1_irc_tx_rail_firmware: no versions given
- siemens simatic_cp_1243-1_firmware: no versions given
- siemens simatic_cp_1242-7_gprs_v2_firmware: no versions given
- siemens simatic_net_cp_1243-8_irc_firmware: no versions given
- siemens scalance_sc632-2c_firmware: no versions given
- siemens siplus_et_200sp_cp_1543sp-1_isec_firmware: no versions given
- siemens cp_1543-1_firmware: no versions given
- siemens simatic_net_cp_1545-1_firmware: no versions given
- siemens simatic_cp_1543sp-1_firmware: no versions given
- siemens simatic_net_cp1243-7_lte_eu_firmware: no versions given
- siemens simatic_cp_1243-7_lte/us_firmware: no versions given
- siemens simatic_cp_1542sp-1_firmware: no versions given
- siemens scalance_sc636-2c_firmware: no versions given
- siemens simatic_cp_1542sp-1_irc_firmware: no versions given
- siemens scalance_sc642-2c_firmware: no versions given
- siemens scalance_sc646-2c_firmware: before 2.3
- siemens scalance_sc622-2c_firmware: no versions given
- siemens siplus_s7-1200_cp_1243-1_rail_firmware: no versions given
- siemens siplus_s7-1200_cp_1243-1_firmware: no versions given
- siemens siplus_net_cp_1543-1_firmware: no versions given
- siemens siplus_et_200sp_cp_1543sp-1_isec_tx_rail_firmware: no versions given

## Every score

- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:N/I:N/A:P`

## References

- <https://github.com/strongswan/strongswan/releases/tag/5.9.4> (third-party-advisory)
- <https://www.strongswan.org/blog/2021/10/18/strongswan-vulnerability-%28cve-2021-41991%29.html>
- <https://www.debian.org/security/2021/dsa-4989> (third-party-advisory, vendor-advisory)
- <https://lists.debian.org/debian-lts-announce/2021/10/msg00014.html> (mailing-list, third-party-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/5FJSATD2R2XHTG4P63GCMQ2N7EWKMME5/> (vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/WQSQ3BEC22NF4NCDZVCT4P3Q2ZIAJXGJ/> (vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/Y3TQ32JLJOBJDB2EJKSX2PBPB5NFG2D4/> (vendor-advisory)
- <https://cert-portal.siemens.com/productcert/pdf/ssa-539476.pdf> (patch, third-party-advisory)

## Sources

- CVE List: [CVE-2021-41991](https://www.cve.org/CVERecord?id=CVE-2021-41991), CVE Terms of Use, modified 2024-08-04
- NVD: [CVE-2021-41991](https://nvd.nist.gov/vuln/detail/CVE-2021-41991), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-41991 · Whole record: https://cve.day/CVE-2021-41991.json · Rebuilt by cve.day 2026-11-25T22:58:04.534Z
