إرسال #780179: osrg GoBGP 4.3.0 Off-by-one Errorالمعلومات

عنوان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)
ارسال14/03/2026 11:28 AM (7 أشهر منذ)
الاعتدال30/03/2026 09:50 AM (16 days later)
الحالةتمت الموافقة
إدخال VulDB354155 [osrg GoBGP حتى 4.3.0 pkg/packet/bgp/bgp.go DecodeFromBytes data[1] تلف الذاكرة]
النقاط20

Are you interested in using VulDB?

Download the whitepaper to learn more about our service!