Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. matrix-nio
  4. ›
  5. CVE-2022-39254

CVE-2022-39254: Key Exchange without Entity Authentication

September 29, 2022 (updated July 13, 2023)

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.

References

  • github.com/advisories/GHSA-w4pr-4vjg-hffh
  • github.com/poljar/matrix-nio/commit/b1cbf234a831daa160673defd596e6450e9c29f0
  • github.com/poljar/matrix-nio/security/advisories/GHSA-w4pr-4vjg-hffh
  • nvd.nist.gov/vuln/detail/CVE-2022-39254

Code Behaviors & Features

Detect and mitigate CVE-2022-39254 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.20

Fixed versions

  • 0.20.0

Solution

Upgrade to version 0.20.0 or above.

Impact 6.5 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N

Learn more about CVSS

Source file

pypi/matrix-nio/CVE-2022-39254.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:49 +0000.