Integer Overflow or Wraparound Affecting strongswan package, versions <5.9.4-1


Severity

Recommended
0.0
high
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
8.51% (95th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-DEBIAN12-STRONGSWAN-1759324
  • published19 Oct 2021
  • disclosed18 Oct 2021

Introduced: 18 Oct 2021

CVE-2021-41991  (opens in a new tab)
CWE-190  (opens in a new tab)

How to fix?

Upgrade Debian:12 strongswan to version 5.9.4-1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream strongswan package and not the strongswan package as distributed by Debian. See How to fix? for Debian:12 relevant fixed versions and status.

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.

CVSS Scores

version 3.1