CVE-2025-25294: Envoy Gateway Log Injection Vulnerability

Published Mar 6, 2025
·
Updated

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.1 would 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: starttime: '%STARTTIME%' method: '%REQ(:METHOD)%' x-envoy-origin-path: '%REQ(X-ENVOY-ORIGINAL-PATH?:PATH)%' protocol: '%PROTOCOL%' responsecode: '%RESPONSECODE%' responseflags: '%RESPONSEFLAGS%' responsecodedetails: '%RESPONSECODEDETAILS%' connectionterminationdetails: '%CONNECTIONTERMINATIONDETAILS%' upstreamtransportfailurereason: '%UPSTREAMTRANSPORTFAILUREREASON%' bytesreceived: '%BYTESRECEIVED%' bytessent: '%BYTESSENT%' 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)%' upstreamhost: '%UPSTREAMHOST%' upstreamcluster: '%UPSTREAMCLUSTER%' upstreamlocaladdress: '%UPSTREAMLOCALADDRESS%' downstreamlocaladdress: '%DOWNSTREAMLOCALADDRESS%' downstreamremoteaddress: '%DOWNSTREAMREMOTEADDRESS%' requestedservername: '%REQUESTEDSERVERNAME%' routename: '%ROUTENAME%' see API definition here

References Are there any links users can visit to find out more?

Other sources

Envoy Gateway is an open source project for managing Envoy Proxy as a standalone or Kubernetes-based application gateway. 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. This vulnerability is fixed in 1.3.1 and 1.2.7. One can overwrite the old text based default format with JSON formatter by modifying the "EnvoyProxy.spec.telemetry.accessLog" setting.

MITRE

Affected Software

5 affected componentsFixes available
Envoy Gateway<1.2.7, <1.3.1
go/github.com/envoyproxy/gateway>=1.3.0-rc.1<1.3.1
1.3.1
go/github.com/envoyproxy/gateway<1.2.7
1.2.7
Envoyproxy Gateway<1.2.7
Envoyproxy Gateway>=1.3.0<1.3.1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade go/github.com/envoyproxy/gateway to a version that resolves this vulnerability.

    Fixed in 1.3.1
  2. Upgrade

    Upgrade go/github.com/envoyproxy/gateway to a version that resolves this vulnerability.

    Fixed in 1.2.7
  3. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 1.3.1
  4. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 1.2.7
  5. Configuration

    Use JSON formatter as the default access log format for Envoy Gateway by configuring EnvoyProxy.spec.telemetry.accessLog (JSON type) to avoid the vulnerable text-based default access log format in affected versions (prior to 1.2.7 and 1.3.1).

    Envoy Gateway (EnvoyProxy.spec.telemetry.accessLog / EnvoyProxy.spec.telemetry.[accessLog]) EnvoyProxy.spec.telemetry.accessLog.format (type JSON) = JSON

Event History

Mar 6, 2025
CVE Published
via MITRE·06:46 PM
Data Sourced
via MITRE·06:46 PM
DescriptionSeverityWeakness
Advisory Published
via GitHub·07:11 PM
Data Sourced
via NVD·07:15 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·07:15 PM
RemedyAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2025-25294?

CVE-2025-25294 is rated as a high severity vulnerability due to its potential for log injection attacks.

2

How do I fix CVE-2025-25294?

To fix CVE-2025-25294, upgrade Envoy Gateway to version 1.2.7 or 1.3.1 and ensure proper log configurations.

3

Which versions of Envoy Gateway are affected by CVE-2025-25294?

CVE-2025-25294 affects all Envoy Gateway versions prior to 1.2.7 and 1.3.1.

4

What is a log injection attack in the context of CVE-2025-25294?

A log injection attack, in the context of CVE-2025-25294, involves malicious actors manipulating log entries to execute arbitrary commands or spoof log information.

5

Where can I find more information about CVE-2025-25294?

More information about CVE-2025-25294 can be found on the official Envoy Gateway GitHub repository.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203