CVE-2024-50347: Laravel/reverb Laravel Reverb Missing API Signature Vulnerability

HIGH
Advisory Identifier: GHSA-pfrr-xvrf-pxjx
CWE-345 CWE-347
Published
Advisory Summary

CVE-2024-50347 is a HIGH laravel reverb missing api signature vulnerability (CWE-345: Insufficient Verification of Data Authenticity) affecting Laravel/reverb libraries in the Packagist ecosystem. The issue involves laravel reverb missing api signature verification. Remediation is available by upgrading affected packages to version 1.4.0.

CVE-2024-50347 at a Glance

CVE Identifier CVE-2024-50347
GHSA Identifier GHSA-pfrr-xvrf-pxjx
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-345: Insufficient Verification of Data Authenticity
Affected Product Laravel/reverb
Package Ecosystem Packagist
Published Date
Last Updated

How to Fix CVE-2024-50347

To remediate this vulnerability, upgrade all affected Laravel/reverb dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

laravel/reverb fixed: 1.4.0
Upgrade laravel/reverb to 1.4.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for laravel/reverb

How to Check if You Are Affected

To determine whether your application is affected by CVE-2024-50347, inspect your project dependencies for Laravel/reverb:

inspect dependencies for laravel/reverb

Analyze the terminal output to locate any version of Laravel/reverb in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.4.0), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-345: Insufficient Verification of Data Authenticity, where the product does not sufficiently verify the origin or authenticity of data, in a way that causes it to accept invalid data. In Laravel/reverb, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Impact A community member disclosed an issue where verification signatures for requests sent to Reverb's Pusher-compatible API were not being verified. This API is used in scenarios such as broadcasting a message from a backend service or for obtaining statistical information (such as number of connections) about a given channel. The verification signature is a hash comprised of different parts of the request signed by the app's secret key. The signature is sent as part of the request and should be regenerated by Reverb. Only when both the signature in the request and the one generated by Reverb match should the request be allowed. This helps to verify the request came from a known source. > [!NOTE] > This issue only affects the Pusher-compatible API endpoints and not the WebSocket connections themselves. In order to exploit this vulnerability, the application ID which, should never be exposed, would need to be known by an attacker. The following endpoints were affected: ``` POST /events POST /events_batch GET /connections GET /channels GET /channel GET /channel_users POST /users_terminate ``` ### Patches The issue was resolved by [#252](https://github.com/laravel/reverb/pull/252) and the patch released in [v1.4.0](https://github.com/laravel/reverb/releases/tag/v1.4.0). ### References [Generating Pusher authentication signatures](https://pusher.com/docs/channels/library_auth_reference/rest-api/#generating-authentication-signatures)

CVE-2024-50347 Affected Laravel/reverb Versions

1 component(s)
Fixed Versions:
1.4.0
Product / Package Ecosystem Affected Versions Fixed Version
laravel/reverb
Packagist
< 1.4.0
1.4.0

References

Frequently Asked Questions

What is CVE-2024-50347?
CVE-2024-50347 is a security vulnerability in Laravel/reverb involving Laravel Reverb Missing API Signature Verification under CWE-345: Insufficient Verification of Data Authenticity.
Which Laravel/reverb versions are affected?
Affected versions include releases prior to 1.4.0 across affected packages: laravel/reverb.
What version fixes CVE-2024-50347?
Upgrading to 1.4.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is laravel/reverb affected?
Yes, laravel/reverb is affected in releases prior to 1.4.0. Upgrade your dependency to 1.4.0 or later.
What CWE is associated with CVE-2024-50347?
CVE-2024-50347 is classified under CWE-345: Insufficient Verification of Data Authenticity (The product does not sufficiently verify the origin or authenticity of data, in a way that causes it to accept invalid data.).
How can I check Packagist dependencies for CVE-2024-50347?
Run the dependency tree command: 'inspect dependencies for laravel/reverb'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-pfrr-xvrf-pxjx",
  "modified" : "2024-10-31T19:36:22Z",
  "published" : "2024-10-31T18:03:11Z",
  "aliases" : [ "CVE-2024-50347" ],
  "summary" : "Laravel Reverb Missing API Signature Verification",
  "details" : "### Impact\nA community member disclosed an issue where verification signatures for requests sent to Reverb's Pusher-compatible API were not being verified. This API is used in scenarios such as broadcasting a message from a backend service or for obtaining statistical information (such as number of connections) about a given channel.\n\nThe verification signature is a hash comprised of different parts of the request signed by the app's secret key. The signature is sent as part of the request and should be regenerated by Reverb. Only when both the signature in the request and the one generated by Reverb match should the request be allowed. This helps to verify the request came from a known source.\n\n> [!NOTE]  \n> This issue only affects the Pusher-compatible API endpoints and not the WebSocket connections themselves. In order to exploit this vulnerability, the application ID which, should never be exposed, would need to be known by an attacker. \n\nThe following endpoints were affected:\n\n```\nPOST /events\nPOST /events_batch\nGET /connections\nGET /channels\nGET /channel\nGET /channel_users\nPOST /users_terminate\n```\n\n### Patches\nThe issue was resolved by [#252](https://github.com/laravel/reverb/pull/252) and the patch released in [v1.4.0](https://github.com/laravel/reverb/releases/tag/v1.4.0).\n\n### References\n[Generating Pusher authentication signatures](https://pusher.com/docs/channels/library_auth_reference/rest-api/#generating-authentication-signatures)\n",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "laravel/reverb"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.4.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/laravel/reverb/security/advisories/GHSA-pfrr-xvrf-pxjx"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-50347"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/laravel/reverb/pull/252"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/laravel/reverb/commit/73cc140d76e803b151fc2dd2e4eb3eb784a82ee2"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/laravel/reverb"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/laravel/reverb/releases/tag/v1.4.0"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-345", "CWE-347" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-10-31T18:03:11Z",
    "nvd_published_at" : "2024-10-31T18:15:05Z"
  }
}