All reports
Medium

strongswan: integer overflow when replacing certificates in cache

Affected versions

Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2021-41991

Probability of exploitation in the next 30 days: 5.30%

FIRST EPSS · 2026-11-22

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.