{"id":"CVE-2024-35175","aliases":["CVE-2024-35175","GHSA-4w53-6jvp-gg52","GO-2024-2853"],"related":[],"kind":"vulnerability","state":"published","title":"sshpiper's Enabling of Proxy Protocol without proper feature flagging allows faking source address","summary":"sshpiper is a reverse proxy for sshd. Starting in version 1.0.50 and prior to version 1.3.0, the way the proxy protocol listener is implemented in sshpiper can allow an attacker to forge their connecting address. Commit 2ddd69876a1e1119059debc59fe869cb4e754430 added the proxy protocol listener as the only listener in sshpiper, with no option to toggle this functionality off. This means that any connection that sshpiper is directly (or in some cases indirectly) exposed to can use proxy protocol to forge its source address. Any users of sshpiper who need logs from it for whitelisting/rate limiting/security investigations could have them become much less useful if an attacker is sending a spoofed source address. Version 1.3.0 contains a patch for the issue.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"sshpiper is a reverse proxy for sshd. Starting in version 1.0.50 and prior to version 1.3.0, the way the proxy protocol listener is implemented in sshpiper can allow an attacker to forge their connecting address. Commit 2ddd69876a1e1119059debc59fe869cb4e754430 added the proxy protocol listener as the only listener in sshpiper, with no option to toggle this functionality off. This means that any connection that sshpiper is directly (or in some cases indirectly) exposed to can use proxy protocol to forge its source address. Any users of sshpiper who need logs from it for whitelisting/rate limiting/security investigations could have them become much less useful if an attacker is sending a spoofed source address. Version 1.3.0 contains a patch for the issue.","source":"cvelist"},{"lang":"en","text":"### Summary\n\nThe way the proxy protocol listener is implemented in sshpiper can allow an attacker to forge their connecting address.\n\n### Details\n\n[This commit](https://github.com/tg123/sshpiper/commit/2ddd69876a1e1119059debc59fe869cb4e754430) added the proxy protocol listener as the only listener in sshpiper, with no option to toggle this functionality off. This means that any connection that sshpiper is directly (or in some cases indirectly) exposed to can use proxy protocol to forge its source address.\n\n### PoC\n\nYou can use a configuration like this in HAProxy:\n\n```\nlisten w-send-proxy\n    mode tcp\n    log global\n    option tcplog\n    bind *:27654\n    tcp-request connection set-src ipv4(1.1.1.1)\n    server app1 ssh-piper-hostname:22 send-proxy\n```\n\nWhen connecting through HAProxy, sshpiper will log connections as originating from `1.1.1.1`.  The proxy protocol data is designed to survive multiple load balancers or proxies and pass through to sshpiper at the end, so it should only be enabled trusted environments. This should be behind a configuration option or startup flag to prevent abuse when public connections can be made to sshpiper.\n\nThis is also backed up by [the specification for proxy protocol](https://www.haproxy.org/download/1.8/doc/proxy-protocol.txt):\n\n> The receiver MUST be configured to only receive the protocol described in this\nspecification and MUST not try to guess whether the protocol header is present\nor not. This means that the protocol explicitly prevents port sharing between\npublic and private access. Otherwise it would open a major security breach by\nallowing untrusted parties to spoof their connection addresses. The receiver\nSHOULD ensure proper access filtering so that only trusted proxies are allowed\nto use this protocol.\n\n### Impact\n\nAny users of sshpiper who need logs from it for whitelisting/rate limiting/security investigations could have them become much less useful if an attacker is sending a spoofed source address.","format":"markdown","source":"ghsa"},{"lang":"en","text":"sshpiper's enabling of proxy protocol without proper feature flagging allows faking source address in github.com/tg123/sshpiper","format":"markdown","source":"go"},{"lang":"es","text":"sshpiper es un proxy inverso para sshd. A partir de la versión 1.0.50 y antes de la versión 1.3.0, la forma en que se implementa el escucha del protocolo proxy en sshpiper puede permitir que un atacante falsifique su dirección de conexión. El commit 2ddd69876a1e1119059debc59fe869cb4e754430 agregó el escucha del protocolo proxy como el único escucha en sshpiper, sin opción para desactivar esta funcionalidad. Esto significa que cualquier conexión a la que sshpiper esté expuesto directamente (o en algunos casos indirectamente) puede utilizar el protocolo proxy para falsificar su dirección de origen. Cualquier usuario de sshpiper que necesite registros del mismo para incluirlos en listas blancas, limitar la velocidad o realizar investigaciones de seguridad podría volverlos mucho menos útiles si un atacante envía una dirección de origen falsificada. La versión 1.3.0 contiene un parche para el problema.","source":"nvd"}],"published":"2024-05-14T22:05:11.360Z","modified":"2026-09-10T03:50:13.239Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","score":5.3,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","score":5.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","score":5.3,"rating":"MEDIUM"}],"cwes":["CWE-345"],"affected":[{"ranges":[{"version":">= 1.0.50, < 1.3.0","status":"affected"}],"vendor":"tg123","product":"sshpiper","source":"cvelist"},{"ranges":[{"type":"custom","introduced":"1.0.5","fixed":"1.3.0","status":"affected"}],"vendor":"tg123","product":"sshpiper","cpe":"cpe:2.3:a:tg123:sshpiper:*:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"1.0.50","status":"affected","fixed":"1.3.0"}],"ecosystem":"Go","package":"github.com/tg123/sshpiper","purl":"pkg:golang/github.com/tg123/sshpiper","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"1.0.50","status":"affected","fixed":"1.3.0"}],"ecosystem":"Go","package":"github.com/tg123/sshpiper","purl":"pkg:golang/github.com/tg123/sshpiper","source":"go"}],"references":[{"url":"https://github.com/tg123/sshpiper/security/advisories/GHSA-4w53-6jvp-gg52","tags":["advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/tg123/sshpiper/commit/2ddd69876a1e1119059debc59fe869cb4e754430","tags":["fix","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/tg123/sshpiper/commit/70fb830dca26bea7ced772ce5d834a3e88ae7f53","tags":["fix","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-35175","tags":["advisory"],"sources":["ghsa","go"]},{"url":"https://github.com/tg123/sshpiper","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"partial","date":"2024-06-11T20:26:15.343Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-35175","url":"https://www.cve.org/CVERecord?id=CVE-2024-35175","licence":"CVE Terms of Use","modified":"2024-08-02T03:07:46.846Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-4w53-6jvp-gg52","url":"https://github.com/advisories/GHSA-4w53-6jvp-gg52","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:13.239Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2024-2853","url":"https://pkg.go.dev/vuln/GO-2024-2853","licence":"CC-BY-4.0","modified":"2026-03-03T04:55:22.341Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-35175","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-35175","licence":"Public domain","modified":"2026-06-17T07:34:29.143Z"}],"updatedAt":"2026-11-25T22:58:40.359Z","epss":{"score":0.0026,"percentile":0.18888,"date":"2026-12-01T12:00:22.000Z"}}