CVEfocus › CVE database › CVE-2021-41991

CVE-2021-41991

CVSS 7.5 HighEPSS 5.3% (higher than 93% of CVEs)Published 2021-10-18Updated 2024-08-04Assigner: mitre

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.

What to do

Fixed builds are available from Alpine, Debian, Ubuntu: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

19Fixed
2Fix pending
1Will not fix

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 22.04strongswanFixed5.9.1-1ubuntu3.1UBUNTU-CVE-2021-41991
Ubuntu 20.04strongswanFixed5.8.2-1ubuntu3.3UBUNTU-CVE-2021-41991
Ubuntu 18.04strongswanFixed5.6.2-1ubuntu2.7UBUNTU-CVE-2021-41991
Ubuntu 16.04strongswanFix pending5.3.5-1ubuntu3.8+esm1 (Ubuntu Pro)UBUNTU-CVE-2021-41991
Ubuntu 14.04strongswanFix pending5.1.2-0ubuntu2.11+esm1 (Ubuntu Pro)UBUNTU-CVE-2021-41991
Debian 14strongswanFixed5.9.4-1DEBIAN-CVE-2021-41991
Debian 13strongswanFixed5.9.4-1DEBIAN-CVE-2021-41991
Debian 12strongswanFixed5.9.4-1DEBIAN-CVE-2021-41991
Red Hat Enterprise Linux 7strongimcvWill not fix
Out of support scope
Alpine Linux 3.24strongswanFixed5.9.1-r3ALPINE-CVE-2021-41991
Alpine Linux 3.23strongswanFixed5.9.1-r3ALPINE-CVE-2021-41991
Alpine Linux 3.22strongswanFixed5.9.1-r3ALPINE-CVE-2021-41991
Alpine Linux 3.21strongswanFixed5.9.1-r3ALPINE-CVE-2021-41991
Alpine Linux 3.20strongswanFixed5.9.1-r3ALPINE-CVE-2021-41991
Alpine Linux 3.19strongswanFixed5.9.1-r3ALPINE-CVE-2021-41991
Alpine Linux 3.18strongswanFixed5.9.1-r3ALPINE-CVE-2021-41991
Alpine Linux 3.17strongswanFixed5.9.1-r3ALPINE-CVE-2021-41991
Alpine Linux 3.16strongswanFixed5.9.1-r3ALPINE-CVE-2021-41991
Alpine Linux 3.15strongswanFixed5.9.1-r3ALPINE-CVE-2021-41991
Alpine Linux 3.14strongswanFixed5.9.1-r2ALPINE-CVE-2021-41991
Alpine Linux 3.13strongswanFixed5.9.1-r1ALPINE-CVE-2021-41991
Alpine Linux 3.12strongswanFixed5.8.4-r3ALPINE-CVE-2021-41991

What the vendor says

As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.