CINXE.COM
CWE - CWE-908: Use of Uninitialized Resource (4.16)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <?xml version="1.0" encoding="iso-8859-1"?> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head > <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <meta name="description" content="Common Weakness Enumeration (CWE) is a list of software weaknesses." /> <meta http-equiv="X-UA-Compatible" content="IE=Edge"> <link rel="shortcut icon" href="/favicon.ico" /> <link href="/css/main.css?version=4.0.022420" rel="stylesheet" type="text/css" /> <link href="/css/custom.css" rel="stylesheet" type="text/css" /> <!--[if IE]> <link rel="stylesheet" type="text/css" href="/css/ie.css?version=1.7" /> <![endif]--> <script src="/includes/custom_filter.js" language="JavaScript" type="text/javascript"></script> <script src="/includes/browserheight.js" language="JavaScript" type="text/javascript"></script> <script src="/includes/jquery.js" language="JavaScript" type="text/javascript"></script> <script src="/includes/cwe_minimizer.js" language="JavaScript" type="text/javascript"></script> <script src="/includes/cookie.js" language="JavaScript" type="text/javascript"></script> <script src="/includes/includeglossarydef.js" language="JavaScript" type="text/javascript"></script> <link href="/css/print.css?version=1.11" rel="stylesheet" media="print" type="text/css" /> <link href="/css/user_skins/complete.css" rel="stylesheet" type="text/css" /> <noscript> <style type="text/css"> #script { visibility:collapse; visibility:hidden; font-size:0px; height:0px; width:0px } #noscript { visibility:visible; font-size:inherit; height:inherit; width:inherit} </style> </noscript> <title>CWE - CWE-908: Use of Uninitialized Resource (4.16) </title> </head> <body onload="onloadCookie()"> <a name="top" id="top"></a> <div id="MastHead" style="width:100%"> <div style="width:60%;float:left;padding-top:15px;padding-left:10px;padding-bottom:2px;"> <a href="/index.html" style="color:#32498D; text-decoration:none"> <img src="/images/cwe_logo.jpg" width="153" height="55" style="float:left;border:0;margin-right:6px" alt="CWE" /> <h1 style="color:#314a8d;font-size:1.5em;font-family:'Verdana',sans-serif;#eee;margin: .1em auto">Common Weakness Enumeration</h1> <p style="color:#314a8d;font-family:'Times New Roman';font-style:italic;font-size:1em;#eee;margin:.1em auto 0 auto">A community-developed list of SW & HW weaknesses that can become vulnerabilities</p> </a> </div> <div style="float:right;padding-top:0px;text-align:right;padding-left:8px;padding-right:4px;padding-bottom:0px;"><a href="/about/new_to_cwe.html" title="New to CWE click here logo"><img src="/images/new_to_cwe/new_to_cwe_click_here.png" height="90" border="0" alt="New to CWE? click here!" style="text-align:center"/></a></div> <div style="float:right;padding-top:0px;text-align:right;padding-left:0px;padding-right:4px;padding-bottom:0px;"><a href="/scoring/lists/2021_CWE_MIHW.html" title="CWE Most Important Hardware Weaknesses"> <img src="/images/mihw_logo.svg" width="90" border="0" alt="CWE Most Important Hardware Weaknesses" style="vertical-align:bottom"/></a></div> <div style="float:right;padding-top:0px;text-align:right;padding-left:0px;padding-right:4px;padding-bottom:0px;"><a href="/top25/" title="CWE Top 25"><img src="/images/cwe_top_25_logo_simple.svg" width="90" border="0" alt="CWE Top 25 Most Dangerous Weaknesses" style="vertical-align:bottom"/></a></div> </div><!--End Masthead div--> <div id="HeaderBar" class="noprint"> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="100%" align="left" style="padding-left:10px; font-size:75%;"> <a href="/" >Home</a> > <a href="/data/index.html" >CWE List</a> > CWE-908: Use of Uninitialized Resource (4.16) </td> <td align="right" nowrap="nowrap" style="padding-right:12px"> <!-- Begin /includes/search_cwe_id.html --> <div class="noprint"> <form action="/cgi-bin/jumpmenu.cgi" align="right" style="padding:0px; margin:0px"> ID <label for="id" style="padding-right:5px">Lookup:</label> <input id="id" name="id" type="text" style="width:50px; font-size:80%" maxlength="10" /> <input value="Go" style="padding: 0px; font-size:80%" type="submit"> </form> </div> <!-- End /includes/search_cwe_id.html --> </td> </tr> </table> </div> <!--//HeaderBar--> <div class="yesprint"> <hr width="100%" size="1" style="clear:both" color="#000000" /> </div> <div class="topnav"> <ul> <li><a href="/index.html">Home</a></li> <li> <div class="dropdown"> <a href="/about/index.html"><button class="dropbtn">About</button> ▼</a> <div class="dropdown-content"> <a href="/about/index.html">About</a> <a href="/about/new_to_cwe.html">New to CWE</a> <a href="/about/user_stories.html">User Stories</a> <a href="/about/cwe_videos.html">Videos</a> <a href="/about/history.html">History</a> <a href="/about/documents.html">Documents</a> <a href="/about/faq.html">FAQs</a> <a href="/documents/glossary/index.html">Glossary</a> </div> </div> </li> <li> <div class="dropdown"> <a href="/data/index.html"><button class="dropbtn">CWE List</button> ▼</a> <div class="dropdown-content"> <a href="/data/index.html">Latest Version</a> <a href="/data/downloads.html">Downloads</a> <a href="/data/reports.html">Reports</a> <a href="/data/pdfs.html">Visualizations</a> <a href="/data/archive.html">Archive</a> </div> </div> </li> <li> <div class="dropdown"> <a href="/documents/cwe_usage/guidance.html"><button class="dropbtn">Mapping</button> ▼</a> <div class="dropdown-content"> <a href="/documents/cwe_usage/guidance.html">Root Cause Mapping Guidance</a> <a href="/documents/cwe_usage/quick_tips.html">Root Cause Mapping Quick Tips</a> <a href="/documents/cwe_usage/mapping_examples.html">Root Cause Mapping Examples</a> </div> </div> </li> <li> <div class="dropdown"> <a href="/scoring/index.html#top_n_lists"><button class="dropbtn">Top-N Lists</button> ▼</a> <div class="dropdown-content"> <a href="/top25/">Top 25 Software</a> <a href="/scoring/lists/2021_CWE_MIHW.html">Top Hardware</a> <a href="/top25/archive/2023/2023_kev_list.html">Top 10 KEV Weaknesses</a> </div> </div> </li> <li> <div class="dropdown"> <a href="/community/index.html"><button class="dropbtn">Community</button> ▼</a> <div class="dropdown-content"> <a href="/community/index.html">Community</a> <a href="/community/working_groups.html">Working Groups & Special Interest Groups</a> <a href="/community/board.html">Board</a> <a href="/community/board.html#boardarchives">Board Meeting Minutes</a> <a href="/community/registration.html">CWE Discussion List</a> <a target="_blank" href="https://www.mail-archive.com/cwe-research-list@mitre.org/">CWE Discussion Archives</a> <a href="/community/submissions/overview.html">Contribute Weakness Content to CWE</a> </div> </div> </li> <li> <div class="dropdown"> <a href="/news/"><button class="dropbtn">News</button> ▼</a> <div class="dropdown-content"> <a href="/news/">Current News</a> <a href="https://twitter.com/CweCapec" target="_blank" rel="noopener noreferrer">X-Twitter <img src="/images/x-logo-black.png" width="12" height="12" style="position:relative; vertical-align:bottom; padding-left:3px; top:-1px" title="X-Twitter"></a> <a href="https://mastodon.social/@CWE_Program" target="_blank" rel="noopener noreferrer">Mastodon <img src="/images/mastodon-logo.png" width="14" height="14" style="position:relative; vertical-align:bottom; padding-left:3px; top:-1px" title="X (formerly Twitter)"></a> <a href="https://www.linkedin.com/showcase/cve-cwe-capec" target="_blank" rel="noopener noreferrer">LinkedIn <img src="/images/linkedin_sm.jpg" width="14" height="14" style="position:relative; vertical-align:bottom; padding-left:3px; top:-1px" title="LinkedIn"></a> <a href="https://www.youtube.com/channel/UCpY9VIpRmFK4ebD6orssifA" target="_blank" rel="noopener noreferrer">YouTube <img src="/images/youtube.png" width="14" height="14" style="position:relative; vertical-align:bottom; padding-left:3px; top:-1px" alt="YouTube"></a> <a href="/news/podcast.html">Podcast <img src="/images/out_of_bounds_read_logo.png" width="16" height="16" style="position:relative; vertical-align:bottom; padding-left:3px; top:-1px" alt="Out of Bounds Read Podcast"></a> <a href="https://medium.com/@CWE_CAPEC" target="_blank" rel="noopener noreferrer">Medium <img src="/images/medium_sm.png" width="14" height="14" style="position:relative; vertical-align:bottom; padding-left:3px; top:-1px" alt="Medium"></a> <a href="/news/archives/index.html">News Archive</a> </div> </li> <li style="border-color:#aaaaaa"><a href="/find/index.html">Search</a></li> </ul> </div> <table width="100%" border="0" cellspacing="0" cellpadding="0" id="MainPane"> <tr> <!-- begin left side menu --> <td valign="top" rowspan="2" id="LeftPane"> <!--include virtual="/includes/leftsidemenu.html" Removed 11212016--> <script type="text/javascript">browserheight();</script> </td> <!-- end left side menu --> <td style="height:1px"></td> <!-- begin right column --> <td valign="top" align="center" rowspan="2" nowrap="nowrap" id="RightPane"> </td> <!-- end right side menu --> </tr> <tr> <!-- begin content pane --> <td valign="top" width="100%" id="Contentpane"> <!--Glossary tags--> <div id="styled_popup" name="styled_popup" style="display:none; position:fixed; top:300; height:auto; width:300px; z-index:1000"> <table width="300" cellpadding="0" cellspacing="0" border="0" style="border:1px solid #32498D;"> <tr style="background-color:#32498D; color:#ffffff;"> <td width="100%" style="padding:1px 5px 1px 5px; border-bottom:1px solid #000000"><div width="100%" style="font-weight:bold;">CWE Glossary Definition</div></td> <td nowrap="nowrap" style="padding:1px; border-bottom:1px solid #000000" valign="top"><a href="javascript:styledPopupClose();"><img src="/images/layout/close.gif" border="0" alt="x"></a></td> </tr> <tr><td colspan="2" style="background: url(/images/layout/ylgradient.jpg); background-repeat: repeat-x repeat-y; padding:5px; background-color:#FFFFCC; " valign="top"> <div id="output" style="max-height:400px; overflow-y:auto"></div> </td></tr> </table> </div> <script src="/includes/nav.js" language="JavaScript" type="text/javascript" /></script> <noscript> <style>div.collapseblock { display:inline} </style> </noscript> <!-- Start main content --> <html xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" encoding="iso-8859-1"> <!-- Copyright (c) 2006-2024, The MITRE Corporation. CWE and the CWE logo are trademarks of The MITRE Corporation. --> <a xmlns:xhtml="http://www.w3.org/1999/xhtml" name="908"></a> <div style="overflow:auto;"> <h2 style="display:inline; margin:0px 0px 2px 0px; vertical-align: text-bottom">CWE-908: Use of Uninitialized Resource</h2> <div style="text-align:right; margin:5px 0px 0px 5px; padding-bottom:1px; white-space:nowrap;"></div> </div> <div xmlns:xhtml="http://www.w3.org/1999/xhtml" id="CWEDefinition" class="Weakness"> <div class="title"> <div class="status"> <table cellpadding="0" cellspacing="0" border="0" width="100%"> <tbody> <tr> <td valign="top" align="left" width="33%" nowrap> <div style="font-weight:bold"> Weakness ID: 908 </div><span> <span style="font-weight:bold"> <a href="#Vulnerability_Mapping_Notes_908">Vulnerability Mapping</a>:<span class="tool"> <span style="color:#4E8F4A">ALLOWED</span> <span class="tip">This CWE ID may be used to map to real-world vulnerabilities</span> </span> </span> <br> <span class="tool">Abstraction: <span style="font-weight:normal">Base</span> <span class="tip">Base - a weakness that is still mostly independent of a resource or technology, but with sufficient details to provide specific methods for detection and prevention. Base level weaknesses typically describe issues in terms of 2 or 3 of the following dimensions: behavior, property, technology, language, and resource.</span> </span> </span> </td> </tr> </tbody> </table> </div> </div> <div id="Filter_Menu" style="padding-bottom:10px;"> <div style="min-width:580px;display:inline-flex;" class="filterButtonList"> <div style="font-size:80%; color:#000066; font-style:italic; display:inline;height:40px;line-height:40px;min-width:200px;">View customized information: </div> <span class="tool"> <button id="ConceptualButton" type="button" onclick="selectButtonSkin('conceptual');">Conceptual</button> <span class='filter-tip'>For users who are interested in more notional aspects of a weakness. Example: educators, technical writers, and project/program managers.</span> </span> <span class="tool"> <button id="OperationalButton" type="button" onclick="selectButtonSkin('operational');">Operational</button> <span class='filter-tip'>For users who are concerned with the practical application and details about the nature of a weakness and how to prevent it from happening. Example: tool developers, security researchers, pen-testers, incident response analysts.</span> </span> <span class="tool"> <button id="MappingFriendlyButton" type="button" onclick="selectButtonSkin('mappingfriendly');">Mapping Friendly</button> <span class='filter-tip'>For users who are mapping an issue to CWE/CAPEC IDs, i.e., finding the most appropriate CWE for a specific issue (e.g., a CVE record). Example: tool developers, security researchers.</span> </span> <span class="tool"> <button id="CompleteButton" type="button" onclick="selectButtonSkin('complete');">Complete</button> <span class='filter-tip'>For users who wish to see all available information for the CWE/CAPEC entry.</span> </span> <span class="tool"> <button id="CustomButton" type="button" onclick="openCustomFilterModal();">Custom</button> <span class='filter-tip'>For users who want to customize what details are displayed.</span> </span> </div> <!-- The Modal --> <div id="customFilterModal" class="custom-filter-modal"> <!-- Modal content --> <div class="custom-filter-modal-content"> <span class="close" onclick="cancelCustomFilter();">×</span> <br> <h2 id="customFilterHeader" class="custom-filter-header">Edit Custom Filter</h2> <div id="customFilterCategories" class="custom-filter-categories"> <button class="modalFilterButton" onclick="selectCategory('conceptual')" title="For users who are interested in more notional aspects of a weakness. Example: educators, technical writers, and project/program managers.">Conceptual</button> <button class="modalFilterButton" onclick="selectCategory('operational')" title="For users who are concerned with the practical application and details about the nature of a weakness and how to prevent it from happening. Example: tool developers, security researchers, pen-testers, incident response analysts.">Operational</button> <button class="modalFilterButton" onclick="selectCategory('mappingfriendly')" title="For users who are mapping an issue to CWE/CAPEC IDs, i.e., finding the most appropriate CWE for a specific issue (e.g., a CVE record). Example: tool developers, security researchers.">Mapping Friendly</button> <button class="modalFilterButton" onclick="selectCategory('complete')" title="For users who wish to see all available information for the CWE/CAPEC entry">Select All</button> </div> <div id="customFilterMainBox" class="custom-filter-main-box"> <div id="customFilterLeftBox"> </div> <div id="customFilterRightBox"> </div> </div> <br> <div id="customFilterButtons" class="custom-filter-buttons"> <button class="modalFilterButton" onclick="defaultCustomFilter()" title="Reset the selected elements to the current custom filter setting.">Reset</button> <button class="modalFilterButton" onclick="clearCustomFilter();" title="Clear all the selected elements so that nothing is selected.">Clear</button> <button class="modalFilterButton" onclick="submitCustomFilter();" title="Submit your changes for the custom filter">Submit</button> <button class="modalFilterButton" onclick="cancelCustomFilter();" title="Cancel all changes made to the custom filter">Cancel</button> </div> </div> </div> <style> div.filterButtonList button { height:25px; border-radius:10px; width: 150px; margin-left:15px; margin-right:15px; } /* The Modal (background) */ .custom-filter-modal { display: none; /* Hidden by default */ position: fixed; /* Stay in place */ z-index: 1; /* Sit on top */ padding-top: 100px; /* Location of the box */ left: 0; top: 0; width: 100%; /* Full width */ height: 100%; /* Full height */ overflow: auto; /* Enable scroll if needed */ background-color: rgb(0,0,0); /* Fallback color */ background-color: rgba(0,0,0,0.4); /* Black w/ opacity */ z-index: 9999; } /* Modal Content */ .custom-filter-modal-content { background-color: #fefefe; margin: auto; padding: 20px; border: 1px solid #888; width: 800px; min-width: 800px; border-radius: 25px; } /* The Close Button */ .close { color: #aaaaaa; float: right; font-size: 28px; font-weight: bold; } .close:hover, .close:focus { color: #000; text-decoration: none; cursor: pointer; } .custom-filter-header, .custom-filter-categories, .custom-filter-main-box, .custom-filter-buttons { padding: 0px; display: flex; align-items: center; justify-content: center; } #customFilterLeftBox { float: left; width: 250px; min-width: 250px; padding: 10px; display: inline-block; } #customFilterRightBox { float: right; width: 250px; min-width: 250px; padding: 10px; display: inline-block; } .modalFilterButton { height:25px !important; border-radius:12px !important; width: 150px !important; margin-left:10px !important; margin-right:10px !important; } </style> <script> // When the user clicks anywhere outside of the modal, close it var modal = document.getElementById("customFilterModal"); window.onclick = function(event) { if (event.target == document.getElementById("customFilterModal")) { modal.style.display = "none"; document.getElementById("customFilterLeftBox").innerHTML = ""; document.getElementById("customFilterRightBox").innerHTML = ""; } } </script> </div> <div id="Description"> <div class="heading" id="Description_908"> <span> <a href="javascript:toggleblocksOC('908_Description');"> <img id="ocimg_908_Description" src="/images/head_more.gif" border="0" alt="+"></a> </span>Description </div> <div name="oc_908_Description" id="oc_908_Description" class="expandblock"> <div class="detail"> <div class="indent">The product uses or accesses a resource that has not been initialized.</div> </div> </div> </div> <div id="Extended_Description"> <div class="heading" id="Extended_Description_908"> <span> <a href="javascript:toggleblocksOC('908_Extended_Description');"> <img id="ocimg_908_Extended_Description" src="/images/head_more.gif" border="0" alt="+"></a> </span>Extended Description </div> <div name="oc_908_Extended_Description" id="oc_908_Extended_Description" class="expandblock"> <div class="detail"> <div class="indent"> When a resource has not been properly initialized, the product may behave unexpectedly. This may lead to a crash or invalid memory access, but the consequences vary depending on the type of resource and how it is used within the product. </div> </div> </div> </div> <div id="Common_Consequences"> <div class="heading" id="Common_Consequences_908"><span><a href="javascript:toggleblocksOC('908_Common_Consequences');"><img id="ocimg_908_Common_Consequences" src="/images/head_more.gif" border="0" alt="+"></a> </span>Common Consequences</div> <div name="oc_908_Common_Consequences" id="oc_908_Common_Consequences" class="expandblock"> <div class="tabledetail"> <div class="indent"><span class="section tool"><img src="/images/dictionary.gif" alt="Section Help"><span class="tip">This table specifies different individual consequences associated with the weakness. The Scope identifies the application security area that is violated, while the Impact describes the negative technical impact that arises if an adversary succeeds in exploiting this weakness. The Likelihood provides information about how likely the specific consequence is expected to be seen relative to the other consequences in the list. For example, there may be high likelihood that a weakness will be exploited to achieve a certain impact, but a low likelihood that it will be exploited to achieve a different impact.</span></span> <table width="98%" cellpadding="0" cellspacing="0" border="0" id="Detail"> <tr> <th valign="middle" width="135px" nowrap>Scope</th> <th valign="middle">Impact</th> <th valign="middle" width="100px" nowrap>Likelihood</th> </tr> <tr> <td valign="middle" nowrap>Confidentiality</td> <td valign="middle" width="100%"> <div style="padding-top:5px"> <p class="smaller" style="font-weight:normal"> <span class="subheading">Technical Impact: </span><i>Read Memory; Read Application Data</i> </p> </div> <div style="padding-top:5px">When reusing a resource such as memory or a program variable, the original contents of that resource may not be cleared before it is sent to an untrusted party.</div> </td> <td valign="middle" nowrap></td> </tr> <tr> <td valign="middle" nowrap>Availability</td> <td valign="middle" width="100%"> <div style="padding-top:5px"> <p class="smaller" style="font-weight:normal"> <span class="subheading">Technical Impact: </span><i>DoS: Crash, Exit, or Restart</i> </p> </div> <div style="padding-top:5px">The uninitialized resource may contain values that cause program flow to change in ways that the programmer did not intend.</div> </td> <td valign="middle" nowrap></td> </tr> </table> </div> </div> </div> </div> <div id="Potential_Mitigations"> <div class="heading" id="Potential_Mitigations_908"><span><a href="javascript:toggleblocksOC('908_Potential_Mitigations');"><img id="ocimg_908_Potential_Mitigations" src="/images/head_more.gif" border="0" alt="+"></a> </span>Potential Mitigations</div> <div name="oc_908_Potential_Mitigations" id="oc_908_Potential_Mitigations" class="expandblock"> <div class="detail"> <div class="indent"> <div id="Grouped"> <table width="98%" cellpadding="0" cellspacing="0" border="0" class="Detail"> <tr> <td valign="top"> <p class="subheading">Phase: Implementation</p> <div class="indent">Explicitly initialize the resource before use. If this is performed through an API function or standard procedure, follow all required steps.</div> </td> </tr> <tr> <td valign="top"> <p class="subheading">Phase: Implementation</p> <div class="indent">Pay close attention to complex conditionals that affect initialization, since some branches might not perform the initialization.</div> </td> </tr> <tr> <td valign="top"> <p class="subheading">Phase: Implementation</p> <div class="indent">Avoid race conditions (<a href="/data/definitions/362.html">CWE-362</a>) during initialization routines.</div> </td> </tr> <tr> <td valign="top"> <p class="subheading">Phase: Build and Compilation</p> <div class="indent">Run or compile the product with settings that generate warnings about uninitialized variables or data.</div> </td> </tr> </table> </div> </div> </div> </div> </div> <div id="Relationships"> <div class="heading" id="Relationships_908"> <span> <a href="javascript:toggleblocksOC('908_Relationships');"> <img id="ocimg_908_Relationships" src="/images/head_more.gif" border="0" alt="+"> </a> </span> Relationships </div> <div name="oc_908_Relationships" id="oc_908_Relationships" class="expandblock"> <div class="detail"> <div class="indent"> <span class="section tool"> <img src="/images/dictionary.gif" alt="Section Help"> <span class="tip">This table shows the weaknesses and high level categories that are related to this weakness. These relationships are defined as ChildOf, ParentOf, MemberOf and give insight to similar items that may exist at higher and lower levels of abstraction. In addition, relationships such as PeerOf and CanAlsoBe are defined to show similar weaknesses that the user may want to explore.</span> </span> <div id="relevant_table"> <div class="reltable"> <span><a href="javascript:toggleblocksOC('908_1000_relevant_table');"> <img id="ocimg_908_1000_relevant_table" src="/images/head_more.gif" border="0" alt="+"></a> </span>Relevant to the view "Research Concepts" (CWE-1000) <div name="oc_908_1000_relevant_table" id="oc_908_1000_relevant_table" class="expandblock"> <div class="tabledetail"> <div class="indent"> <div xmlns:saxon="http://saxon.sf.net/" xmlns:xalan="http://xml.apache.org/xalan" class="tabledetail"> <table width="98%" cellpadding="0" cellspacing="0" border="0" id="Detail"> <tr> <th valign="top" width="110px">Nature</th> <th valign="top" width="40px">Type</th> <th valign="top" width="50px">ID</th> <th valign="top">Name</th> </tr> <tbody> <tr class="primary Weakness"> <td valign="top">ChildOf</td> <td valign="top" nowrap class="right" align="center" style="padding-top:1px"> <span class="tool"><img src="/images/icons/class.gif" alt="Class" class="icon"> <span class="tip">Class - a weakness that is described in a very abstract fashion, typically independent of any specific language or technology. More specific than a Pillar Weakness, but more general than a Base Weakness. Class level weaknesses typically describe issues in terms of 1 or 2 of the following dimensions: behavior, property, and resource.</span> </span> </td> <td valign="top"> 665 </td> <td valign="top"> <a href="/data/definitions/665.html" target="_blank" rel="noopener noreferrer">Improper Initialization</a> </td> </tr> <tr class="primary Weakness"> <td valign="top">ParentOf</td> <td valign="top" nowrap class="right" align="center" style="padding-top:1px"> <span class="tool"><img src="/images/icons/variant.gif" alt="Variant" class="icon"> <span class="tip">Variant - a weakness that is linked to a certain type of product, typically involving a specific language or technology. More specific than a Base weakness. Variant level weaknesses typically describe issues in terms of 3 to 5 of the following dimensions: behavior, property, technology, language, and resource.</span> </span> </td> <td valign="top"> 457 </td> <td valign="top"> <a href="/data/definitions/457.html" target="_blank" rel="noopener noreferrer">Use of Uninitialized Variable</a> </td> </tr> <tr class="primary Weakness"> <td valign="top">CanFollow</td> <td valign="top" nowrap class="right" align="center" style="padding-top:1px"> <span class="tool"><img src="/images/icons/class.gif" alt="Class" class="icon"> <span class="tip">Class - a weakness that is described in a very abstract fashion, typically independent of any specific language or technology. More specific than a Pillar Weakness, but more general than a Base Weakness. Class level weaknesses typically describe issues in terms of 1 or 2 of the following dimensions: behavior, property, and resource.</span> </span> </td> <td valign="top"> 909 </td> <td valign="top"> <a href="/data/definitions/909.html" target="_blank" rel="noopener noreferrer">Missing Initialization of Resource</a> </td> </tr> </tbody> </table> </div> </div> </div> </div> </div> </div> <span class="section tool"> <img src="/images/dictionary.gif" alt="Section Help"> <span class="tip">This table shows the weaknesses and high level categories that are related to this weakness. These relationships are defined as ChildOf, ParentOf, MemberOf and give insight to similar items that may exist at higher and lower levels of abstraction. In addition, relationships such as PeerOf and CanAlsoBe are defined to show similar weaknesses that the user may want to explore.</span> </span> <div id="relevant_table"> <div class="reltable"> <span><a href="javascript:toggleblocksOC('908_699_relevant_table');"> <img id="ocimg_908_699_relevant_table" src="/images/head_more.gif" border="0" alt="+"></a> </span>Relevant to the view "Software Development" (CWE-699) <div name="oc_908_699_relevant_table" id="oc_908_699_relevant_table" class="expandblock"> <div class="tabledetail"> <div class="indent"> <div xmlns:saxon="http://saxon.sf.net/" xmlns:xalan="http://xml.apache.org/xalan" class="tabledetail"> <table width="98%" cellpadding="0" cellspacing="0" border="0" id="Detail"> <tr> <th valign="top" width="110px">Nature</th> <th valign="top" width="40px">Type</th> <th valign="top" width="50px">ID</th> <th valign="top">Name</th> </tr> <tbody> <tr class="primary Category"> <td valign="top">MemberOf</td> <td valign="top" nowrap class="right" align="center" style="padding-top:1px"> <span class="tool"><img src="/images/icons/category.gif" alt="Category" class="icon"> <span class="tip">Category - a CWE entry that contains a set of other entries that share a common characteristic.</span> </span> </td> <td valign="top"> 399 </td> <td valign="top"> <a href="/data/definitions/399.html" target="_blank" rel="noopener noreferrer">Resource Management Errors</a> </td> </tr> </tbody> </table> </div> </div> </div> </div> </div> </div> <span class="section tool"> <img src="/images/dictionary.gif" alt="Section Help"> <span class="tip">This table shows the weaknesses and high level categories that are related to this weakness. These relationships are defined as ChildOf, ParentOf, MemberOf and give insight to similar items that may exist at higher and lower levels of abstraction. In addition, relationships such as PeerOf and CanAlsoBe are defined to show similar weaknesses that the user may want to explore.</span> </span> <div id="relevant_table"> <div class="reltable"> <span><a href="javascript:toggleblocksOC('908_1003_relevant_table');"> <img id="ocimg_908_1003_relevant_table" src="/images/head_more.gif" border="0" alt="+"></a> </span>Relevant to the view "Weaknesses for Simplified Mapping of Published Vulnerabilities" (CWE-1003) <div name="oc_908_1003_relevant_table" id="oc_908_1003_relevant_table" class="expandblock"> <div class="tabledetail"> <div class="indent"> <div xmlns:saxon="http://saxon.sf.net/" xmlns:xalan="http://xml.apache.org/xalan" class="tabledetail"> <table width="98%" cellpadding="0" cellspacing="0" border="0" id="Detail"> <tr> <th valign="top" width="110px">Nature</th> <th valign="top" width="40px">Type</th> <th valign="top" width="50px">ID</th> <th valign="top">Name</th> </tr> <tbody> <tr class="primary Weakness"> <td valign="top">ChildOf</td> <td valign="top" nowrap class="right" align="center" style="padding-top:1px"> <span class="tool"><img src="/images/icons/class.gif" alt="Class" class="icon"> <span class="tip">Class - a weakness that is described in a very abstract fashion, typically independent of any specific language or technology. More specific than a Pillar Weakness, but more general than a Base Weakness. Class level weaknesses typically describe issues in terms of 1 or 2 of the following dimensions: behavior, property, and resource.</span> </span> </td> <td valign="top"> 665 </td> <td valign="top"> <a href="/data/definitions/665.html" target="_blank" rel="noopener noreferrer">Improper Initialization</a> </td> </tr> </tbody> </table> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div id="Modes_Of_Introduction"> <div class="heading" id="Modes_Of_Introduction_908"><span><a href="javascript:toggleblocksOC('908_Modes_Of_Introduction');"><img id="ocimg_908_Modes_Of_Introduction" src="/images/head_more.gif" border="0" alt="+"></a> </span>Modes Of Introduction</div> <div name="oc_908_Modes_Of_Introduction" id="oc_908_Modes_Of_Introduction" class="expandblock"> <div class="tabledetail"> <div class="indent"><span class="section tool"><img src="/images/dictionary.gif" alt="Section Help"><span class="tip">The different Modes of Introduction provide information about how and when this weakness may be introduced. The Phase identifies a point in the life cycle at which introduction may occur, while the Note provides a typical scenario related to introduction during the given phase.</span></span> <table width="98%" cellpadding="0" cellspacing="0" border="0" id="Detail"> <tr> <th valign="middle" width="110px">Phase</th> <th valign="middle">Note</th> </tr> <tr> <td valign="middle" nowrap>Implementation</td> <td valign="middle" width="100%"></td> </tr> </table> </div> </div> </div> </div> <div id="Applicable_Platforms"> <div class="heading" id="Applicable_Platforms_908"><span><a href="javascript:toggleblocksOC('908_Applicable_Platforms');"><img id="ocimg_908_Applicable_Platforms" src="/images/head_more.gif" border="0" alt="+"></a> </span>Applicable Platforms</div> <div name="oc_908_Applicable_Platforms" id="oc_908_Applicable_Platforms" class="expandblock"> <div class="detail"> <div class="indent"><span class="section tool"><img src="/images/dictionary.gif" alt="Section Help"><span class="tip">This listing shows possible areas for which the given weakness could appear. These may be for specific named Languages, Operating Systems, Architectures, Paradigms, Technologies, or a class of such platforms. The platform is listed along with how frequently the given weakness appears for that instance.</span></span> <p class="subheading">Languages</p> <div class="indent"> <p> Class: Not Language-Specific <span class="smaller" style="font-style:italic">(Undetermined Prevalence)</span> </p> </div> </div> </div> </div> </div> <div id="Likelihood_Of_Exploit"> <div class="heading" id="Likelihood_Of_Exploit_908"> <span> <a href="javascript:toggleblocksOC('908_Likelihood_Of_Exploit');"> <img id="ocimg_908_Likelihood_Of_Exploit" src="/images/head_more.gif" border="0" alt="+"> </a> </span>Likelihood Of Exploit </div> <div name="oc_908_Likelihood_Of_Exploit" id="oc_908_Likelihood_Of_Exploit" class="expandblock"> <div class="detail"> <div class="indent">Medium</div> </div> </div> </div> <div id="Demonstrative_Examples"> <div class="heading" id="Demonstrative_Examples_908"><span><a href="javascript:toggleblocksOC('908_Demonstrative_Examples');"><img id="ocimg_908_Demonstrative_Examples" src="/images/head_more.gif" border="0" alt="+"></a> </span>Demonstrative Examples</div> <div name="oc_908_Demonstrative_Examples" id="oc_908_Demonstrative_Examples" class="expandblock"> <div class="detail"> <div class="indent"> <p class="subheading">Example 1</p> <p>Here, a boolean initiailized field is consulted to ensure that initialization tasks are only completed once. However, the field is mistakenly set to true during static initialization, so the initialization code is never reached.</p> <div class="indent Bad"> <div id="ExampleCode" style="clear:both; padding-top:5px; padding-bottom:5px;"> <div class="shadow"> <div class="CodeHead"> <div style="float:right; font-style:italic; font-size:10px; color:#98A9B7">(bad code)</div> <div class="optheading smaller"> <span style="font-weight:normal; font-style:italic">Example Language: </span>Java </div> </div> <div class="top"> <div>private boolean initialized = true;<br/>public void someMethod() {<div style="margin-left:1em;"> <div>if (!initialized) {<div style="margin-left:1em;"> <div> <br/> <i>// perform initialization tasks</i> <br/>...<br/> <br/>initialized = true;</div> </div>}</div> </div> </div> </div> </div> </div> </div> <br> <p class="subheading">Example 2</p> <p>The following code intends to limit certain operations to the administrator only.</p> <div class="indent Bad"> <div id="ExampleCode" style="clear:both; padding-top:5px; padding-bottom:5px;"> <div class="shadow"> <div class="CodeHead"> <div style="float:right; font-style:italic; font-size:10px; color:#98A9B7">(bad code)</div> <div class="optheading smaller"> <span style="font-weight:normal; font-style:italic">Example Language: </span>Perl </div> </div> <div class="top"> <div>$username = GetCurrentUser();<br/>$state = GetStateData($username);<br/>if (defined($state)) {<div style="margin-left:1em;">$uid = ExtractUserID($state);</div>}<br/> <br/> <i># do stuff</i> <br/>if ($uid == 0) {<div style="margin-left:1em;">DoAdminThings();</div>}</div> </div> </div> </div> </div> <p>If the application is unable to extract the state information - say, due to a database timeout - then the $uid variable will not be explicitly set by the programmer. This will cause $uid to be regarded as equivalent to "0" in the conditional, allowing the original user to perform administrator actions. Even if the attacker cannot directly influence the state data, unexpected errors could cause incorrect privileges to be assigned to a user just by accident.</p> <br> <p class="subheading">Example 3</p> <p>The following code intends to concatenate a string to a variable and print the string.</p> <div class="indent Bad"> <div id="ExampleCode" style="clear:both; padding-top:5px; padding-bottom:5px;"> <div class="shadow"> <div class="CodeHead"> <div style="float:right; font-style:italic; font-size:10px; color:#98A9B7">(bad code)</div> <div class="optheading smaller"> <span style="font-weight:normal; font-style:italic">Example Language: </span>C </div> </div> <div class="top"> <div>char str[20];<br/>strcat(str, "hello world");<br/>printf("%s", str);</div> </div> </div> </div> </div> <p>This might seem innocent enough, but str was not initialized, so it contains random memory. As a result, str[0] might not contain the null terminator, so the copy might start at an offset other than 0. The consequences can vary, depending on the underlying memory.</p> <p>If a null terminator is found before str[8], then some bytes of random garbage will be printed before the "hello world" string. The memory might contain sensitive information from previous uses, such as a password (which might occur as a result of <a href="/data/definitions/14.html">CWE-14</a> or <a href="/data/definitions/244.html">CWE-244</a>). In this example, it might not be a big deal, but consider what could happen if large amounts of memory are printed out before the null terminator is found.</p> <p>If a null terminator isn't found before str[8], then a buffer overflow could occur, since strcat will first look for the null terminator, then copy 12 bytes starting with that location. Alternately, a buffer over-read might occur (<a href="/data/definitions/126.html">CWE-126</a>) if a null terminator isn't found before the end of the memory segment is reached, leading to a segmentation fault and crash.</p> <br> <p class="subheading">Example 4</p> <p>This example will leave test_string in an unknown condition when i is the same value as err_val, because test_string is not initialized (<a href="/data/definitions/456.html">CWE-456</a>). Depending on where this code segment appears (e.g. within a function body), test_string might be random if it is stored on the heap or stack. If the variable is declared in static memory, it might be zero or NULL. Compiler optimization might contribute to the unpredictability of this address.</p> <div class="indent Bad"> <div id="ExampleCode" style="clear:both; padding-top:5px; padding-bottom:5px;"> <div class="shadow"> <div class="CodeHead"> <div style="float:right; font-style:italic; font-size:10px; color:#98A9B7">(bad code)</div> <div class="optheading smaller"> <span style="font-weight:normal; font-style:italic">Example Language: </span>C </div> </div> <div class="top"> char *test_string;<br/> if (i != err_val)<br/> {<br/> <div style="margin-left:1em;">test_string = "Hello World!";</div> }<br/> printf("%s", test_string); </div> </div> </div> </div> <p><p>When the printf() is reached, test_string might be an unexpected address, so the printf might print junk strings (<a href="/data/definitions/457.html">CWE-457</a>).</p> <p> To fix this code, there are a couple approaches to making sure that test_string has been properly set once it reaches the printf().</p> <p>One solution would be to set test_string to an acceptable default before the conditional:</p> </p> <div class="indent Good"> <div id="ExampleCode" style="clear:both; padding-top:5px; padding-bottom:5px;"> <div class="shadow"> <div class="CodeHead"> <div style="float:right; font-style:italic; font-size:10px; color:#98A9B7">(good code)</div> <div class="optheading smaller"> <span style="font-weight:normal; font-style:italic">Example Language: </span>C </div> </div> <div class="top"> char *test_string = "Done at the beginning";<br/> if (i != err_val)<br/> {<br/> <div style="margin-left:1em;">test_string = "Hello World!";</div> }<br/> printf("%s", test_string); </div> </div> </div> </div> <p>Another solution is to ensure that each branch of the conditional - including the default/else branch - could ensure that test_string is set:</p> <div class="indent Good"> <div id="ExampleCode" style="clear:both; padding-top:5px; padding-bottom:5px;"> <div class="shadow"> <div class="CodeHead"> <div style="float:right; font-style:italic; font-size:10px; color:#98A9B7">(good code)</div> <div class="optheading smaller"> <span style="font-weight:normal; font-style:italic">Example Language: </span>C </div> </div> <div class="top"> char *test_string;<br/> if (i != err_val)<br/> {<br/> <div style="margin-left:1em;">test_string = "Hello World!";</div> }<br/> else {<br/> <div style="margin-left:1em;">test_string = "Done on the other side!";</div> }<br/> printf("%s", test_string); </div> </div> </div> </div> <br> </div> </div> </div> </div> <div id="Observed_Examples"> <div class="heading" id="Observed_Examples_908"><span><a href="javascript:toggleblocksOC('908_Observed_Examples');"><img id="ocimg_908_Observed_Examples" src="/images/head_more.gif" border="0" alt="+"></a> </span>Observed Examples</div> <div name="oc_908_Observed_Examples" id="oc_908_Observed_Examples" class="expandblock"> <div class="tabledetail"> <div class="indent"> <div style="margin-top: 10px"> <table width="98%" cellpadding="0" cellspacing="0" border="0" class="Detail"> <tr> <th valign="top" width="165px" nowrap>Reference</th> <th valign="top">Description</th> </tr> <tr> <td valign="top"> <div> <a href="https://www.cve.org/CVERecord?id=CVE-2019-9805" target="_blank" rel="noopener noreferrer">CVE-2019-9805</a> </div> </td> <td valign="top"> <div class="indent">Chain: Creation of the packet client occurs before initialization is complete (<a href="/data/definitions/696.html">CWE-696</a>) resulting in a read from uninitialized memory (<a href="/data/definitions/908.html">CWE-908</a>), causing memory corruption.</div> </td> </tr> <tr> <td valign="top"> <div> <a href="https://www.cve.org/CVERecord?id=CVE-2008-4197" target="_blank" rel="noopener noreferrer">CVE-2008-4197</a> </div> </td> <td valign="top"> <div class="indent">Use of uninitialized memory may allow code execution.</div> </td> </tr> <tr> <td valign="top"> <div> <a href="https://www.cve.org/CVERecord?id=CVE-2008-2934" target="_blank" rel="noopener noreferrer">CVE-2008-2934</a> </div> </td> <td valign="top"> <div class="indent">Free of an uninitialized pointer leads to crash and possible code execution.</div> </td> </tr> <tr> <td valign="top"> <div> <a href="https://www.cve.org/CVERecord?id=CVE-2008-0063" target="_blank" rel="noopener noreferrer">CVE-2008-0063</a> </div> </td> <td valign="top"> <div class="indent">Product does not clear memory contents when generating an error message, leading to information leak.</div> </td> </tr> <tr> <td valign="top"> <div> <a href="https://www.cve.org/CVERecord?id=CVE-2008-0062" target="_blank" rel="noopener noreferrer">CVE-2008-0062</a> </div> </td> <td valign="top"> <div class="indent">Lack of initialization triggers NULL pointer dereference or double-free.</div> </td> </tr> <tr> <td valign="top"> <div> <a href="https://www.cve.org/CVERecord?id=CVE-2008-0081" target="_blank" rel="noopener noreferrer">CVE-2008-0081</a> </div> </td> <td valign="top"> <div class="indent">Uninitialized variable leads to code execution in popular desktop application.</div> </td> </tr> <tr> <td valign="top"> <div> <a href="https://www.cve.org/CVERecord?id=CVE-2008-3688" target="_blank" rel="noopener noreferrer">CVE-2008-3688</a> </div> </td> <td valign="top"> <div class="indent">Chain: Uninitialized variable leads to infinite loop.</div> </td> </tr> <tr> <td valign="top"> <div> <a href="https://www.cve.org/CVERecord?id=CVE-2008-3475" target="_blank" rel="noopener noreferrer">CVE-2008-3475</a> </div> </td> <td valign="top"> <div class="indent">Chain: Improper initialization leads to memory corruption.</div> </td> </tr> <tr> <td valign="top"> <div> <a href="https://www.cve.org/CVERecord?id=CVE-2005-1036" target="_blank" rel="noopener noreferrer">CVE-2005-1036</a> </div> </td> <td valign="top"> <div class="indent">Chain: Bypass of access restrictions due to improper authorization (<a href="/data/definitions/862.html">CWE-862</a>) of a user results from an improperly initialized (<a href="/data/definitions/909.html">CWE-909</a>) I/O permission bitmap</div> </td> </tr> <tr> <td valign="top"> <div> <a href="https://www.cve.org/CVERecord?id=CVE-2008-3597" target="_blank" rel="noopener noreferrer">CVE-2008-3597</a> </div> </td> <td valign="top"> <div class="indent">Chain: game server can access player data structures before initialization has happened leading to NULL dereference</div> </td> </tr> <tr> <td valign="top"> <div> <a href="https://www.cve.org/CVERecord?id=CVE-2009-2692" target="_blank" rel="noopener noreferrer">CVE-2009-2692</a> </div> </td> <td valign="top"> <div class="indent">Chain: uninitialized function pointers can be dereferenced allowing code execution</div> </td> </tr> <tr> <td valign="top"> <div> <a href="https://www.cve.org/CVERecord?id=CVE-2009-0949" target="_blank" rel="noopener noreferrer">CVE-2009-0949</a> </div> </td> <td valign="top"> <div class="indent">Chain: improper initialization of memory can lead to NULL dereference</div> </td> </tr> <tr> <td valign="top"> <div> <a href="https://www.cve.org/CVERecord?id=CVE-2009-3620" target="_blank" rel="noopener noreferrer">CVE-2009-3620</a> </div> </td> <td valign="top"> <div class="indent">Chain: some unprivileged ioctls do not verify that a structure has been initialized before invocation, leading to NULL dereference</div> </td> </tr> </table> </div> </div> </div> </div> </div> <div id="Weakness_Ordinalities"> <div class="heading" id="Weakness_Ordinalities_908"><span><a href="javascript:toggleblocksOC('908_Weakness_Ordinalities');"><img id="ocimg_908_Weakness_Ordinalities" src="/images/head_more.gif" border="0" alt="+"></a> </span>Weakness Ordinalities</div> <div name="oc_908_Weakness_Ordinalities" id="oc_908_Weakness_Ordinalities" class="expandblock"> <div class="tabledetail"> <div class="indent"> <div style="margin-top: 10px"> <table width="98%" cellpadding="0" cellspacing="0" border="0" class="Detail"> <tr> <th valign="top" nowrap>Ordinality</th> <th valign="top" width="100%">Description</th> </tr> <tr> <td valign="top"> <div style="font-size:90%;">Primary</div> </td> <td valign="top"> <div style="font-size:90%; font-style:italic; padding:5px;"> (where the weakness exists independent of other weaknesses) </div> </td> </tr> <td valign="top"> <div style="font-size:90%;">Resultant</div> </td> <td valign="top"> <div style="font-size:90%; font-style:italic; padding:5px;"> (where the weakness is typically related to the presence of some other weaknesses) </div> </td> </tr> </table> </div> </div> </div> </div> </div> <div id="Memberships"> <div class="heading" id="Memberships_908"><span><a href="javascript:toggleblocksOC('908_Memberships');"><img id="ocimg_908_Memberships" src="/images/head_more.gif" border="0" alt="+"></a> </span>Memberships </div> <div name="oc_908_Memberships" id="oc_908_Memberships" class="expandblock"> <div class="detail"> <div class="indent"> <span class="section tool"><img src="/images/dictionary.gif" alt="Section Help"><span class="tip">This MemberOf Relationships table shows additional CWE Categories and Views that reference this weakness as a member. This information is often useful in understanding where a weakness fits within the context of external information sources.</span></span> <div xmlns:saxon="http://saxon.sf.net/" xmlns:xalan="http://xml.apache.org/xalan" class="tabledetail" style="padding-top:10px"> <table width="98%" cellpadding="0" cellspacing="0" border="0" id="Detail"> <tr> <th valign="top" width="110px">Nature</th> <th valign="top" width="40px">Type</th> <th valign="top" width="50px">ID</th> <th valign="top">Name</th> </tr> <tbody> <tr class="primary Category"> <td valign="top">MemberOf</td> <td valign="top" nowrap class="right" align="center" style="padding-top:1px"><span class="tool"><img src="/images/icons/category.gif" alt="Category" class="icon"><span class="tip">Category - a CWE entry that contains a set of other entries that share a common characteristic.</span></span></td> <td valign="top">1157</td> <td valign="top"> <a href="/data/definitions/1157.html" target="_blank" rel="noopener noreferrer">SEI CERT C Coding Standard - Guidelines 03. Expressions (EXP)</a> </td> </tr> <tr class="primary Category"> <td valign="top">MemberOf</td> <td valign="top" nowrap class="right" align="center" style="padding-top:1px"><span class="tool"><img src="/images/icons/category.gif" alt="Category" class="icon"><span class="tip">Category - a CWE entry that contains a set of other entries that share a common characteristic.</span></span></td> <td valign="top">1306</td> <td valign="top"> <a href="/data/definitions/1306.html" target="_blank" rel="noopener noreferrer">CISQ Quality Measures - Reliability</a> </td> </tr> <tr class="primary View"> <td valign="top">MemberOf</td> <td valign="top" nowrap class="right" align="center" style="padding-top:1px"><span class="tool"><img src="/images/icons/view.gif" alt="View" class="icon"><span class="tip">View - a subset of CWE entries that provides a way of examining CWE content. The two main view structures are Slices (flat lists) and Graphs (containing relationships between entries).</span></span></td> <td valign="top">1340</td> <td valign="top"> <a href="/data/definitions/1340.html" target="_blank" rel="noopener noreferrer">CISQ Data Protection Measures</a> </td> </tr> <tr class="primary Category"> <td valign="top">MemberOf</td> <td valign="top" nowrap class="right" align="center" style="padding-top:1px"><span class="tool"><img src="/images/icons/category.gif" alt="Category" class="icon"><span class="tip">Category - a CWE entry that contains a set of other entries that share a common characteristic.</span></span></td> <td valign="top">1416</td> <td valign="top"> <a href="/data/definitions/1416.html" target="_blank" rel="noopener noreferrer">Comprehensive Categorization: Resource Lifecycle Management</a> </td> </tr> </tbody> </table> </div> </div> </div> </div> </div> <div id="Vulnerability_Mapping_Notes"> <div class="heading" id="Vulnerability_Mapping_Notes_908"><span><a href="javascript:toggleblocksOC('908_Vulnerability_Mapping_Notes');"><img id="ocimg_908_Vulnerability_Mapping_Notes" src="/images/head_more.gif" border="0" alt="+"></a> </span>Vulnerability Mapping Notes</div> <div name="oc_908_Vulnerability_Mapping_Notes" id="oc_908_Vulnerability_Mapping_Notes" class="expandblock"> <div class="detail"> <div class="indent"> <div id="Grouped"> <table width="98%" cellpadding="0" cellspacing="0" border="0" class="Detail"> <tr> <td> <p class="subheading" style="display:inline-block;"> Usage: <span style="color:#4E8F4A"> ALLOWED </span> </p> <div style="font-size:90%; font-style:italic; padding:5px;display:inline-block;"> (this CWE ID may be used to map to real-world vulnerabilities) </div> </td> </tr> <tr> <td valign="top" width="100%"> <p> <span class="suboptheading">Reason: </span> Acceptable-Use </p> </td> </tr> <tr> <td> <p class="suboptheading"> Rationale: </p> This CWE entry is at the Base level of abstraction, which is a preferred level of abstraction for mapping to the root causes of vulnerabilities. </td> </tr> <tr> <td> <p class="suboptheading"> Comments: </p>Carefully read both the name and description to ensure that this mapping is an appropriate fit. Do not try to 'force' a mapping to a lower-level Base/Variant simply to comply with this preferred level of abstraction. </td> </tr> </table> </div> </div> </div> </div> </div> <div id="Taxonomy_Mappings"> <div class="heading" id="Taxonomy_Mappings_908"><span><a href="javascript:toggleblocksOC('908_Taxonomy_Mappings');"><img id="ocimg_908_Taxonomy_Mappings" src="/images/head_more.gif" border="0" alt="+"></a> </span>Taxonomy Mappings</div> <div name="oc_908_Taxonomy_Mappings" id="oc_908_Taxonomy_Mappings" class="expandblock"> <div class="tabledetail"> <div class="indent"> <div style="margin-top: 10px"> <table width="98%" cellpadding="0" cellspacing="0" border="0" class="Detail"> <tr> <th valign="top" nowrap width="230px">Mapped Taxonomy Name</th> <th valign="top" nowrap width="100px">Node ID</th> <th valign="top" nowrap>Fit</th> <th valign="top">Mapped Node Name</th> </tr> <tr> <td valign="top">CERT C Secure Coding</td> <td valign="top">EXP33-C</td> <td valign="top">CWE More Abstract</td> <td valign="top">Do not read uninitialized memory</td> </tr> </table> </div> </div> </div> </div> </div> <div id="References"> <div class="heading" id="References_908"><span><a href="javascript:toggleblocksOC('908_References');"><img id="ocimg_908_References" src="/images/head_more.gif" border="0" alt="+"></a> </span>References</div> <div name="oc_908_References" id="oc_908_References" class="expandblock"> <div class="detail"> <div class="indent"> <div id="Grouped"> <table width="98%" cellpadding="0" cellspacing="0" border="0" class="Detail"> <tr> <td valign="top"> <div id="REF-436_908">[REF-436] mercy. "Exploiting Uninitialized Data". 2006-01. <<a href="http://www.felinemenace.org/~mercy/papers/UBehavior/UBehavior.zip" target="_blank" rel="noopener noreferrer">http://www.felinemenace.org/~mercy/papers/UBehavior/UBehavior.zip</a>>. </div> </td> </tr> </table> </div> </div> </div> </div> </div> <div id="Content_History"> <div class="heading" id="Content_History_908"><span><a href="javascript:toggleblocksOC('908_Content_History');"><img id="ocimg_908_Content_History" src="/images/head_more.gif" border="0" alt="+"></a> </span>Content History</div> <div name="oc_908_Content_History" id="oc_908_Content_History" class="expandblock"> <div class="tabledetail"> <div class="indent"> <div style="margin-top: 10px"> <table width="98%" cellpadding="0" cellspacing="0" border="0" class="Detail"> <thead class="Submissions"> <tr> <th valign="top" colspan="3" class="title"><span><a href="javascript:toggleblocksOC('908_Submissions');"><img id="ocimg_908_Submissions" src="/images/head_more.gif" border="0" alt="+"></a> </span>Submissions</th> </tr> </thead> <tbody id="oc_908_Submissions" class="expandblock"> <tr> <th valign="top" style="width:200px;">Submission Date</th> <th valign="top" nowrap>Submitter</th> <th valign="top" nowrap>Organization</th> </tr> <tr> <td valign="top" nowrap rowspan="2" style="border-bottom:1px solid #BAC5E3"> 2012-12-21 <br><span class="smaller" style="font-style:italic">(CWE 2.4, 2013-02-21)</span> </td> <td valign="top">CWE Content Team</td> <td valign="top">MITRE</td> </tr> <tr> <td valign="top" colspan="2" style="border-bottom:1px solid #BAC5E3; font-size:90%; background-color:#eeeeee"> New weakness based on discussion on the CWE research list in December 2012. </td> </tr> </tbody> <thead class="Modifications"> <tr> <th valign="top" colspan="3" class="title"><span><a href="javascript:toggleblocksOC('908_Modifications');"><img id="ocimg_908_Modifications" src="/images/head_less.gif" border="0" alt="+"></a> </span>Modifications</th> </tr> </thead> <tbody id="oc_908_Modifications" class="collapseblock"> <tr> <th valign="top">Modification Date</th> <th valign="top" nowrap>Modifier</th> <th valign="top" nowrap>Organization</th> </tr> <tr> <td valign="top" nowrap rowspan="2" style="border-bottom:1px solid #BAC5E3"> 2017-11-08 </td> <td valign="top">CWE Content Team</td> <td valign="top">MITRE</td> </tr> <tr> <td valign="top" colspan="2" style="border-bottom:1px solid #BAC5E3; font-size:90%; background-color:#eeeeee"> updated Taxonomy_Mappings </td> </tr> <tr> <td valign="top" nowrap rowspan="2" style="border-bottom:1px solid #BAC5E3"> 2019-01-03 </td> <td valign="top">CWE Content Team</td> <td valign="top">MITRE</td> </tr> <tr> <td valign="top" colspan="2" style="border-bottom:1px solid #BAC5E3; font-size:90%; background-color:#eeeeee"> updated Relationships </td> </tr> <tr> <td valign="top" nowrap rowspan="2" style="border-bottom:1px solid #BAC5E3"> 2020-02-24 </td> <td valign="top">CWE Content Team</td> <td valign="top">MITRE</td> </tr> <tr> <td valign="top" colspan="2" style="border-bottom:1px solid #BAC5E3; font-size:90%; background-color:#eeeeee"> updated Description, Relationships </td> </tr> <tr> <td valign="top" nowrap rowspan="2" style="border-bottom:1px solid #BAC5E3"> 2020-08-20 </td> <td valign="top">CWE Content Team</td> <td valign="top">MITRE</td> </tr> <tr> <td valign="top" colspan="2" style="border-bottom:1px solid #BAC5E3; font-size:90%; background-color:#eeeeee"> updated Relationships </td> </tr> <tr> <td valign="top" nowrap rowspan="2" style="border-bottom:1px solid #BAC5E3"> 2020-12-10 </td> <td valign="top">CWE Content Team</td> <td valign="top">MITRE</td> </tr> <tr> <td valign="top" colspan="2" style="border-bottom:1px solid #BAC5E3; font-size:90%; background-color:#eeeeee"> updated Relationships </td> </tr> <tr> <td valign="top" nowrap rowspan="2" style="border-bottom:1px solid #BAC5E3"> 2021-03-15 </td> <td valign="top">CWE Content Team</td> <td valign="top">MITRE</td> </tr> <tr> <td valign="top" colspan="2" style="border-bottom:1px solid #BAC5E3; font-size:90%; background-color:#eeeeee"> updated Demonstrative_Examples, Observed_Examples </td> </tr> <tr> <td valign="top" nowrap rowspan="2" style="border-bottom:1px solid #BAC5E3"> 2023-01-31 </td> <td valign="top">CWE Content Team</td> <td valign="top">MITRE</td> </tr> <tr> <td valign="top" colspan="2" style="border-bottom:1px solid #BAC5E3; font-size:90%; background-color:#eeeeee"> updated Description, Potential_Mitigations </td> </tr> <tr> <td valign="top" nowrap rowspan="2" style="border-bottom:1px solid #BAC5E3"> 2023-04-27 </td> <td valign="top">CWE Content Team</td> <td valign="top">MITRE</td> </tr> <tr> <td valign="top" colspan="2" style="border-bottom:1px solid #BAC5E3; font-size:90%; background-color:#eeeeee"> updated Relationships </td> </tr> <tr> <td valign="top" nowrap rowspan="2" style="border-bottom:1px solid #BAC5E3"> 2023-06-29 </td> <td valign="top">CWE Content Team</td> <td valign="top">MITRE</td> </tr> <tr> <td valign="top" colspan="2" style="border-bottom:1px solid #BAC5E3; font-size:90%; background-color:#eeeeee"> updated Mapping_Notes </td> </tr> </tbody> </table> </div> </div> </div> </div> </div> </div> <!-- End main content --> <div id="More_Message_Custom" style="display:none;"> <div style="padding:15px 0px 0px 0px;color:#ff0000;font-size:95%;font-weight:bold;text-align:center;" >More information is available — Please edit the custom filter or select a different filter.</div></div> </td> <!-- end content pane --> </tr> </table> <div id="FootPane" class="noprint"> <div id="footbar"> <b>Page Last Updated: </b> November 19, 2024 </div> <div class="Footer noprint"> <a name="footer" id="footer"></a> <table width="100%" cellpadding="0" cellspacing="0" border="0" class="ltgreybackground" style="clear:both"> <tr> <td colspan="3" id="line"><div class="line"> </div></td> </tr> <tr> <td valign="middle" nowrap="nowrap"> <div id="footerlinks" class="footlogo"> <a href="http://www.mitre.org" target="_blank" rel="noopener noreferrer"><img src="/images/mitre_logo.gif" height="36" border="0" alt="MITRE" title="MITRE"/></a> </div> </td> <td width="100%" valign="top" style="padding:6px 0px;"> <div id="footerlinks"> <a href="/sitemap.html">Site Map</a> | <a href="/about/termsofuse.html">Terms of Use</a> | <a href="#" onclick="Osano.cm.showDrawer('osano-cm-dom-info-dialog-open')">Manage Cookies</a> | <a href="/about/cookie_notice.html">Cookie Notice</a> | <a href="/about/privacy_policy.html">Privacy Policy</a> | <a href="mailto:cwe@mitre.org">Contact Us</a> | <a target="_blank" href="https://twitter.com/CweCapec"><img src="/images/x-logo-black.png" width="18" height="18" style="border:0;vertical-align:right;" alt="CWE X-Twitter" title="CWE X-Twitter"></a> <a target="_blank" href="https://mastodon.social/@CWE_Program"><img src="/images/mastodon-logo.png" width="20" height="20" style="border:0;vertical-align:right;" alt="CWE Mastodon" title="CWE Mastodon"></a> <a target="_blank" href="https://www.linkedin.com/showcase/cve-cwe-capec"><img src="/images/linkedin_sm.jpg" width="20" height="20" style="border:0;vertical-align:right;" alt="CWE on LinkedIn" title="CWE on LinkedIn"></a> <a target="_blank" href="https://www.youtube.com/channel/UCpY9VIpRmFK4ebD6orssifA"><img src="/images/youtube.png" width="20" height="20" style="border:0;vertical-align:right;" alt="CWE YouTube channel" title="CWE YouTube Channel"></a> <a href="/news/podcast.html"><img src="/images/out_of_bounds_read_logo.png" width="22" height="22" style="border:0;vertical-align:right;" alt="CWE Out-of-Bounds-Read Podcast" title="CWE Out-of-Bounds-Read Podcast"></a> <a target="_blank" href="https://medium.com/@CWE_CAPEC"><img src="/images/medium.png" width="20" height="20" style="border:0;vertical-align:right;" alt="CWE Blog on Medium blog" title="CWE Blog on Medium"></a> </div> <p>Use of the Common Weakness Enumeration (CWE™) and the associated references from this website are subject to the <a href="/about/termsofuse.html">Terms of Use</a>. CWE is sponsored by the <a target="_blank" rel="noopener noreferrer" href="https://www.dhs.gov/">U.S. Department of Homeland Security</a> (DHS) <a target="_blank" rel="noopener noreferrer" href="https://www.dhs.gov/cisa/cybersecurity-division">Cybersecurity and Infrastructure Security Agency</a> (CISA) and managed by the <a href="https://www.dhs.gov/science-and-technology/hssedi" target="_blank" rel="noopener noreferrer">Homeland Security Systems Engineering and Development Institute</a> (HSSEDI) which is operated by <a target="_blank" rel="noopener noreferrer" href="http://www.mitre.org/">The MITRE Corporation</a> (MITRE). Copyright © 2006–2024, The MITRE Corporation. CWE, CWSS, CWRAF, and the CWE logo are trademarks of The MITRE Corporation.</p> </td> <td valign="middle" nowrap="nowrap"> <div id="footerlinks" class="footlogo"> <a href="https://www.dhs.gov/science-and-technology/hssedi" target="_blank" rel="noopener noreferrer"><img src="/images/hssedi.png" height="36" border="0" alt="HSSEDI" title="HSSEDI"/></a> </div> </td> </tr> </table> </div> </div> <!-- Google tag (gtag.js) --> <script async src="https://www.googletagmanager.com/gtag/js?id=G-TCLW30GNGV"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'G-TCLW30GNGV'); </script> </body> </html> </html>