Skip to main content
Vulnerability Database/CVE-2026-113799

CVE-2026-113799: Slack Morphism HMAC Information Disclosure

CVE-2026-113799 is an information disclosure vulnerability in Slack Morphism that exposes HMAC signatures in error logs, allowing attackers to bypass signature verification. This article covers technical details, affected versions, and mitigation.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-113799 Overview

CVE-2026-113799 affects slack-morphism, a Rust client library for the Slack Web API, Events API, Socket Mode, and Block Kit. Versions 1.0.0 through 2.27.0 leak the correct Slack HMAC signature when request verification fails. The library computes the expected signature for the attacker-supplied timestamp and body, then stores it in SlackEventWrongSignatureError.generated_hash. Default error handlers log this value, turning the verifier into a chosen-message HMAC oracle. The issue is tracked under [CWE-532: Insertion of Sensitive Information into Log File].

Critical Impact

An attacker with access to application logs can forge valid Slack-signed requests without ever learning the signing secret, bypassing signature verification on protected callback endpoints.

Affected Products

  • slack-morphism Rust crate versions 1.0.0 through 2.27.0
  • Applications using the default Axum listener error handler with slack-morphism
  • Services exposing Slack event callback endpoints that log verification errors

Discovery Timeline

  • 2026-10-21 - CVE-2026-113799 published to NVD
  • 2026-10-22 - Last updated in NVD database

Technical Details for CVE-2026-113799

Vulnerability Analysis

Slack validates webhook authenticity by signing each request with HMAC-SHA256 using a shared signing secret. The server recomputes the signature over the timestamp and raw body, then compares it to the X-Slack-Signature header. In slack-morphism, when the comparison fails, the library constructs a SlackEventWrongSignatureError that embeds the server-computed signature in the generated_hash field.

The Debug and Display implementations expose generated_hash verbatim. When the default Axum listener error handler receives this error, it writes the full value to the application log at error level. Any party able to read those logs obtains the correct HMAC for the request body and timestamp they just submitted.

Root Cause

The root cause is sensitive-information exposure through log sinks. The verifier treats the computed HMAC as a diagnostic value rather than a secret, and the error type's standard trait implementations propagate it to any formatter. Combined with permissive default logging, this converts a verification failure into a signing oracle.

Attack Vector

An attacker who can reach the Slack callback endpoint and read service logs executes a two-step oracle attack. First, they send an arbitrary POST request with a chosen timestamp and body plus an invalid signature. The handler logs the correct signature. The attacker then replays the identical request with the leaked signature inside the five-minute freshness window, and verification succeeds. The protected callback executes attacker-controlled payloads without the attacker ever possessing the Slack signing secret.

rust
                 SlackEventWrongSignatureErrorInit {
                     body_len: body.len(),
                     ts: ts.into(),
-                    received_hash: hash.into(),
-                    generated_hash: hash_to_check,
+                    received_hash_prefix: hash.chars().take(11).collect(),
                 }
                 .into(),
             ))
// Source: https://github.com/abdolence/slack-morphism-rust/commit/ac95d0d4539d0eac548a8db99c51c0c1ae832756

The patch removes generated_hash entirely and replaces received_hash with an 11-character prefix of the submitted value, eliminating the oracle while preserving limited diagnostic context.

Detection Methods for CVE-2026-113799

Indicators of Compromise

  • Log entries containing SlackEventWrongSignatureError with populated generated_hash fields
  • Pairs of requests to Slack callback endpoints from the same source where the first fails verification and a second identical request succeeds within five minutes
  • Repeated signature-verification errors immediately followed by accepted requests sharing the same body length and timestamp

Detection Strategies

  • Grep historical application logs for the strings SlackEventWrongSignatureError and generated_hash to identify prior exposure
  • Correlate HTTP access logs with error logs to find retried requests whose signature changed between attempts
  • Audit log pipelines, SIEM indices, and third-party log aggregators for retained copies of leaked signatures

Monitoring Recommendations

  • Alert on any slack-morphism signature verification failure originating from unexpected source IPs
  • Monitor Slack callback endpoints for anomalous request volume indicative of oracle probing
  • Flag any downstream action triggered by a Slack event that was preceded by a verification failure for the same payload

How to Mitigate CVE-2026-113799

Immediate Actions Required

  • Upgrade slack-morphism to version 2.28.0 or later across all services
  • Rotate the Slack signing secret in the Slack App configuration and update deployed services
  • Purge or restrict access to logs that may contain leaked generated_hash values
  • Review access control on log aggregation platforms to limit exposure to privileged operators

Patch Information

Version 2.28.0 resolves the issue by removing the computed hash from the error type. See the GitHub Security Advisory GHSA-26w4-8w32-4x3v, Pull Request #387, and the v2.28.0 Release Notes for details.

Workarounds

  • If upgrading is not immediately possible, replace the default Axum error handler with one that discards or redacts SlackEventWrongSignatureError before logging
  • Configure the logging framework to filter error messages containing generated_hash substrings
  • Restrict read access to application and service logs to a minimal set of trusted operators
bash
# Update Cargo.toml to require the patched version
cargo update -p slack-morphism --precise 2.28.0

# Verify the resolved version
cargo tree -p slack-morphism | head -n 1

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.