CVE-2025-25294: Envoy Gateway Log Injection Vulnerability
Impact In all Envoy Gateway versions prior to 1.2.7 and 1.3.1 a default Envoy Proxy access log configuration is used. This format is vulnerable to log injection attacks. If the attacker uses a specially crafted user-agent which performs json injection, then he could add and overwrite fields to the access log.
Published Mar 6, 2025 · Updated Mar 11, 2025
Affected packages
github.com/envoyproxy/gateway
- Ecosystem
- Go
- Affected
- < 1.2.7
- Fixed in
- 1.2.7
- Check
go list -m github.com/envoyproxy/gateway
github.com/envoyproxy/gateway
- Ecosystem
- Go
- Affected
- >= 1.3.0-rc.1, < 1.3.1
- Fixed in
- 1.3.1
- Check
go list -m github.com/envoyproxy/gateway
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Impact
In all Envoy Gateway versions prior to 1.2.7 and 1.3.1 a default Envoy Proxy access log configuration is used. This format is vulnerable to log injection attacks.
If the attacker uses a specially crafted user-agent which performs json injection, then he could add and overwrite fields to the access log.
Examples of attacks include:
- Using following string as user agent :
HELLO-WORLD", "evil-ip": "1.1.1.1", "x-forwarded-for": "1.1.1.1would lead to setting of new access log properties and overwrite of existing properties. Existing properties such as the value of the X-Forwarded-For header may have importance for security analysis of access logs, and their overwrite can be used to hide malicious activity.
- Using the following string as user-agent :
"which renders an invalid json document. The invalid document may fail to be processed by observability solutions, which would allow attacker to hide malicious activity.
Patches
1.3.1, 1.2.7
Fix
Using JSON format as the default format for access logs. The logged document will contain the same key and values as before. Only the order of properties is different inside the logged document.
Workaround
One can overwrite the old text based default format with JSON formatter by setting the following property: "EnvoyProxy.spec.telemetry.accessLog" to
settings:
- format:
type: JSON
json:
start_time: '%START_TIME%'
method: '%REQ(:METHOD)%'
x-envoy-origin-path: '%REQ(X-ENVOY-ORIGINAL-PATH?:PATH)%'
protocol: '%PROTOCOL%'
response_code: '%RESPONSE_CODE%'
response_flags: '%RESPONSE_FLAGS%'
response_code_details: '%RESPONSE_CODE_DETAILS%'
connection_termination_details: '%CONNECTION_TERMINATION_DETAILS%'
upstream_transport_failure_reason: '%UPSTREAM_TRANSPORT_FAILURE_REASON%'
bytes_received: '%BYTES_RECEIVED%'
bytes_sent: '%BYTES_SENT%'
duration: '%DURATION%'
x-envoy-upstream-service-time: '%RESP(X-ENVOY-UPSTREAM-SERVICE-TIME)%'
x-forwarded-for: '%REQ(X-FORWARDED-FOR)%'
user-agent: '%REQ(USER-AGENT)%'
x-request-id: '%REQ(X-REQUEST-ID)%'
:authority: '%REQ(:AUTHORITY)%'
upstream_host: '%UPSTREAM_HOST%'
upstream_cluster: '%UPSTREAM_CLUSTER%'
upstream_local_address: '%UPSTREAM_LOCAL_ADDRESS%'
downstream_local_address: '%DOWNSTREAM_LOCAL_ADDRESS%'
downstream_remote_address: '%DOWNSTREAM_REMOTE_ADDRESS%'
requested_server_name: '%REQUESTED_SERVER_NAME%'
route_name: '%ROUTE_NAME%'see API definition here
References
_Are there any links users can visit to find out more?_
Credited to denniskniep, zirain, guydc.
References
- https://github.com/envoyproxy/gateway/security/advisories/GHSA-mf24-chxh-hmvj
- https://github.com/envoyproxy/gateway/commit/041d474a70d5921e5d65e6e14ea60e14dac70b01
- https://github.com/envoyproxy/gateway/commit/358bed50dcb7b32f39a2edb252fb1399c7fc65dc
- https://github.com/envoyproxy/gateway/releases/tag/v1.2.7
- https://github.com/envoyproxy/gateway/releases/tag/v1.3.1
- https://nvd.nist.gov/vuln/detail/CVE-2025-25294
- https://github.com/envoyproxy/gateway/commit/8f48f5199cf1bbb9a8ac0695c5171bfef6c9198a
- https://pkg.go.dev/vuln/GO-2025-3504
- https://github.com/advisories/GHSA-mf24-chxh-hmvj
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Go vulnerabilities
All Go entriesCVE-2026-53713
Envoy Gateway: Authentication Bypass via Improper Input Validation in EnvoyExtensionPolicy Lua Allows Secret Disclosure
critical9.1Jul 16, 2026CVE-2026-53714
Envoy Gateway: xDS Control Plane Information Disclosure when operating in GatewayNamespaceMode
high7.4Jul 16, 2026CVE-2026-53715
Envoy Gateway: Wasm cache ServeHTTP reads mappingPath2Cache without lock
medium5.3Jul 16, 2026CVE-2026-53716
Envoy Gateway: Wasm HTTP fetch decompresses gzip without output-size limit
medium6.5Jul 16, 2026CVE-2026-53717
Envoy Gateway: OCI layer extraction allocates make([]byte, h.Size) from untrusted tar header
medium6.5Jul 16, 2026CVE-2026-53718
Envoy Gateway custom backendRef cross-namespace ReferenceGrant bypass
medium6.4Jul 16, 2026
