An improper access control vulnerability exists in Rocket.Chat <v5, <v4.8.2 and <v4.7.5 due to input data in the getUsersOfRoom Meteor server method is not type validated, so that MongoDB query operator objects are accepted by the server, so that instead of a matching rid String a$regex query can be executed, bypassing the room access permission check for every but the first matching room.
{
"cwe_ids": [
"CWE-284"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/32xxx/CVE-2022-32226.json",
"unresolved_ranges": [
{
"extracted_events": [
{
"introduced": "Fixed in 4.7.5, 4.8.2 and 5.0.0"
},
{
"last_affected": "Fixed in 4.7.5, 4.8.2 and 5.0.0"
}
],
"source": "AFFECTED_FIELD"
}
],
"cna_assigner": "hackerone"
}{
"cpe": "cpe:2.3:a:rocket.chat:rocket.chat:*:*:*:*:*:*:*:*",
"extracted_events": [
{
"introduced": "0"
},
{
"fixed": "4.7.5"
},
{
"introduced": "4.8.0"
},
{
"fixed": "4.8.2"
}
],
"source": "CPE_RANGE"
}