CWE
20
Advisory Published
Updated

GHSA-c2c3-pqw5-5p7c: Input Validation

First published: Tue Apr 01 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](https://github.com/phires/go-guerrilla/blob/fca3b2d8957a746997c7e71fca39004f5c96e91f/server.go#L495), 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](https://www.haproxy.org/download/1.8/doc/proxy-protocol.txt). 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.

Affected SoftwareAffected VersionHow to fix
go/github.com/phires/go-guerrilla<1.6.7
1.6.7

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the severity of GHSA-c2c3-pqw5-5p7c?

    The severity of GHSA-c2c3-pqw5-5p7c is considered high due to the potential for IP address spoofing.

  • How do I fix GHSA-c2c3-pqw5-5p7c?

    To fix GHSA-c2c3-pqw5-5p7c, upgrade to version 1.6.7 or later of the affected software.

  • What software is affected by GHSA-c2c3-pqw5-5p7c?

    GHSA-c2c3-pqw5-5p7c affects the go-guerrilla package prior to version 1.6.7.

  • What attack vector is associated with GHSA-c2c3-pqw5-5p7c?

    GHSA-c2c3-pqw5-5p7c allows a client to spoof its IP address when the proxy protocol is in use.

  • Is there a workaround for GHSA-c2c3-pqw5-5p7c?

    The best workaround for GHSA-c2c3-pqw5-5p7c is to ensure that ProxyOn is not enabled until a patch is applied.

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.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203