PyPi: Matrix-Nio

CVE-2022-39254

Safety vulnerability ID: 51289

This vulnerability was reviewed by experts

The information on this page was manually curated by our Cybersecurity Intelligence Team.

Created at Sep 29, 2022 Updated at Nov 29, 2024
Scan your Python projects for vulnerabilities →

Advisory

Matrix-nio 0.20 includes a fix for CVE-2022-39254: Prior to version 0.20, when a user 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.

Affected package

matrix-nio

Latest version: 0.25.2

A Python Matrix client library, designed according to sans I/O principles.

Affected versions

Fixed versions

Vulnerability changelog

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. See CVE-2022-39254.


CONFIRM:https://github.com/poljar/matrix-nio/security/advisories/GHSA-w4pr-4vjg-hffh: https://github.com/poljar/matrix-nio/security/advisories/GHSA-w4pr-4vjg-hffh
MISC:https://github.com/poljar/matrix-nio/commit/b1cbf234a831daa160673defd596e6450e9c29f0: https://github.com/poljar/matrix-nio/commit/b1cbf234a831daa160673defd596e6450e9c29f0

Resources

Use this package?

Scan your Python project for dependency vulnerabilities in two minutes

Scan your application

Severity Details

CVSS Base Score

MEDIUM 6.5

CVSS v3 Details

MEDIUM 6.5
Attack Vector (AV)
NETWORK
Attack Complexity (AC)
LOW
Privileges Required (PR)
LOW
User Interaction (UI)
NONE
Scope (S)
UNCHANGED
Confidentiality Impact (C)
NONE
Integrity Impact (I)
HIGH
Availability Availability (A)
NONE