CWE-394
Weakness AllowedUnexpected Status Code or Return Value
Abstraction: Base · Status: Draft
The product does not properly check when a function or operation returns a value that is legitimate for the function, but is not expected by the product.
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
Notes
Relationship
Usually primary, but can be resultant from issues such as behavioral change or API abuse. This can produce resultant vulnerabilities.
Content history
updated Time_of_Introduction
updated Relationships, Other_Notes, Taxonomy_Mappings
updated Relationships
updated Other_Notes, Relationship_Notes
updated Common_Consequences
updated Common_Consequences
updated Relationships
updated Relationships, Taxonomy_Mappings
updated Applicable_Platforms, Taxonomy_Mappings
updated Taxonomy_Mappings
updated Relationships
updated Relationships
updated Description
updated Relationships, Time_of_Introduction
updated Mapping_Notes
updated Detection_Factors, Relationships, Weakness_Ordinalities
updated References
34 vulnerabilities reference this CWE, most recent first.
GHSA-MPRQ-MG66-VM32
Vulnerability from github – Published: 2026-02-27 03:30 – Updated: 2026-02-27 03:30A vulnerability exists in Copeland XWEB Pro version 1.12.1 and prior, in which an unexpected return value from the authentication routine is later on processed as a legitimate value, resulting in an authentication bypass.
{
"affected": [],
"aliases": [
"CVE-2026-25085"
],
"database_specific": {
"cwe_ids": [
"CWE-394"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2026-02-27T01:16:19Z",
"severity": "HIGH"
},
"details": "A vulnerability exists in Copeland XWEB Pro version 1.12.1 and prior, in\n which an unexpected return value from the authentication routine is \nlater on processed as a legitimate value, resulting in an authentication\n bypass.",
"id": "GHSA-mprq-mg66-vm32",
"modified": "2026-02-27T03:30:26Z",
"published": "2026-02-27T03:30:26Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-25085"
},
{
"type": "WEB",
"url": "https://github.com/cisagov/CSAF/blob/develop/csaf_files/OT/white/2026/icsa-26-057-10.json"
},
{
"type": "WEB",
"url": "https://webapps.copeland.com/Dixell/Pages/SystemSoftwareUpdate"
},
{
"type": "WEB",
"url": "https://www.cisa.gov/news-events/ics-advisories/icsa-26-057-10"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L",
"type": "CVSS_V3"
}
]
}
GHSA-P8Q7-X4RW-5V8M
Vulnerability from github – Published: 2025-06-15 15:30 – Updated: 2025-06-15 15:30Improper handling of non-200 http responses in the PingFederate Google Adapter leads to thread exhaustion under normal usage conditions.
{
"affected": [],
"aliases": [
"CVE-2025-22854"
],
"database_specific": {
"cwe_ids": [
"CWE-394"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2025-06-15T15:15:19Z",
"severity": "MODERATE"
},
"details": "Improper handling of non-200 http responses in\u00a0the PingFederate Google Adapter\u00a0leads to thread exhaustion under normal usage conditions.",
"id": "GHSA-p8q7-x4rw-5v8m",
"modified": "2025-06-15T15:30:31Z",
"published": "2025-06-15T15:30:31Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2025-22854"
},
{
"type": "WEB",
"url": "https://docs.pingidentity.com/integrations/google/google_login_integration_kit/pf_google_cic_changelog.html"
},
{
"type": "WEB",
"url": "https://www.pingidentity.com/en/resources/downloads/pingfederate.html"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:P/VC:N/VI:N/VA:H/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:P/AU:Y/R:A/V:X/RE:M/U:Red",
"type": "CVSS_V4"
}
]
}
GHSA-WWR4-CJ7G-985F
Vulnerability from github – Published: 2025-01-15 06:30 – Updated: 2025-02-03 12:30In Yubico pam-u2f before 1.3.1, local privilege escalation can sometimes occur. This product implements a Pluggable Authentication Module (PAM) that can be deployed to support authentication using a YubiKey or other FIDO compliant authenticators on macOS or Linux. This software package has an issue that allows for an authentication bypass in some configurations. An attacker would require the ability to access the system as an unprivileged user. Depending on the configuration, the attacker may also need to know the user's password.
{
"affected": [],
"aliases": [
"CVE-2025-23013"
],
"database_specific": {
"cwe_ids": [
"CWE-394"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2025-01-15T04:15:20Z",
"severity": "HIGH"
},
"details": "In Yubico pam-u2f before 1.3.1, local privilege escalation can sometimes occur. This product implements a Pluggable Authentication Module (PAM) that can be deployed to support authentication using a YubiKey or other FIDO compliant authenticators on macOS or Linux. This software package has an issue that allows for an authentication bypass in some configurations. An attacker would require the ability to access the system as an unprivileged user. Depending on the configuration, the attacker may also need to know the user\u0027s password.",
"id": "GHSA-wwr4-cj7g-985f",
"modified": "2025-02-03T12:30:59Z",
"published": "2025-01-15T06:30:49Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2025-23013"
},
{
"type": "WEB",
"url": "https://lists.debian.org/debian-lts-announce/2025/02/msg00001.html"
},
{
"type": "WEB",
"url": "https://www.yubico.com/support/security-advisories/ysa-2025-01"
},
{
"type": "WEB",
"url": "http://www.openwall.com/lists/oss-security/2025/01/15/1"
},
{
"type": "WEB",
"url": "http://www.openwall.com/lists/oss-security/2025/01/16/2"
},
{
"type": "WEB",
"url": "http://www.openwall.com/lists/oss-security/2025/01/16/3"
},
{
"type": "WEB",
"url": "http://www.openwall.com/lists/oss-security/2025/01/16/4"
},
{
"type": "WEB",
"url": "http://www.openwall.com/lists/oss-security/2025/01/16/5"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/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"
}
]
}
GHSA-X282-Q22W-C9HM
Vulnerability from github – Published: 2026-08-20 06:32 – Updated: 2026-08-20 18:30In libexpat 2.8.2 and 2.8.3 before 2.8.4, misinterpretation of getentropy's return code leads to insufficient entropy, which results in being vulnerable to hash flooding attacks, causing a denial of service via crafted XML content.
{
"affected": [],
"aliases": [
"CVE-2026-76956"
],
"database_specific": {
"cwe_ids": [
"CWE-394"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2026-08-20T05:16:29Z",
"severity": "HIGH"
},
"details": "In libexpat 2.8.2 and 2.8.3 before 2.8.4, misinterpretation of getentropy\u0027s return code leads to insufficient entropy, which results in being vulnerable to hash flooding attacks, causing a denial of service via crafted XML content.",
"id": "GHSA-x282-q22w-c9hm",
"modified": "2026-08-20T18:30:48Z",
"published": "2026-08-20T06:32:26Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-76956"
},
{
"type": "WEB",
"url": "https://github.com/libexpat/libexpat/pull/1326"
},
{
"type": "WEB",
"url": "https://github.com/libexpat/libexpat/pull/1329"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/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.