golang-github-go-viper-mapstructure — security advisory
A flaw was found in github.com/go-viper/mapstructure/v2, in the field processing component using mapstructure.WeakDecode. This vulnerability allows information disclosure through detailed error messages that may leak sensitive input values via malformed user-supplied data processed in security-critical contexts.
- Products
- golang-github-go-viper-mapstructure
- Affected versions
- 2.2.1-1, 2.2.1-2, 2.4.0-1, 2.5.0-2
- Fixed versions
- Not specified
- CVEs
- CVE-2025-11065
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 01:24 UTC · Revision 1
Source evidence
A flaw was found in github.com/go-viper/mapstructure/v2, in the field processing component using mapstructure.WeakDecode. This vulnerability allows information disclosure through detailed error messages that may leak sensitive input values via malformed user-supplied data processed in security-critical contexts.
osv:UBUNTU-CVE-2025-11065
golang-github-go-viper-mapstructure
Fixed versions: Not specified
golang-github-go-viper-mapstructure
Fixed versions: Not specified
golang-github-go-viper-mapstructure
Fixed versions: Not specified
Complete source record
{
"id": "25a4db4b45789a604d0da5875e421d6e57fe4a58e6b1dae27c58b25185018c39",
"url": "https://osv.dev/vulnerability/UBUNTU-CVE-2025-11065",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "UBUNTU-CVE-2025-11065",
"summary": "A flaw was found in github.com/go-viper/mapstructure/v2, in the field processing component using mapstructure.WeakDecode. This vulnerability allows information disclosure through detailed error messages that may leak sensitive input values via malformed user-supplied data processed in security-critical contexts.",
"evidence": "osv:UBUNTU-CVE-2025-11065",
"products": [
{
"name": {
"value": "golang-github-go-viper-mapstructure",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.2.1-1",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "golang-github-go-viper-mapstructure",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.4.0-1",
"evidence": "/affected/1/versions"
},
{
"value": "2.5.0-2",
"evidence": "/affected/1/versions"
}
]
},
{
"name": {
"value": "golang-github-go-viper-mapstructure",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.2.1-1",
"evidence": "/affected/2/versions"
},
{
"value": "2.2.1-2",
"evidence": "/affected/2/versions"
},
{
"value": "2.4.0-1",
"evidence": "/affected/2/versions"
}
]
}
],
"severity": "medium",
"structured": {
"id": "UBUNTU-CVE-2025-11065",
"aliases": [
"UBUNTU-CVE-2025-11065"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N"
},
{
"type": "Ubuntu",
"score": "medium"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "golang-github-go-viper-mapstructure",
"purl": "pkg:deb/ubuntu/golang-github-go-viper-mapstructure?arch=source&distro=questing",
"ecosystem": "Ubuntu:25.10"
},
"versions": [
"2.2.1-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-11065.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "golang-github-go-viper-mapstructure-dev",
"binary_version": "2.2.1-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "golang-github-go-viper-mapstructure",
"purl": "pkg:deb/ubuntu/golang-github-go-viper-mapstructure?arch=source&distro=stonking",
"ecosystem": "Ubuntu:26.10"
},
"versions": [
"2.4.0-1",
"2.5.0-2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-11065.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "golang-github-go-viper-mapstructure-dev",
"binary_version": "2.5.0-2"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "golang-github-go-viper-mapstructure",
"purl": "pkg:deb/ubuntu/golang-github-go-viper-mapstructure?arch=source&distro=resolute",
"ecosystem": "Ubuntu:26.04:LTS"
},
"versions": [
"2.2.1-1",
"2.2.1-2",
"2.4.0-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-11065.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "golang-github-go-viper-mapstructure-dev",
"binary_version": "2.4.0-1"
}
]
}
}
],
"modified": "2026-10-17T12:56:46.782350722Z",
"provider": "osv",
"upstream": [
"CVE-2025-11065"
],
"references": [
"https://ubuntu.com/security/CVE-2025-11065",
"https://www.cve.org/CVERecord?id=CVE-2025-11065",
"https://bugzilla.redhat.com/show_bug.cgi?id=2391829",
"https://github.com/go-viper/mapstructure/security/advisories/GHSA-2464-8j7c-4cjm",
"https://github.com/go-viper/mapstructure/commit/742921c9ba2854d27baa64272487fc5075d2c39c"
]
},
"related_cves": [
{
"value": "CVE-2025-11065",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 356243,
"published_at": "2026-01-26T20:16:00+00:00"
}