CVE-2026-45047: Bird-lg-go has a Fatal Out-of-Memory (OOM) Denial of Service via Unbounded JSON Decoding
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.
Published May 11, 2026 · Updated Jun 8, 2026
Affected packages
github.com/xddxdd/bird-lg-go
- Ecosystem
- Go
- Affected
- < 0.0.0-20260507060110-0ff87024cb9e
- Fixed in
- 0.0.0-20260507060110-0ff87024cb9e
- Check
go list -m github.com/xddxdd/bird-lg-go
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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)
// ...Credited to 9Bakabaka.
References
- https://github.com/xddxdd/bird-lg-go/security/advisories/GHSA-39qr-rc93-vhqm
- https://github.com/xddxdd/bird-lg-go/commit/0ff87024cb9ed01fc5f5fdc6f4603fce4c123922
- https://github.com/xddxdd/bird-lg-go/releases/tag/v1.4.5
- https://nvd.nist.gov/vuln/detail/CVE-2026-45047
- https://github.com/advisories/GHSA-39qr-rc93-vhqm
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
