SecurityContext

CVE-2022-39254: matrix-nio - Broken Access Control

  • Cve: CVE-2022-39254
  • Name: matrix-nio - Broken Access Control
  • Description: matrix-nio is a Python Matrix client library, designed according to sans I/O principles. Prior to version 0.20, when a users requests a room key from their devices, the software correctly remember the request. Once they receive a forwarded room key, they accept it without checking who the room key came from. This allows homeservers to try to insert room keys of questionable validity, potentially mounting an impersonation attack. Version 0.20 fixes the issue.
  • Impact: Attackers can impersonate users by injecting invalid room keys, potentially leading to impersonation and security breaches.
  • Remediation: Upgrade to version 0.20 or later.
  • Vulnerability type: broken_access_control
  • Vulnerability impact: privilege_escalation
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 6.5
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
  • Epss score: 0.00693
  • Epss percentile: 0.53849
  • Assignee: [email protected]
  • Published at: 2022-09-29T15:15:10Z
  • Age in days: 1517
  • Modified at: 2026-06-17T04:58:00Z
  • Patch available: yes
  • References total: 2
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2022-39254
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-287Improper Authentication
NVD-CWE-Other—

References

UrlSourceTags
https://github.com/poljar/matrix-nio/commit/b1cbf234a831daa160673defd596e6450e9c29f0nvdPatch, Third Party Advisory
https://github.com/poljar/matrix-nio/security/advisories/GHSA-w4pr-4vjg-hffhnvdThird Party Advisory

Products

ProductAffectedPlatform boundSourcesUrl
matrix-nio_project:matrix-nio< 0.20nonvd/v1/products/matrix-nio_project/matrix-nio

Projects

RepositoryLink kindsIndexedUrl
poljar/matrix-niocommit, package, security_advisoryyes/v1/repositories/poljar/matrix-nio

Index

  • Repositories: 9
  • Repositories high signal: 8
  • Checked, none or zero: packages

Exploitation

  • Remote: yes
  • Authentication required: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts