CVE-2026-112063 Details
Description
libstrophe through 0.14.0 contains a stack-based buffer overflow vulnerability in SCRAM_Hi that allows malicious XMPP servers to overflow a 128-byte stack buffer by sending an oversized SCRAM salt. Attackers can send a server-first-message whose s= attribute decodes to more than 124 bytes, aborting the client or overwriting stack memory in NDEBUG builds.
A stack-based buffer overflow vulnerability has been identified in libstrophe versions through 0.14.0. This vulnerability resides in the SCRAM_Hi function, where an oversized SCRAM salt sent by malicious XMPP servers can overflow a 128-byte stack buffer. The issue arises because the library decodes the salt without proper length validation, allowing attackers to overwrite stack memory or cause a denial-of-service by crashing the client. In NDEBUG builds, the overflow is unguarded and can be exploited, while the default autotools build includes an assert that prevents the overflow but causes the client to abort, creating a remote denial-of-service condition.
To address this vulnerability, libstrophe should implement proper length checks on the SCRAM salt before processing it. The SCRAM_Hi function can be modified to reject oversized salts at runtime, ensuring that the buffer overflow cannot occur. Additionally, the iteration count in the SCRAM protocol should be capped at a reasonable limit to prevent excessive resource consumption.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Oct 18, 2026CISA-ADP
Assessed Oct 19, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://hackmd.io/@haindpwn/libstrophe-scram-salt-stack-overflow | CISA-ADP | Technical Analysis |
| https://github.com/strophe/libstrophe/blob/0.14.0/src/sasl.c | [email protected] | Source CodeVendor |
| https://github.com/strophe/libstrophe/blob/0.14.0/src/scram.c | [email protected] | Source CodeVendor |
| https://hackmd.io/@haindpwn/libstrophe-scram-salt-stack-overflow | [email protected] | Technical Analysis |
| https://www.vulncheck.com/advisories/libstrophe-through-0.14.0-stack-based-buffer-overflow-via-scram-salt-in-scram-hi | [email protected] | AdvisoryBundleVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-121 | Stack-based Buffer Overflow | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| libstrophe | <= 0.14.0 (semver) |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 19, 2026 | CVE Modified | CISA-ADP |
| Oct 18, 2026 | New CVE Received | [email protected] |
Volerion