CWE-570
Weakness AllowedExpression is Always False
Abstraction: Base · Status: Draft
The product contains an expression that will always evaluate to false.
Mapping guidance
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.
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.
Modes of introduction
Detection methods
Automated Static Analysis
Automated static analysis, commonly referred to as Static Application Security Testing (SAST), can find some instances of this weakness by analyzing source code (or binary/compiled code) without having to execute it. Typically, this is done by building a model of data flow and control flow, then searching for potentially-vulnerable patterns that connect "sources" (origins of input) with "sinks" (destinations where the data interacts with external components, a lower layer such as the OS, etc.)
Effectiveness: High
Content history
Submitted by members of the CWE community to extend early CWE versions
updated Potential_Mitigations, Time_of_Introduction
updated Relationships, Other_Notes
updated Relationships, Taxonomy_Mappings
updated Demonstrative_Examples, Other_Notes, Potential_Mitigations
updated Demonstrative_Examples
updated Common_Consequences
updated Common_Consequences
updated Relationships, Taxonomy_Mappings
updated Relationships
updated Relationships, Taxonomy_Mappings
updated Applicable_Platforms, Demonstrative_Examples, Relationships, Taxonomy_Mappings
updated Relationships, Type
updated Relationships
updated Description
updated Detection_Factors, Relationships
updated Mapping_Notes
updated Demonstrative_Examples
updated Weakness_Ordinalities
updated Potential_Mitigations
updated Functional_Areas, References
2 vulnerabilities reference this CWE, most recent first.
CVE-2024-32633 (GCVE-0-2024-32633)
Vulnerability from cvelistv5 – Published: 2024-04-16 08:54 – Updated: 2024-08-20 18:09- CWE-570 - Expression is Always False
| Vendor | Product | Version | |
|---|---|---|---|
| ASR | Falcon/Crane |
Affected:
0 , < CP01.057.067
(custom)
|
{
"containers": {
"adp": [
{
"providerMetadata": {
"dateUpdated": "2024-08-02T02:13:40.374Z",
"orgId": "af854a3a-2127-422b-91ae-364da2661108",
"shortName": "CVE"
},
"references": [
{
"tags": [
"x_transferred"
],
"url": "https://www.asrmicro.com/en/goods/psirt?cid=38"
}
],
"title": "CVE Program Container"
},
{
"metrics": [
{
"other": {
"content": {
"id": "CVE-2024-32633",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"role": "CISA Coordinator",
"timestamp": "2024-08-20T18:07:15.629417Z",
"version": "2.0.3"
},
"type": "ssvc"
}
}
],
"providerMetadata": {
"dateUpdated": "2024-08-20T18:09:22.892Z",
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP"
},
"title": "CISA ADP Vulnrichment"
}
],
"cna": {
"affected": [
{
"defaultStatus": "unaffected",
"platforms": [
"Linux",
"RTOS"
],
"product": "Falcon/Crane",
"vendor": "ASR",
"versions": [
{
"lessThan": "CP01.057.067",
"status": "affected",
"version": "0",
"versionType": "custom"
}
]
}
],
"datePublic": "2024-04-16T08:52:00.000Z",
"descriptions": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "An unsigned value can never be negative, so eMMC full disk test will always evaluate the same way."
}
],
"value": "An unsigned value can never be negative, so eMMC full disk test will always evaluate the same way."
}
],
"metrics": [
{
"cvssV3_1": {
"attackComplexity": "LOW",
"attackVector": "PHYSICAL",
"availabilityImpact": "LOW",
"baseScore": 4,
"baseSeverity": "MEDIUM",
"confidentialityImpact": "LOW",
"integrityImpact": "NONE",
"privilegesRequired": "NONE",
"scope": "CHANGED",
"userInteraction": "NONE",
"vectorString": "CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:L",
"version": "3.1"
},
"format": "CVSS",
"scenarios": [
{
"lang": "en",
"value": "GENERAL"
}
]
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-570",
"description": "CWE-570 Expression is Always False",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2024-04-16T08:54:53.330Z",
"orgId": "68630edc-a58c-4cbd-9b01-0e130455c8ae",
"shortName": "ASR"
},
"references": [
{
"url": "https://www.asrmicro.com/en/goods/psirt?cid=38"
}
],
"source": {
"discovery": "UNKNOWN"
},
"title": "Unsigned compared against 0",
"x_generator": {
"engine": "Vulnogram 0.1.0-dev"
}
}
},
"cveMetadata": {
"assignerOrgId": "68630edc-a58c-4cbd-9b01-0e130455c8ae",
"assignerShortName": "ASR",
"cveId": "CVE-2024-32633",
"datePublished": "2024-04-16T08:54:53.330Z",
"dateReserved": "2024-04-16T07:47:46.565Z",
"dateUpdated": "2024-08-20T18:09:22.892Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.1"
}
GHSA-9M2P-FJ6H-MRV7
Vulnerability from github – Published: 2024-04-16 09:30 – Updated: 2024-04-16 09:30An unsigned value can never be negative, so eMMC full disk test will always evaluate the same way.
{
"affected": [],
"aliases": [
"CVE-2024-32633"
],
"database_specific": {
"cwe_ids": [
"CWE-570"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2024-04-16T09:15:08Z",
"severity": "MODERATE"
},
"details": "An unsigned value can never be negative, so eMMC full disk test will always evaluate the same way.",
"id": "GHSA-9m2p-fj6h-mrv7",
"modified": "2024-04-16T09:30:33Z",
"published": "2024-04-16T09:30:33Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2024-32633"
},
{
"type": "WEB",
"url": "https://www.asrmicro.com/en/goods/psirt?cid=38"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:L",
"type": "CVSS_V3"
}
]
}
Mitigation
Strategy: Refactoring
Consider refactoring the code, or determine if the code is not including a condition that could cause the expression to become false.
No CAPEC attack patterns related to this CWE.