blob: e3ad086ab392c1f15f1321b518c12cd9b9a36643 [file] [edit]
{
"dataType": "CVE_RECORD",
"dataVersion": "5.0",
"cveMetadata": {
"cveId": "CVE-2026-42507"
},
"containers": {
"cna": {
"providerMetadata": {
"orgId": "1bb62c36-49e3-4200-9d77-64a1400537cc"
},
"title": "Arbitrary inputs are included in errors without any escaping in net/textproto",
"descriptions": [
{
"lang": "en",
"value": "When returning errors, functions in the net/textproto package would include its input as part of the error. This might allow an attacker to inject misleading content to errors that are printed or logged."
}
],
"affected": [
{
"vendor": "Go standard library",
"product": "net/textproto",
"collectionURL": "https://pkg.go.dev",
"packageName": "net/textproto",
"versions": [
{
"version": "0",
"lessThan": "1.25.11",
"status": "affected",
"versionType": "semver"
},
{
"version": "1.26.0-0",
"lessThan": "1.26.4",
"status": "affected",
"versionType": "semver"
}
],
"programRoutines": [
{
"name": "parseCodeLine"
},
{
"name": "Reader.ReadCodeLine"
},
{
"name": "readMIMEHeader"
},
{
"name": "Error.Error"
},
{
"name": "Reader.ReadMIMEHeader"
},
{
"name": "Reader.ReadResponse"
}
],
"defaultStatus": "unaffected"
}
],
"problemTypes": [
{
"descriptions": [
{
"lang": "en",
"description": "CWE-532: Insertion of Sensitive Information into Log File"
}
]
}
],
"references": [
{
"url": "https://go.dev/issue/79346"
},
{
"url": "https://go.dev/cl/777060"
},
{
"url": "https://groups.google.com/g/golang-announce/c/tKs3rmcBcKw"
},
{
"url": "https://pkg.go.dev/vuln/GO-2026-5039"
}
]
}
}
}