Skip to content

Happy Eyeballs: Validate that additional_address are IP addresses instead of crashing when sorting.

Moderate
phlax published GHSA-mfqp-7mmj-rm53 Dec 18, 2024

Package

Envoy

Affected versions

> 1.30

Patched versions

1.32.2, 1.31.4, 1.30.8

Description

Details

When additional address are not ip addresses, then the Happy Eyeballs sorting algorithm will crash in data plane. This CVE will validate all additional and original addresses are IP addresses.

PoC

- clusterName: outbound|80||echo.default.svc.cluster.local
  endpoints:
  - lbEndpoints:
    - endpoint:
        additionalAddresses:
        - address:
            envoyInternalAddress:
              endpointId: '[fd00:10:244::10]:80'
              serverListenerName: connect_originate
        address:
          envoyInternalAddress:
            endpointId: [10.244.0.16:80](http://10.244.0.16/)
            serverListenerName: connect_originate
        healthCheckConfig: {}
      healthStatus: HEALTHY
      loadBalancingWeight: 1
      metadata:
        filterMetadata:
          envoy.filters.listener.original_dst:
            local: [10.244.0.16:80](http://10.244.0.16/)
          envoy.transport_socket_match:
            tunnel: http
          istio:
            workload: echo;default;echo;;Kubernetes
    loadBalancingWeight: 1
    locality: {}
  policy:
    overprovisioningFactor: 140

Mitigation

  • Disable Happy Eyeballs
  • Change the IP configuration

Impact

It will crash envoy.

Severity

Moderate

CVSS overall score

This score calculates overall vulnerability severity from 0 to 10 and is based on the Common Vulnerability Scoring System (CVSS).
/ 10

CVSS v3 base metrics

Attack vector
Adjacent
Attack complexity
Low
Privileges required
High
User interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

CVSS v3 base metrics

Attack vector: More severe the more the remote (logically and physically) an attacker can be in order to exploit the vulnerability.
Attack complexity: More severe for the least complex attacks.
Privileges required: More severe if no privileges are required.
User interaction: More severe when no user interaction is required.
Scope: More severe when a scope change occurs, e.g. one vulnerable component impacts resources in components beyond its security scope.
Confidentiality: More severe when loss of data confidentiality is highest, measuring the level of data access available to an unauthorized user.
Integrity: More severe when loss of data integrity is the highest, measuring the consequence of data modification possible by an unauthorized user.
Availability: More severe when the loss of impacted component availability is highest.
CVSS:3.1/AV:A/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H

CVE ID

CVE-2024-53269

Weaknesses

No CWEs

Credits