{"id":"CVE-2025-31135","aliases":["EUVD-2025-9432","GHSA-c2c3-pqw5-5p7c","GO-2025-3588","openSUSE-SU-2025:14970-1"],"status":"published","title":"Go-Guerrilla SMTP Daemon allows the PROXY command to be sent multiple times","description":"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.","severity":{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","level":"medium","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-10","score":0.00382,"percentile":0.32606,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-20"],"published":"2025-04-01T22:03:09Z","modified":"2026-10-28T02:30:46Z","fixes":[{"ecosystem":"Go","package":"github.com/phires/go-guerrilla","fixed_in":["1.6.7"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"Go","package":"github.com/phires/go-guerrilla","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.6.7"}]}]},{"source":"osv","ecosystem":"Go","package":"github.com/phires/go-guerrilla","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.6.7"}]}]},{"source":"osv","ecosystem":"Go","package":"github.com/phires/go-guerrilla","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.6.7"}]}]},{"source":"osv","ecosystem":"openSUSE:Tumbleweed","package":"govulncheck-vulndb","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.0.20250402T160203-1.1"}]}],"bundled":6}],"products":[{"vendor":"phires","product":"go-guerrilla"}],"references":[{"url":"https://github.com/phires/go-guerrilla/security/advisories/GHSA-c2c3-pqw5-5p7c","tags":["x_refsource_CONFIRM","advisory","web"]},{"url":"https://github.com/phires/go-guerrilla/commit/d08fe22f8022d2bdedc136f9e4ba96f2fbbebf18","tags":["x_refsource_MISC","fix"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-31135","tags":["advisory"]},{"url":"https://github.com/phires/go-guerrilla/commit/7673947f2d5204a135d7ae0b7f80759e548abee6","tags":["web","fix"]},{"url":"https://pkg.go.dev/vuln/GO-2025-3588","tags":["web"]},{"url":"https://github.com/advisories/GHSA-c2c3-pqw5-5p7c"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/31xxx/CVE-2025-31135.json","tags":["advisory"]},{"url":"https://github.com/phires/go-guerrilla","tags":["package"]},{"url":"https://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/ZBHJANMC5TN4MHLVGPYKJGT774IKFUQ3/","tags":["advisory"]},{"url":"https://www.suse.com/security/cve/CVE-2025-0312","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2025-23391","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2025-29072","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2025-29868","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2025-30223","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2025-31135","tags":["web"]}],"sources":{"cve":[{"id":"CVE-2025-31135","title":"Go-Guerrilla SMTP Daemon allows the PROXY command to be sent multiple times","description":"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.","status":"published","published":"2025-04-01T22:03:09.405Z","modified":"2026-01-28T22:27:22.773Z","cvss":[{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","level":"medium","assessor":"cna"}],"cwes":["CWE-20"],"updated_at":"2026-11-02T14:32:44.424933Z"}],"euvd":[{"id":"EUVD-2025-9432","description":"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.","status":"published","published":"2025-04-01T22:03:09Z","modified":"2026-01-28T22:27:22Z","cvss":[{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","level":"medium"}],"updated_at":"2026-11-02T19:48:45.944715Z"}],"ghsa":[{"id":"GHSA-c2c3-pqw5-5p7c","title":"Go-Guerrilla SMTP Daemon allows the PROXY command to be sent multiple times","description":"### Summary\n\nThe PROXY command is accepted multiple times, allowing a client to spoof its IP address when the proxy protocol is being used.\n\n### Details\n\nWhen 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.\n\nNote 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.\n\n### PoC\n\nI'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.\n\n### Impact\n\nAny instance with `ProxyOn` enabled (`proxyon` in the JSON config) is affected.\n\nAs 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.","status":"published","published":"2025-04-01T22:23:49Z","modified":"2026-06-08T15:57:50Z","cvss":[{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","level":"medium"}],"cwes":["CWE-20"],"updated_at":"2026-11-02T14:40:18.682012Z"}],"nvd":[{"id":"CVE-2025-31135","description":"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.","status":"published","published":"2025-04-01T22:15:21.437Z","modified":"2026-06-17T09:09:55.1Z","cvss":[{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","level":"medium","assessor":"secondary"}],"cwes":["CWE-20"],"updated_at":"2026-11-02T14:10:58.094557Z"}],"osv":[{"id":"CVE-2025-31135","title":"Go-Guerrilla SMTP Daemon allows the PROXY command to be sent multiple times","description":"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.","status":"published","published":"2025-04-01T22:03:09.405Z","modified":"2026-10-28T02:30:46.497661555Z","cvss":[{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","level":"medium"}],"cwes":["CWE-20"],"updated_at":"2026-11-02T15:44:48.02508Z"},{"id":"GHSA-c2c3-pqw5-5p7c","title":"Go-Guerrilla SMTP Daemon allows the PROXY command to be sent multiple times","description":"### Summary\n\nThe PROXY command is accepted multiple times, allowing a client to spoof its IP address when the proxy protocol is being used.\n\n### Details\n\nWhen 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.\n\nNote 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.\n\n### PoC\n\nI'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.\n\n### Impact\n\nAny instance with `ProxyOn` enabled (`proxyon` in the JSON config) is affected.\n\nAs 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.","status":"published","published":"2025-04-01T22:23:49Z","modified":"2026-06-08T16:00:10.310411354Z","cvss":[{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","level":"medium"}],"cwes":["CWE-20"],"updated_at":"2026-11-02T15:46:44.225359Z"},{"id":"GO-2025-3588","title":"Go-Guerrilla SMTP Daemon allows the PROXY command to be sent multiple times in github.com/phires/go-guerrilla","description":"Go-Guerrilla SMTP Daemon allows the PROXY command to be sent multiple times in github.com/phires/go-guerrilla","status":"published","published":"2025-04-02T16:02:03Z","modified":"2026-03-03T04:56:28.541527Z","updated_at":"2026-11-02T15:47:01.728182Z"},{"id":"openSUSE-SU-2025:14970-1","title":"govulncheck-vulndb-0.0.20250402T160203-1.1 on GA media","description":"These are all security issues fixed in the govulncheck-vulndb-0.0.20250402T160203-1.1 package on the GA media of openSUSE Tumbleweed.","status":"published","published":"2025-04-04T00:00:00Z","modified":"2026-02-04T03:13:07.286354Z","updated_at":"2026-11-02T16:58:37.399567Z"}]}}
