CVE-2021-41991
JSON

7.5high

The in-memory certificate cache in strongSwan before 5.9.4 has a remote integer overflow upon receiving many requests with different certif…

Severity
7.5high CVSS:3.1 by NVD
Exploit likelihood
5.30% (higher than 92% of CVEs; EPSS, by FIRST)
Published
Last changed
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.

Affected

Product or packageVersionsReported by
Unspecified productn/aCVE List
strongswan strongswanfrom 4.2.10 before 5.9.4NVD
debian debian_linux9.0, 10.0, 11.0NVD
fedoraproject fedora33, 34, 35NVD
siemens sinema_remote_connect_serverNot specifiedNVD
siemens siplus_et_200sp_cp_1542sp-1_irc_tx_rail_firmwareNot specifiedNVD
siemens simatic_cp_1243-1_firmwareNot specifiedNVD
siemens simatic_cp_1242-7_gprs_v2_firmwareNot specifiedNVD
siemens simatic_net_cp_1243-8_irc_firmwareNot specifiedNVD
siemens scalance_sc632-2c_firmwareNot specifiedNVD
siemens siplus_et_200sp_cp_1543sp-1_isec_firmwareNot specifiedNVD
siemens cp_1543-1_firmwareNot specifiedNVD

All scores

NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD5.0medium CVSS:2.0AV:N/AC:L/Au:N/C:N/I:N/A:P

Classification

What each source says

CVE List

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.

NVD (es)

La caché de certificados en memoria en strongSwan versiones anteriores a 5.9.4, presenta un desbordamiento de enteros remoto al recibir muchas peticiones con diferentes certificados para llenar la caché y posteriormente desencadenar la sustitución de las entradas de la caché. El código intenta seleccionar una entrada de caché menos usada mediante un generador de números aleatorios, pero esto no es realizado correctamente. Una ejecución de código remota podría ser una pequeña posibilidad

References

https://github.com/strongswan/strongswan/releases/tag/5.9.4third-party-advisory
https://www.strongswan.org/blog/2021/10/18/strongswan-vulnerability-%28cve-2021-41991%29.html
https://www.debian.org/security/2021/dsa-4989third-party-advisory, vendor-advisory
https://lists.debian.org/debian-lts-announce/2021/10/msg00014.htmlmailing-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.pdfpatch, third-party-advisory

Sources

SourceRecordLicence
CVE ListCVE-2021-41991 changed 2024-08-04CVE Terms of Use
NVDCVE-2021-41991 changed 2026-06-17Public domain