Vulnerability · Published Oct 18, 2021 · Assigned by mitre
CVE-2021-41991
High 7.5
In plain English
A high-severity security flaw in the strongswan package (Alpine). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 5.3% (higher than 93% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | strongswan | 5.9.1-r3 | ALPINE-CVE-2021-41991 |
| Alpine:v3.21 | strongswan | 5.9.1-r3 | ALPINE-CVE-2021-41991 |
| Alpine:v3.22 | strongswan | 5.9.1-r3 | ALPINE-CVE-2021-41991 |
| Alpine:v3.23 | strongswan | 5.9.1-r3 | ALPINE-CVE-2021-41991 |
| Alpine:v3.24 | strongswan | 5.9.1-r3 | ALPINE-CVE-2021-41991 |
| Debian:12 | strongswan | 5.9.4-1 | DEBIAN-CVE-2021-41991 |
| Debian:13 | strongswan | 5.9.4-1 | DEBIAN-CVE-2021-41991 |
| Debian:14 | strongswan | 5.9.4-1 | DEBIAN-CVE-2021-41991 |
| Ubuntu:22.04:LTS | strongswan | 5.9.1-1ubuntu3.1 | UBUNTU-CVE-2021-41991 |
Affected products (as reported)
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