7.5high
bird-lg-go: Fatal Out-of-Memory (OOM) Denial of Service via Unbounded JSON Decoding
- Severity
- 7.5high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.44% (higher than 40% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-39qr-rc93-vhqmGO-2026-5077
Description
bird-lg-go is a BIRD looking glass in Go. Prior to 1.4.5, the apiHandler (and similarly webHandlerTelegramBot) processes user-provided JSON payloads by directly using json.NewDecoder(r.Body).Decode(&request) without restricting the maximum read size. An unauthenticated remote attacker can stream an extremely large, endless JSON payload (e.g., several Gigabytes of padding) over a single TCP connection. Because Go's JSON decoder attempts to allocate memory for the entire parsed structure, this rapidly exhausts the host's physical RAM or container limits, leading to an unrecoverable fatal error: runtime: out of memory. This vulnerability is fixed in 1.4.5.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| xddxdd bird-lg-go | < 1.4.5 | CVE List |
| github.com/xddxdd/bird-lg-go (Go) | before 0.0.0-20260507060110-0ff87024cb9e | GitHub Advisory Database, Go Vulnerability Database |
All scores
| GitHub_M | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| GitHub | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
bird-lg-go is a BIRD looking glass in Go. Prior to 1.4.5, the apiHandler (and similarly webHandlerTelegramBot) processes user-provided JSON payloads by directly using json.NewDecoder(r.Body).Decode(&request) without restricting the maximum read size. An unauthenticated remote attacker can stream an extremely large, endless JSON payload (e.g., several Gigabytes of padding) over a single TCP connection. Because Go's JSON decoder attempts to allocate memory for the entire parsed structure, this rapidly exhausts the host's physical RAM or container limits, leading to an unrecoverable fatal error: runtime: out of memory. This vulnerability is fixed in 1.4.5.
GitHub Advisory Database
Summary
The apiHandler (and similarly webHandlerTelegramBot) processes user-provided JSON payloads by directly using json.NewDecoder(r.Body).Decode(&request) without restricting the maximum read size. An unauthenticated remote attacker can stream an extremely large, endless JSON payload (e.g., several Gigabytes of padding) over a single TCP connection. Because Go's JSON decoder attempts to allocate memory for the entire parsed structure, this rapidly exhausts the host's physical RAM or container limits, leading to an unrecoverable fatal error: runtime: out of memory.
This causes the Linux OOM Killer to instantly terminate the entire bird-lg-go daemon, resulting in a severe Remote Denial of Service (RDoS).
Details
In api.go:
func apiHandler(w http.ResponseWriter, r *http.Request) {
var request apiRequest
// VULNERABILITY: No http.MaxBytesReader protection before JSON decode
err := json.NewDecoder(r.Body).Decode(&request)
// ...
Go Vulnerability Database
Bird-lg-go has a Fatal Out-of-Memory (OOM) Denial of Service via Unbounded JSON Decoding in github.com/xddxdd/bird-lg-go
NVD (es)
bird-lg-go es un looking glass BIRD en Go. Antes de la versión 1.4.5, el apiHandler (y de manera similar webHandlerTelegramBot) procesa las cargas útiles JSON proporcionadas por el usuario utilizando directamente json.NewDecoder(r.Body).Decode(&request) sin restringir el tamaño máximo de lectura. Un atacante remoto no autenticado puede transmitir una carga útil JSON extremadamente grande e interminable (por ejemplo, varios Gigabytes de relleno) a través de una única conexión TCP. Debido a que el decodificador JSON de Go intenta asignar memoria para toda la estructura analizada, esto agota rápidamente la RAM física del host o los límites del contenedor, lo que lleva a un error fatal irrecuperable: runtime: out of memory. Esta vulnerabilidad se corrige en la versión 1.4.5.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-45047 changed 2026-05-27 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-39qr-rc93-vhqm changed 2026-06-25 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2026-5077 changed 2026-06-25 | CC-BY-4.0 |
| NVD | CVE-2026-45047 changed 2026-10-26 | Public domain |