Improper Handling of Exceptional Conditions Affecting github.com/cilium/cilium/pkg/maps/policymap package, versions >=1.16.0 <1.16.4


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.04% (11th 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-GOLANG-GITHUBCOMCILIUMCILIUMPKGMAPSPOLICYMAP-8400920
  • published26 Nov 2024
  • disclosed25 Nov 2024
  • creditUnknown

Introduced: 25 Nov 2024

NewCVE-2024-52529  (opens in a new tab)
CWE-755  (opens in a new tab)

How to fix?

Upgrade github.com/cilium/cilium/pkg/maps/policymap to version 1.16.4 or higher.

Overview

Affected versions of this package are vulnerable to Improper Handling of Exceptional Conditions which allows attackers to bypass Layer 7 policy enforcement by sending traffic that matches the Layer 7 policy but is within the broader Layer 3 port range.

Note:

  1. This is only exploitable if the user have an allow policy that selects a Layer 3 destination and a port range in addition of a Layer 7 allow policy that selects a specific port within the first policy's range.

  2. This issue only affects users who use Cilium's port range functionality

Workaround

Users who are enabled to upgrade to the fixed version are advised to rewrite any policies that use port ranges to individually specify the ports permitted for traffic.

CVSS Scores

version 4.0
version 3.1