{"id":"CVE-2026-45047","aliases":["GHSA-39qr-rc93-vhqm","GO-2026-5077"],"url":"https://o3.security/vulnerability/CVE-2026-45047","summary":"bird-lg-go: Fatal Out-of-Memory (OOM) Denial of Service via Unbounded JSON Decoding","details":"### Summary\nThe `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`. \n\nThis causes the Linux OOM Killer to instantly terminate the entire `bird-lg-go` daemon, resulting in a severe Remote Denial of Service (RDoS).\n\n### Details\nIn `api.go`:\n```go\nfunc apiHandler(w http.ResponseWriter, r *http.Request) {\n    var request apiRequest\n    // VULNERABILITY: No http.MaxBytesReader protection before JSON decode\n    err := json.NewDecoder(r.Body).Decode(&request) \n    // ...","published":"2026-05-27T16:37:36.191Z","modified":"2026-08-12T03:51:29.910258797Z","cvss":{"score":7.5,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"},"epss":{"score":0.00441,"percentile":0.36557,"asOf":"2026-08-24"},"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"Go","name":"github.com/xddxdd/bird-lg-go","fixedVersion":"0.0.0-20260507060110-0ff87024cb9e"}],"fix":{"url":"https://github.com/xddxdd/bird-lg-go/commit/0ff87024cb9ed01fc5f5fdc6f4603fce4c123922","label":"xddxdd/bird-lg-go@0ff8702"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/45xxx/CVE-2026-45047.json"},{"type":"ADVISORY","url":"https://github.com/xddxdd/bird-lg-go/security/advisories/GHSA-39qr-rc93-vhqm"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-45047"},{"type":"WEB","url":"https://github.com/xddxdd/bird-lg-go/commit/0ff87024cb9ed01fc5f5fdc6f4603fce4c123922"},{"type":"PACKAGE","url":"https://github.com/xddxdd/bird-lg-go"},{"type":"WEB","url":"https://github.com/xddxdd/bird-lg-go/releases/tag/v1.4.5"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T03:51:29.910258797Z"}}