{"id":"CVE-2026-45047","aliases":["CVE-2026-45047","GHSA-39qr-rc93-vhqm","GO-2026-5077"],"related":[],"kind":"vulnerability","state":"published","title":"bird-lg-go: Fatal Out-of-Memory (OOM) Denial of Service via Unbounded JSON Decoding","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### 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    // ...","format":"markdown","source":"ghsa"},{"lang":"en","text":"Bird-lg-go has a Fatal Out-of-Memory (OOM) Denial of Service via Unbounded JSON Decoding in github.com/xddxdd/bird-lg-go","format":"markdown","source":"go"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2026-05-11T16:17:48.000Z","modified":"2026-10-26T11:10:00.157Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"}],"cwes":["CWE-400"],"affected":[{"ranges":[{"version":"< 1.4.5","status":"affected"}],"vendor":"xddxdd","product":"bird-lg-go","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.0.0-20260507060110-0ff87024cb9e"}],"ecosystem":"Go","package":"github.com/xddxdd/bird-lg-go","purl":"pkg:golang/github.com/xddxdd/bird-lg-go","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.0.0-20260507060110-0ff87024cb9e"}],"ecosystem":"Go","package":"github.com/xddxdd/bird-lg-go","purl":"pkg:golang/github.com/xddxdd/bird-lg-go","source":"go"}],"references":[{"url":"https://github.com/xddxdd/bird-lg-go/security/advisories/GHSA-39qr-rc93-vhqm","tags":["advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-45047","tags":["advisory"],"sources":["ghsa","go"]},{"url":"https://github.com/xddxdd/bird-lg-go/commit/0ff87024cb9ed01fc5f5fdc6f4603fce4c123922","tags":["fix","web"],"sources":["ghsa","go"]},{"url":"https://github.com/xddxdd/bird-lg-go","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/xddxdd/bird-lg-go/releases/tag/v1.4.5","tags":["web"],"sources":["ghsa","go"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-05-27T18:03:03.834Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-45047","url":"https://www.cve.org/CVERecord?id=CVE-2026-45047","licence":"CVE Terms of Use","modified":"2026-05-27T18:03:10.363Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-39qr-rc93-vhqm","url":"https://github.com/advisories/GHSA-39qr-rc93-vhqm","licence":"CC-BY-4.0","modified":"2026-06-25T18:56:27.876Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2026-5077","url":"https://pkg.go.dev/vuln/GO-2026-5077","licence":"CC-BY-4.0","modified":"2026-06-25T18:45:16.454Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-45047","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-45047","licence":"Public domain","modified":"2026-10-26T11:10:00.157Z"}],"updatedAt":"2026-11-25T22:59:22.629Z","epss":{"score":0.00441,"percentile":0.40113,"date":"2026-12-01T12:00:22.000Z"}}