Fatedier frp
frp: Unauthenticated Remote Denial of Service in the frp SSH Tunnel Gateway via Integer Overflow
frp is a fast reverse proxy. From 0.53.0 until 0.70.1, frp's optional SSH Tunnel Gateway in pkg/ssh/server.go parses an SSH exec channel request by adding 4 to an attacker-controlled four-byte big-endian length. A length of 0xFFFFFFFF makes the uint32 addition wrap to 3, defeats the payload bounds check, and causes payload[4:3] to panic in TunnelServer.handleNewChannel. When no authorized-keys file is configured, sshConfig.NoClientAuth permits an unauthenticated peer to reach this channel phase before the frp token is checked, so a single five-byte request terminates the frps process and drops every active tunnel. This issue is fixed in version 0.70.1.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 0.53.0, < 0.70.1
Fixed in 0.70.1
Mitigation
Upgrade frp to 0.70.1 or later.
References
- Vendor advisory github.com/fatedier/frp/security/advisories/GH…
- Patch github.com/fatedier/frp/pull/5428
- Patch github.com/fatedier/frp/commit/7dc7be930e2452a…
1 more
- Release notes github.com/fatedier/frp/releases/tag/v0.70.1
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.