CVE-2023-27488
envoy: gRPC client produces invalid protobuf when an HTTP header with non-UTF8 value is received
Overview
Description
Envoy is an open source edge and service proxy designed for cloud-native applications. Prior to versions 1.26.0, 1.25.3, 1.24.4, 1.23.6, and 1.22.9, escalation of privileges is possible when failure_mode_allow: true is configured for ext_authz filter. For affected components that are used for logging and/or visibility, requests may not be logged by the receiving service.
When Envoy was configured to use ext_authz, ext_proc, tap, ratelimit filters, and grpc access log service and an http header with non-UTF-8 data was received, Envoy would generate an invalid protobuf message and send it to the configured service. The receiving service would typically generate an error when decoding the protobuf message. For ext_authz that was configured with failure_mode_allow: true, the request would have been allowed in this case. For the other services, this could have resulted in other unforeseen errors such as a lack of visibility into requests.
As of versions 1.26.0, 1.25.3, 1.24.4, 1.23.6, and 1.22.9, Envoy by default sanitizes the values sent in gRPC service calls to be valid UTF-8, replacing data that is not valid UTF-8 with a ! character. This behavioral change can be temporarily reverted by setting runtime guard envoy.reloadable_features.service_sanitize_non_utf8_strings to false. As a workaround, one may set failure_mode_allow: false for ext_authz.
Source: OX vulnerability database
Severity
9.8 · CRITICAL
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness: CWE-20
Affected packages · 1
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| Bitnami | envoy | <1.22.9>=1.23.0, <1.23.6>=1.24.0, <1.24.4>=1.25.0, <1.25.3 | 1.22.91.23.61.24.41.25.3 |
Open a package to see all its vulnerabilities.
Operating systems · 8 fixes
Oracle Linux 2 releases · 3 packages
| Release | Package | Fixed in |
|---|---|---|
| 7 | istio +1 | 1.16.4-1.el7 |
| 7 | kubeadm +2 | 1.25.7-2.el7 |
| 7 | olcne-agent +16 | 1.6.1-9.el7 |
| 8 | istio +1 | 1.16.4-1.el8 |
| 8 | kubeadm +2 | 1.25.7-2.el8 |
| 8 | olcne-agent +16 | 1.6.1-9.el8 |
Red Hat 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 8 | servicemesh-proxy +1 | wont fix |
amazon linux 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 2023 | ecs-service-connect-agent | v1.25.4.0-1.amzn2023 |
References
- access.redhat.com https://access.redhat.com/security/cve/CVE-2023-27488
- github.com https://github.com/envoyproxy/envoy/security/advisories/GHSA-9g5w-hqr3-w2ph
- linux.oracle.com https://linux.oracle.com/cve/CVE-2023-27488.html
- linux.oracle.com https://linux.oracle.com/errata/ELSA-2023-23649.html
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2023-27488
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2023-27488
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.