CVE-2025-31135: Go-Guerrilla SMTP Daemon allows the PROXY command to be sent multiple times

Published Apr 1, 2025
·
Updated

Summary

The PROXY command is accepted multiple times, allowing a client to spoof its IP address when the proxy protocol is being used.

Details

When ProxyOn is enabled, it looks like the PROXY command will be accepted multiple times, with later invocations overriding earlier ones. The proxy protocol only supports one initial PROXY header; anything after that is considered part of the exchange between client and server, so the client is free to send further PROXY commands with whatever data it pleases. go-guerrilla will treat these as coming from the reverse proxy, allowing a client to spoof its IP address.

Note that the format of the PROXY header is well-defined. It probably shouldn't be treated as an SMTP command; parsing it the same way is likely to result in odd behavior and could lead to other vulnerabilities.

PoC

I'm working on writing a PR to fix this vulnerability. It'll include a unit test that will serve as a PoC on the current version.

Impact

Any instance with ProxyOn enabled (proxyon in the JSON config) is affected.

As far as I'm able to tell, the impact is limited to spoofing the RemoteIP field. This isn't ideal, but it probably has less practical impact on an MTA than, say, a web server.

Other sources

Go-Guerrilla SMTP Daemon is a lightweight SMTP server written in Go. Prior to 1.6.7, when ProxyOn is enabled, the PROXY command will be accepted multiple times, with later invocations overriding earlier ones. The proxy protocol only supports one initial PROXY header; anything after that is considered part of the exchange between client and server, so the client is free to send further PROXY commands with whatever data it pleases. go-guerrilla will treat these as coming from the reverse proxy, allowing a client to spoof its IP address. This vulnerability is fixed in 1.6.7.

— MITRE

Affected Software

2 affected componentsFixes available
Go-Guerrilla SMTP Daemon<1.6.7
go/github.com/phires/go-guerrilla<1.6.7
1.6.7

Event History

Apr 1, 2025
CVE Published
via MITRE·10:03 PM
Data Sourced
via MITRE·10:03 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·10:15 PM
DescriptionSeverityWeakness
Advisory Published
via GitHub·10:23 PM

Frequently Asked Questions

1

What is the severity of CVE-2025-31135?

CVE-2025-31135 is considered a medium-severity vulnerability due to its impact on SMTP communication integrity.

2

How do I fix CVE-2025-31135?

To mitigate CVE-2025-31135, upgrade Go-Guerrilla SMTP Daemon to version 1.6.7 or later.

3

What does CVE-2025-31135 affect?

CVE-2025-31135 affects versions of Go-Guerrilla SMTP Daemon prior to 1.6.7 with the ProxyOn feature enabled.

4

What is the main issue with CVE-2025-31135?

The main issue with CVE-2025-31135 is that multiple PROXY command invocations can lead to unintentional overwrites of previous settings.

5

Can CVE-2025-31135 lead to security risks?

Yes, CVE-2025-31135 can lead to security risks by allowing potentially malicious proxy settings to override legitimate configurations.

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