CWE-835
Weakness AllowedLoop with Unreachable Exit Condition
Abstraction: Base · Status: Incomplete
The product contains an iteration or loop with an exit condition that cannot be reached, i.e., an infinite loop.
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
Contributed usability diagram concepts used by the CWE team
updated Common_Consequences, Relationships, Taxonomy_Mappings
updated Demonstrative_Examples, References, Relationships, Taxonomy_Mappings
updated Demonstrative_Examples
updated References, Relationships, Taxonomy_Mappings
updated Relationships
updated Relationships
updated Relationships
updated Observed_Examples, Relationships
updated Observed_Examples
updated Observed_Examples
updated Description, Observed_Examples
updated Relationships
updated Mapping_Notes
updated Observed_Examples
updated Demonstrative_Examples
updated Description, Diagram
updated Applicable_Platforms, Detection_Factors, Time_of_Introduction, Weakness_Ordinalities
updated Observed_Examples
updated Alternate_Terms, Name, References
1492 vulnerabilities reference this CWE, most recent first.
GHSA-XXQF-CF9X-9RWQ
Vulnerability from github – Published: 2022-05-24 17:08 – Updated: 2022-05-24 17:08lib-smtp in submission-login and lmtp in Dovecot 2.3.9 before 2.3.9.3 mishandles truncated UTF-8 data in command parameters, as demonstrated by the unauthenticated triggering of a submission-login infinite loop.
{
"affected": [],
"aliases": [
"CVE-2020-7046"
],
"database_specific": {
"cwe_ids": [
"CWE-835"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2020-02-12T17:15:00Z",
"severity": "HIGH"
},
"details": "lib-smtp in submission-login and lmtp in Dovecot 2.3.9 before 2.3.9.3 mishandles truncated UTF-8 data in command parameters, as demonstrated by the unauthenticated triggering of a submission-login infinite loop.",
"id": "GHSA-xxqf-cf9x-9rwq",
"modified": "2022-05-24T17:08:50Z",
"published": "2022-05-24T17:08:50Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2020-7046"
},
{
"type": "WEB",
"url": "https://dovecot.org/pipermail/dovecot-news/2020-February/000431.html"
},
{
"type": "WEB",
"url": "https://dovecot.org/security"
},
{
"type": "WEB",
"url": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/6XYT55WH372BJOXCJRKBDIFGBMPVOIDT"
},
{
"type": "WEB",
"url": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/NJXHOUT3FH2DJNMACSX4GHPP4MUV4UKA"
},
{
"type": "WEB",
"url": "http://www.openwall.com/lists/oss-security/2020/02/12/1"
}
],
"schema_version": "1.4.0",
"severity": []
}
GHSA-XXQH-R526-FMP5
Vulnerability from github – Published: 2022-05-13 01:23 – Updated: 2025-04-20 03:38The cr_parser_parse_selector_core function in cr-parser.c in libcroco 0.6.12 allows remote attackers to cause a denial of service (infinite loop and CPU consumption) via a crafted CSS file.
{
"affected": [],
"aliases": [
"CVE-2017-8871"
],
"database_specific": {
"cwe_ids": [
"CWE-835"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2017-06-12T06:29:00Z",
"severity": "HIGH"
},
"details": "The cr_parser_parse_selector_core function in cr-parser.c in libcroco 0.6.12 allows remote attackers to cause a denial of service (infinite loop and CPU consumption) via a crafted CSS file.",
"id": "GHSA-xxqh-r526-fmp5",
"modified": "2025-04-20T03:38:48Z",
"published": "2022-05-13T01:23:13Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2017-8871"
},
{
"type": "WEB",
"url": "https://bugzilla.gnome.org/show_bug.cgi?id=782649"
},
{
"type": "WEB",
"url": "https://www.exploit-db.com/exploits/42147"
},
{
"type": "WEB",
"url": "http://lists.opensuse.org/opensuse-security-announce/2019-06/msg00043.html"
},
{
"type": "WEB",
"url": "http://www.openwall.com/lists/oss-security/2020/08/13/3"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H",
"type": "CVSS_V3"
}
]
}
No mitigation information available for this CWE.
No CAPEC attack patterns related to this CWE.