Skip to main content

Improper Validation of Array Index


Severity High
Score 7.5/10


In x/text versions prior to 0.3.6 in Go, an "index out of range" panic occurs in "language.ParseAcceptLanguage" while parsing the "-u- extension". "x/text/language" is supposed to be able to parse an HTTP Accept-Language header.

  • LOW
  • NONE
  • NONE
  • NONE
  • NONE
  • HIGH

CWE-129 - Improper Validation of Array Index

The product uses untrusted input when calculating or using an array index, but the product does not validate or incorrectly validates the index to ensure the index references a valid position within the array.

Advisory Timeline

  • Published