Advisory

GHSA-39qr-rc93-vhqm

Also known as: CVE-2026-45047, GO-2026-5077

Summary

Bird-lg-go has a Fatal Out-of-Memory (OOM) Denial of Service via Unbounded JSON Decoding

Details

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) 
    // ...

Severity

High Basis: The source's own band: HIGH

Dates

Published
2026-05-11 16:17 UTC
Modified
2026-06-25 18:56 UTC

Affected packages and fixes

github.com/xddxdd/bird-lg-go

Go · All systems

Affected

  • introduced 0, fixed 0.0.0-20260507060110-0ff87024cb9e (semver)

Fixed versions

0.0.0-20260507060110-0ff87024cb9e

Fix

  • Fixed version 0.0.0-20260507060110-0ff87024cb9e
    go get github.com/xddxdd/[email protected]

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences