Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/fatedier/frp
  4. ›
  5. GHSA-26gq-p25f-99cp

GHSA-26gq-p25f-99cp: frp: Unauthenticated Remote Denial of Service in the frp SSH Tunnel Gateway via Integer Overflow

July 24, 2026

An integer-overflow vulnerability in the frp server’s optional SSH Tunnel Gateway lets any unauthenticated remote attacker crash the entire frps process with a single five-byte message. When the gateway parses an SSH exec channel request in pkg/ssh/server.go, it adds a small constant to a four-byte length value taken directly from the request. Because that length is fully attacker-controlled, a value of 0xFFFFFFFF makes the addition wrap around to a tiny number, defeating the only bounds check and forcing an out-of-range slice. Go raises a panic that nothing recovers, so the whole server exits. In the default gateway mode SSH clients are not authenticated and the request is handled before any frp token is checked, so the crash is reachable pre-authentication. It carries no state and is trivially repeatable, turning one crash into a sustained outage that drops every tunnel for every user.

References

  • github.com/advisories/GHSA-26gq-p25f-99cp
  • github.com/fatedier/frp/commit/7dc7be930e2452ae93fd32f2a77f8c6fcd0b652b
  • github.com/fatedier/frp/pull/5428
  • github.com/fatedier/frp/releases/tag/v0.70.1
  • github.com/fatedier/frp/security/advisories/GHSA-26gq-p25f-99cp

Code Behaviors & Features

Detect and mitigate GHSA-26gq-p25f-99cp with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 0.53.0 before 0.70.1

Fixed versions

  • 0.70.1

Solution

Upgrade to version 0.70.1 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-129: Improper Validation of Array Index
  • CWE-190: Integer Overflow or Wraparound

Source file

go/github.com/fatedier/frp/GHSA-26gq-p25f-99cp.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 08 Aug 2026 00:18:32 +0000.