CWE-758
Weakness Allowed-with-ReviewReliance on Undefined, Unspecified, or Implementation-Defined Behavior
Abstraction: Class · Status: Incomplete
The product uses an API function, data structure, or other entity in a way that relies on properties that are not always guaranteed to hold for that entity.
Mapping guidance
This CWE entry is a Class and might have Base-level children that would be more appropriate
Examine children of this entry to see if there is a better fit
Modes of introduction
This can lead to resultant weaknesses when the required properties change, such as when the product is ported to a different platform.
This can lead to resultant weaknesses if an interaction error (CWE-435) occurs.
Detection methods
Fuzzing
Fuzz testing (fuzzing) is a powerful technique for generating large numbers of diverse inputs - either randomly or algorithmically - and dynamically invoking the code with those inputs. Even with random inputs, it is often capable of generating unexpected results such as crashes, memory corruption, or resource consumption. Fuzzing effectively produces repeatable test cases that clearly indicate bugs, which helps developers to diagnose the issues.
Effectiveness: High
Content history
updated Common_Consequences
updated Relationships
updated Relationships
updated Relationships
updated Relationships, Taxonomy_Mappings
updated Relationships
updated Relationships, Weakness_Ordinalities
updated Relationships
updated Relationships
updated Description
updated Detection_Factors, Relationships
updated Mapping_Notes
updated Demonstrative_Examples
updated Applicable_Platforms, Common_Consequences, Time_of_Introduction
updated Description, Modes_of_Introduction, References, Time_of_Introduction
42 vulnerabilities reference this CWE, most recent first.
GHSA-QG24-8XJ4-GJ2H
Vulnerability from github – Published: 2021-08-25 20:58 – Updated: 2021-08-18 20:17An issue was discovered in the chunky crate through 2020-08-25 for Rust. The Chunk API does not honor an alignment requirement.
{
"affected": [
{
"package": {
"ecosystem": "crates.io",
"name": "chunky"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"last_affected": "0.3.7"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"aliases": [
"CVE-2020-36433"
],
"database_specific": {
"cwe_ids": [
"CWE-758"
],
"github_reviewed": true,
"github_reviewed_at": "2021-08-18T20:17:28Z",
"nvd_published_at": "2021-08-08T06:15:00Z",
"severity": "HIGH"
},
"details": "An issue was discovered in the chunky crate through 2020-08-25 for Rust. The Chunk API does not honor an alignment requirement.",
"id": "GHSA-qg24-8xj4-gj2h",
"modified": "2021-08-18T20:17:28Z",
"published": "2021-08-25T20:58:13Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2020-36433"
},
{
"type": "WEB",
"url": "https://github.com/aeplay/chunky/issues/2"
},
{
"type": "PACKAGE",
"url": "https://github.com/aeplay/chunky"
},
{
"type": "WEB",
"url": "https://rustsec.org/advisories/RUSTSEC-2020-0035.html"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N",
"type": "CVSS_V3"
}
],
"summary": "Unaligned memory allocation in chunky"
}
GHSA-V57J-J5HJ-CGF3
Vulnerability from github – Published: 2025-10-02 00:32 – Updated: 2025-10-02 00:32OpenPLC_V3 has a vulnerability in the enipThread function that occurs due to the lack of a return value. This leads to a crash when the server loop ends and execution hits an illegal ud2 instruction. This issue can be triggered remotely without authentication by starting the same server multiple times or if the server exits unexpectedly. The vulnerability allows an attacker to cause a Denial of Service (DoS) against the PLC runtime, stopping any PC started remotely without authentication. This results in the PLC process crashing and halting all automation or control logic managed by OpenPLC.
{
"affected": [],
"aliases": [
"CVE-2025-54811"
],
"database_specific": {
"cwe_ids": [
"CWE-758"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2025-10-01T22:15:31Z",
"severity": "MODERATE"
},
"details": "OpenPLC_V3 has a vulnerability in the enipThread function that occurs due to the lack of a return value. This leads to a crash when the server loop ends and execution hits an illegal ud2 instruction. This issue can be triggered remotely without authentication by starting the same server multiple times or if the server exits unexpectedly. The vulnerability allows an attacker to cause a Denial of Service (DoS) against the PLC runtime, stopping any PC started remotely without authentication. This results in the PLC process crashing and halting all automation or control logic managed by OpenPLC.",
"id": "GHSA-v57j-j5hj-cgf3",
"modified": "2025-10-02T00:32:09Z",
"published": "2025-10-02T00:32:09Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2025-54811"
},
{
"type": "WEB",
"url": "https://github.com/thiagoralves/OpenPLC_v3"
},
{
"type": "WEB",
"url": "https://www.cisa.gov/news-events/ics-advisories/icsa-25-273-05"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:H",
"type": "CVSS_V3"
},
{
"score": "CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:N/SI:N/SA:H/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X",
"type": "CVSS_V4"
}
]
}
No mitigation information available for this CWE.
No CAPEC attack patterns related to this CWE.