Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/envoyproxy/gateway
  4. ›
  5. CVE-2025-25294

CVE-2025-25294: Envoy Gateway Log Injection Vulnerability

March 6, 2025 (updated March 11, 2025)

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.

References

  • github.com/advisories/GHSA-mf24-chxh-hmvj
  • github.com/envoyproxy/gateway
  • github.com/envoyproxy/gateway/commit/041d474a70d5921e5d65e6e14ea60e14dac70b01
  • github.com/envoyproxy/gateway/commit/358bed50dcb7b32f39a2edb252fb1399c7fc65dc
  • github.com/envoyproxy/gateway/commit/8f48f5199cf1bbb9a8ac0695c5171bfef6c9198a
  • github.com/envoyproxy/gateway/releases/tag/v1.2.7
  • github.com/envoyproxy/gateway/releases/tag/v1.3.1
  • github.com/envoyproxy/gateway/security/advisories/GHSA-mf24-chxh-hmvj
  • nvd.nist.gov/vuln/detail/CVE-2025-25294
  • pkg.go.dev/vuln/GO-2025-3504

Code Behaviors & Features

Detect and mitigate CVE-2025-25294 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 1.2.7, all versions starting from 1.3.0-rc.1 before 1.3.1

Fixed versions

  • 1.2.7
  • 1.3.1

Solution

Upgrade to versions 1.2.7, 1.3.1 or above.

Impact 5.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-117: Improper Output Neutralization for Logs

Source file

go/github.com/envoyproxy/gateway/CVE-2025-25294.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:17:21 +0000.