Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2025-11065: Generation of Error Message Containing Sensitive Information

0
Medium
VulnerabilityCVE-2025-11065cvecve-2025-11065
Published: Mon Jan 26 2026 (01/26/2026, 19:36:28 UTC)
Source: CVE Database V5

Description

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.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 02/27/2026, 18:45:28 UTC

Technical Analysis

CVE-2025-11065 is a vulnerability identified in the Go package github.com/go-viper/mapstructure/v2, specifically within the WeakDecode function responsible for decoding and processing fields from user-supplied data. This function is often used to map input data into Go structs, a common operation in configuration parsing and data deserialization. The flaw manifests when malformed or crafted input data triggers error messages that inadvertently include sensitive input values. These detailed error messages can leak confidential information if they are logged, displayed, or otherwise exposed in security-sensitive environments. The vulnerability is classified with a CVSS v3.1 score of 5.3 (medium severity), indicating a moderate risk. The attack vector is network-based (AV:N), with high attack complexity (AC:H), no privileges required (PR:N), but requires user interaction (UI:R). The scope is unchanged (S:U), and the impact is high on confidentiality (C:H), with no impact on integrity (I:N) or availability (A:N). This means an attacker who can induce error conditions through crafted inputs and convince a user to interact with the system may obtain sensitive data disclosures. No known exploits have been reported in the wild, and no patches or fixes are currently linked, suggesting the vulnerability is newly disclosed or under active investigation. The vulnerability is particularly relevant for applications that use mapstructure for decoding user inputs in security-critical contexts, such as configuration management, authentication, or authorization workflows, where leaked data could include secrets, tokens, or personal information.

Potential Impact

The primary impact of CVE-2025-11065 is the unauthorized disclosure of sensitive information through error messages. This can lead to exposure of confidential data such as credentials, tokens, or personally identifiable information if the application logs or displays these error messages to unauthorized users. While the vulnerability does not affect data integrity or system availability, the confidentiality breach can facilitate further attacks like credential theft, privilege escalation, or targeted phishing. Organizations using the affected Go library in backend services, microservices, or configuration management tools are at risk, especially if error handling is not properly sanitized. The requirement for user interaction and high attack complexity somewhat limits exploitation, but in environments where user input is processed and error messages are visible, the risk remains significant. The absence of known exploits in the wild reduces immediate threat but does not eliminate future risk once exploit code becomes available. The vulnerability could undermine trust in affected applications and lead to compliance violations if sensitive data is exposed.

Mitigation Recommendations

To mitigate CVE-2025-11065, organizations should first audit their use of the mapstructure library, particularly the WeakDecode function, to identify where user-supplied data is processed. Developers should implement strict input validation and sanitization to prevent malformed data from triggering detailed error messages. Error handling routines must be reviewed and updated to avoid including sensitive input values in error outputs, logs, or user-facing messages. Employing centralized logging with access controls can reduce exposure of sensitive logs. Until an official patch is released, consider isolating or sandboxing components that use mapstructure to limit data exposure. Monitoring for updates from the library maintainers and applying patches promptly is critical. Additionally, implement runtime detection mechanisms to flag unusual error message patterns or data leakage attempts. Educate developers and security teams about the risks of verbose error messages and enforce secure coding practices that minimize information disclosure. Finally, conduct penetration testing focused on error message analysis to identify potential leaks.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
redhat
Date Reserved
2025-09-26T12:01:08.227Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 6977c5a14623b1157cb6ff7c

Added to database: 1/26/2026, 7:50:57 PM

Last enriched: 2/27/2026, 6:45:28 PM

Last updated: 3/24/2026, 1:24:08 PM

Views: 31

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses