High
Security advisory
In x/text in Go before v0.3.5, a "slice bounds out of range" panic occurs in language.ParseAcceptLanguage while processing a BCP 47 tag. (x/text/language is supposed to be able to parse an HTTP Accept-Language header.)
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2020-28852
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 07:13 UTC · Revision 1
Source evidence
In x/text in Go before v0.3.5, a "slice bounds out of range" panic occurs in language.ParseAcceptLanguage while processing a BCP 47 tag. (x/text/language is supposed to be able to parse an HTTP Accept-Language header.)
osv:CVE-2020-28852
Complete source record
{
"id": "f506f6b2e81a49b7fedb9e15041d05225c909969e41bd93cb1c2729e34d8fc15",
"url": "https://osv.dev/vulnerability/CVE-2020-28852",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2020-28852",
"summary": "In x/text in Go before v0.3.5, a \"slice bounds out of range\" panic occurs in language.ParseAcceptLanguage while processing a BCP 47 tag. (x/text/language is supposed to be able to parse an HTTP Accept-Language header.)",
"evidence": "osv:CVE-2020-28852",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2020-28852",
"aliases": [
"CVE-2020-28852"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/golang/text",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "75a595aef632b07c6eeaaa805adb6f0f66e4130e"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:golang:text:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "0.3.5"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"v0.3.4",
"v0.3.3",
"v0.3.2",
"v0.3.1",
"v0.3.0",
"v0.2.0",
"v0.1.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2020-28852.json"
}
}
],
"modified": "2026-10-24T10:30:50.275154465Z",
"provider": "osv",
"references": [
"https://security.netapp.com/advisory/ntap-20210212-0004/",
"https://github.com/golang/go/issues/42536"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2020-28852",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 437203,
"published_at": "2021-01-02T06:15:13.1+00:00"
}