| 제목 | osrg GoBGP 4.3.0 Off-by-one Error |
|---|
| 설명 | An off-by-one vulnerability was found in osrg GoBGP version 4.3.0. This vulnerability affects the CapSoftwareVersion.DecodeFromBytes function in the pkg/packet/bgp/bgp.go file. The root cause is an incorrect slice boundary calculation when extracting the Software Version string from a BGP OPEN capability payload. Because the Go slice upper bound is improperly calculated (using data[1:c.SoftwareVersionLen] instead of the correct data[1:1+c.SoftwareVersionLen]), the parser reads one byte fewer than intended. This causes the decoded Software Version string to be truncated, resulting in an inconsistency with the original encoded representation. |
|---|
| 원천 | ⚠️ https://github.com/osrg/gobgp/commit/67c059413470df64bc20801c46f64058e88f800f |
|---|
| 사용자 | Sunxj (UID 96442) |
|---|
| 제출 | 2026. 03. 14. AM 11:28 (7 개월 ago) |
|---|
| 모더레이션 | 2026. 03. 30. AM 09:50 (16 days later) |
|---|
| 상태 | 수락 |
|---|
| VulDB 항목 | 354155 [osrg GoBGP 까지 4.3.0 pkg/packet/bgp/bgp.go DecodeFromBytes data[1] 메모리 손상] |
|---|
| 포인트들 | 20 |
|---|