CVE-2024-50347: Laravel/reverb Laravel Reverb Missing API Signature Vulnerability
HIGHCVE-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
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.
Upgrade laravel/reverb to 1.4.0
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
CVE-2024-50347 Affected Laravel/reverb Versions
1 component(s)| 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?
Which Laravel/reverb versions are affected?
What version fixes CVE-2024-50347?
Is laravel/reverb affected?
What CWE is associated with CVE-2024-50347?
How can I check Packagist dependencies for CVE-2024-50347?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}