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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| strophe | libstrophe | ≤ 0.14.0 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | libstrophe | No fix yet | — |
| Debian 13 | libstrophe | No fix yet | — |
| Debian 12 | libstrophe | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | libstrophe | No fix yet | — |
| Ubuntu 26.04 LTS | libstrophe | No fix yet | — |
| Ubuntu 24.04 LTS | libstrophe | No fix yet | — |
| Ubuntu 22.04 LTS | libstrophe | No fix yet | — |
| Ubuntu 20.04 LTS | libstrophe | No fix yet | — |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | libstrophe | No fix yet | — |
| Ubuntu 16.04 LTS | libstrophe | No fix yet | — |
References
- https://hackmd.io/@haindpwn/libstrophe-scram-salt-stack-overflow third-party-advisory
- https://github.com/strophe/libstrophe/blob/0.14.0/src/scram.c technical-description
- https://github.com/strophe/libstrophe/blob/0.14.0/src/sasl.c technical-description
- VulnCheck Advisory: libstrophe through 0.14.0 Stack-Based Buffer Overflow via SCRAM Salt in SCRAM_Hi third-party-advisory