---
id: "CVE-2026-112063"
kind: "vulnerability"
aliases: ["CVE-2026-112063"]
title: "libstrophe: oversized SCRAM salt overflows a stack buffer in XMPP clients"
severity: "medium"
cvss: 6.0
epss: null
exploited: false
status: "open"
category: "package"
products: []
ecosystems: []
tags: ["c", "libstrophe", "package", "xmpp"]
not_affected_if: ["no-libstrophe", "server-only", "trusted-xmpp-servers-only"]
published_at: "2026-10-18T13:16:38+00:00"
first_seen_at: "2026-10-23T21:57:15+00:00"
updated_at: "2026-10-25T04:05:47+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-112063", "first_seen_at": "2026-10-23T21:57:15+00:00"}]
---

# libstrophe: oversized SCRAM salt overflows a stack buffer in XMPP clients

libstrophe, a C library for XMPP clients, has a stack buffer overflow in its SCRAM_Hi routine. A malicious XMPP server can send an oversized SCRAM salt, crashing the client or overwriting stack memory in NDEBUG builds.

_Summary, check and fix written by a model from the sources; labelled as such._

## How to check

- Check the installed libstrophe version (`libstrophe` version from your package manager or `pkg-config --modversion libstrophe`) and see if it is 0.14.0 or earlier.
- Find builds that link libstrophe and confirm whether they are compiled with NDEBUG defined.

## Timeline

- 2026-10-23T21:57:15+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-112063

## From the sources

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.

---

_Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai_
