UBUNTU-CVE-2022-39249 (CVE-2022-39249)

Vulnerability from osv_ubuntu – Published: 2022-09-28 20:15 – Updated: 2026-04-22 07:41 – Source website
VLAI
Details

Matrix Javascript SDK is the Matrix Client-Server SDK for JavaScript. Prior to version 19.7.0, an attacker cooperating with a malicious homeserver can construct messages appearing to have come from another person. Such messages will be marked with a grey shield on some platforms, but this may be missing in others. This attack is possible due to the matrix-js-sdk implementing a too permissive key forwarding strategy on the receiving end. Starting with version 19.7.0, the default policy for accepting key forwards has been made more strict in the matrix-js-sdk. matrix-js-sdk will now only accept forwarded keys in response to previously issued requests and only from own, verified devices. The SDK now sets a trusted flag on the decrypted message upon decryption, based on whether the key used to decrypt the message was received from a trusted source. Clients need to ensure that messages decrypted with a key with trusted = false are decorated appropriately, for example, by showing a warning for such messages. This attack requires coordination between a malicious homeserver and an attacker, and those who trust your homeservers do not need a workaround.


{
  "affected": [
    {
      "ecosystem_specific": {
        "availability": "No subscription required",
        "binaries": [
          {
            "binary_name": "thunderbird",
            "binary_version": "1:102.4.2+build2-0ubuntu0.18.04.1"
          },
          {
            "binary_name": "thunderbird-gnome-support",
            "binary_version": "1:102.4.2+build2-0ubuntu0.18.04.1"
          },
          {
            "binary_name": "thunderbird-mozsymbols",
            "binary_version": "1:102.4.2+build2-0ubuntu0.18.04.1"
          },
          {
            "binary_name": "xul-ext-calendar-timezones",
            "binary_version": "1:102.4.2+build2-0ubuntu0.18.04.1"
          },
          {
            "binary_name": "xul-ext-gdata-provider",
            "binary_version": "1:102.4.2+build2-0ubuntu0.18.04.1"
          },
          {
            "binary_name": "xul-ext-lightning",
            "binary_version": "1:102.4.2+build2-0ubuntu0.18.04.1"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:18.04:LTS",
        "name": "thunderbird",
        "purl": "pkg:deb/ubuntu/thunderbird@1:102.4.2+build2-0ubuntu0.18.04.1?arch=source\u0026distro=bionic"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "1:102.4.2+build2-0ubuntu0.18.04.1"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "1:52.4.0+build1-0ubuntu2",
        "1:52.6.0+build1-0ubuntu1",
        "1:52.7.0+build1-0ubuntu1",
        "1:52.8.0+build1-0ubuntu0.18.04.1",
        "1:52.9.1+build3-0ubuntu0.18.04.1",
        "1:60.2.1+build1-0ubuntu0.18.04.2",
        "1:60.4.0+build2-0ubuntu0.18.04.1",
        "1:60.5.1+build2-0ubuntu0.18.04.1",
        "1:60.6.1+build2-0ubuntu0.18.04.1",
        "1:60.7.0+build1-0ubuntu0.18.04.1",
        "1:60.7.1+build1-0ubuntu0.18.04.1",
        "1:60.7.2+build2-0ubuntu0.18.04.1",
        "1:60.8.0+build1-0ubuntu0.18.04.1",
        "1:60.9.0+build1-0ubuntu0.18.04.1",
        "1:68.2.1+build1-0ubuntu0.18.04.1",
        "1:68.2.2+build1-0ubuntu0.18.04.1",
        "1:68.4.1+build1-0ubuntu0.18.04.1",
        "1:68.7.0+build1-0ubuntu0.18.04.1",
        "1:68.8.0+build2-0ubuntu0.18.04.2",
        "1:68.10.0+build1-0ubuntu0.18.04.1",
        "1:78.8.1+build1-0ubuntu0.18.04.1",
        "1:78.11.0+build1-0ubuntu0.18.04.2",
        "1:78.13.0+build1-0ubuntu0.18.04.1",
        "1:78.14.0+build1-0ubuntu0.18.04.1",
        "1:78.14.0+build1-0ubuntu0.18.04.2",
        "1:91.5.0+build1-0ubuntu0.18.04.1",
        "1:91.7.0+build2-0ubuntu0.18.04.1",
        "1:91.8.1+build1-0ubuntu0.18.04.1",
        "1:91.9.1+build1-0ubuntu0.18.04.1",
        "1:91.11.0+build2-0ubuntu0.18.04.1",
        "1:102.2.2+build1-0ubuntu0.18.04.1"
      ]
    },
    {
      "ecosystem_specific": {
        "availability": "No subscription required",
        "binaries": [
          {
            "binary_name": "thunderbird",
            "binary_version": "1:102.4.2+build2-0ubuntu0.20.04.1"
          },
          {
            "binary_name": "thunderbird-gnome-support",
            "binary_version": "1:102.4.2+build2-0ubuntu0.20.04.1"
          },
          {
            "binary_name": "thunderbird-mozsymbols",
            "binary_version": "1:102.4.2+build2-0ubuntu0.20.04.1"
          },
          {
            "binary_name": "xul-ext-calendar-timezones",
            "binary_version": "1:102.4.2+build2-0ubuntu0.20.04.1"
          },
          {
            "binary_name": "xul-ext-gdata-provider",
            "binary_version": "1:102.4.2+build2-0ubuntu0.20.04.1"
          },
          {
            "binary_name": "xul-ext-lightning",
            "binary_version": "1:102.4.2+build2-0ubuntu0.20.04.1"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:20.04:LTS",
        "name": "thunderbird",
        "purl": "pkg:deb/ubuntu/thunderbird@1:102.4.2+build2-0ubuntu0.20.04.1?arch=source\u0026distro=focal"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "1:102.4.2+build2-0ubuntu0.20.04.1"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "1:68.1.2+build1-0ubuntu1",
        "1:68.1.2+build1-0ubuntu2",
        "1:68.2.1+build1-0ubuntu1",
        "1:68.2.2+build1-0ubuntu1",
        "1:68.3.0+build2-0ubuntu1",
        "1:68.3.1+build1-0ubuntu2",
        "1:68.4.1+build1-0ubuntu1",
        "1:68.4.2+build2-0ubuntu1",
        "1:68.5.0+build1-0ubuntu1",
        "1:68.6.0+build2-0ubuntu1",
        "1:68.7.0+build1-0ubuntu1",
        "1:68.7.0+build1-0ubuntu2",
        "1:68.8.0+build2-0ubuntu0.20.04.2",
        "1:68.10.0+build1-0ubuntu0.20.04.1",
        "1:78.7.1+build1-0ubuntu0.20.04.1",
        "1:78.8.1+build1-0ubuntu0.20.04.1",
        "1:78.11.0+build1-0ubuntu0.20.04.2",
        "1:78.13.0+build1-0ubuntu0.20.04.2",
        "1:78.14.0+build1-0ubuntu0.20.04.1",
        "1:78.14.0+build1-0ubuntu0.20.04.2",
        "1:91.5.0+build1-0ubuntu0.20.04.1",
        "1:91.7.0+build2-0ubuntu0.20.04.1",
        "1:91.8.1+build1-0ubuntu0.20.04.1",
        "1:91.9.1+build1-0ubuntu0.20.04.1",
        "1:91.11.0+build2-0ubuntu0.20.04.1",
        "1:102.2.2+build1-0ubuntu0.20.04.1"
      ]
    },
    {
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "libjs-matrix-js-sdk",
            "binary_version": "0.9.2-1"
          },
          {
            "binary_name": "node-matrix-js-sdk",
            "binary_version": "0.9.2-1"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:20.04:LTS",
        "name": "node-matrix-js-sdk",
        "purl": "pkg:deb/ubuntu/node-matrix-js-sdk@0.9.2-1?arch=source\u0026distro=focal"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "0.9.2-1"
      ]
    },
    {
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "libjs-matrix-js-sdk",
            "binary_version": "9.11.0+~cs9.9.16-1"
          },
          {
            "binary_name": "node-matrix-js-sdk",
            "binary_version": "9.11.0+~cs9.9.16-1"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:22.04:LTS",
        "name": "node-matrix-js-sdk",
        "purl": "pkg:deb/ubuntu/node-matrix-js-sdk@9.11.0+~cs9.9.16-1?arch=source\u0026distro=jammy"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "9.3.0+~cs9.9.16-2",
        "9.11.0+~cs9.9.16-1"
      ]
    },
    {
      "ecosystem_specific": {
        "availability": "No subscription required",
        "binaries": [
          {
            "binary_name": "thunderbird",
            "binary_version": "1:102.4.2+build2-0ubuntu0.22.04.1"
          },
          {
            "binary_name": "thunderbird-gnome-support",
            "binary_version": "1:102.4.2+build2-0ubuntu0.22.04.1"
          },
          {
            "binary_name": "thunderbird-mozsymbols",
            "binary_version": "1:102.4.2+build2-0ubuntu0.22.04.1"
          },
          {
            "binary_name": "xul-ext-calendar-timezones",
            "binary_version": "1:102.4.2+build2-0ubuntu0.22.04.1"
          },
          {
            "binary_name": "xul-ext-gdata-provider",
            "binary_version": "1:102.4.2+build2-0ubuntu0.22.04.1"
          },
          {
            "binary_name": "xul-ext-lightning",
            "binary_version": "1:102.4.2+build2-0ubuntu0.22.04.1"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:22.04:LTS",
        "name": "thunderbird",
        "purl": "pkg:deb/ubuntu/thunderbird@1:102.4.2+build2-0ubuntu0.22.04.1?arch=source\u0026distro=jammy"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "1:102.4.2+build2-0ubuntu0.22.04.1"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "1:91.1.2+build1-0ubuntu1",
        "1:91.3.0+build2-0ubuntu1",
        "1:91.3.1+build1-0ubuntu1",
        "1:91.3.2+build1-0ubuntu1",
        "1:91.4.0+build1.1-0ubuntu1",
        "1:91.4.0+build2-0ubuntu1",
        "1:91.5.0+build1-0ubuntu1",
        "1:91.5.1+build1-0ubuntu1",
        "1:91.6.1+build1-0ubuntu1",
        "1:91.7.0+build1-0ubuntu1",
        "1:91.7.0+build2-0ubuntu1",
        "1:91.8.0+build2-0ubuntu1",
        "1:91.9.1+build1-0ubuntu0.22.04.1",
        "1:91.11.0+build2-0ubuntu0.22.04.1",
        "1:102.2.2+build1-0ubuntu0.22.04.1"
      ]
    },
    {
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "libjs-matrix-js-sdk",
            "binary_version": "9.11.0+~cs9.9.16-2"
          },
          {
            "binary_name": "node-matrix-js-sdk",
            "binary_version": "9.11.0+~cs9.9.16-2"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:24.04:LTS",
        "name": "node-matrix-js-sdk",
        "purl": "pkg:deb/ubuntu/node-matrix-js-sdk@9.11.0+~cs9.9.16-2?arch=source\u0026distro=noble"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "9.11.0+~cs9.9.16-2"
      ]
    }
  ],
  "aliases": [],
  "details": "Matrix Javascript SDK is the Matrix Client-Server SDK for JavaScript. Prior to version 19.7.0, an attacker cooperating with a malicious homeserver can construct messages appearing to have come from another person. Such messages will be marked with a grey shield on some platforms, but this may be missing in others. This attack is possible due to the matrix-js-sdk implementing a too permissive key forwarding strategy on the receiving end. Starting with version 19.7.0, the default policy for accepting key forwards has been made more strict in the matrix-js-sdk. matrix-js-sdk will now only accept forwarded keys in response to previously issued requests and only from own, verified devices. The SDK now sets a `trusted` flag on the decrypted message upon decryption, based on whether the key used to decrypt the message was received from a trusted source. Clients need to ensure that messages decrypted with a key with `trusted = false` are decorated appropriately, for example, by showing a warning for such messages. This attack requires coordination between a malicious homeserver and an attacker, and those who trust your homeservers do not need a workaround.",
  "id": "UBUNTU-CVE-2022-39249",
  "modified": "2026-04-22T07:41:40Z",
  "published": "2022-09-28T20:15:00Z",
  "references": [
    {
      "type": "REPORT",
      "url": "https://ubuntu.com/security/CVE-2022-39249"
    },
    {
      "type": "REPORT",
      "url": "https://github.com/matrix-org/matrix-js-sdk/security/advisories/GHSA-6263-x97c-c4gg"
    },
    {
      "type": "REPORT",
      "url": "https://github.com/matrix-org/matrix-js-sdk/commit/a587d7c36026fe1fcf93dfff63588abee359be76"
    },
    {
      "type": "REPORT",
      "url": "https://github.com/matrix-org/matrix-spec-proposals/pull/3061"
    },
    {
      "type": "REPORT",
      "url": "https://matrix.org/blog/2022/09/28/upgrade-now-to-address-encryption-vulns-in-matrix-sdks-and-clients"
    },
    {
      "type": "REPORT",
      "url": "https://github.com/matrix-org/matrix-js-sdk/releases/tag/v19.7.0"
    },
    {
      "type": "ADVISORY",
      "url": "https://ubuntu.com/security/notices/USN-5724-1"
    },
    {
      "type": "REPORT",
      "url": "https://www.cve.org/CVERecord?id=CVE-2022-39249"
    }
  ],
  "related": [
    "USN-5724-1"
  ],
  "schema_version": "1.7.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N",
      "type": "CVSS_V3"
    },
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N",
      "type": "CVSS_V3"
    },
    {
      "score": "medium",
      "type": "Ubuntu"
    }
  ],
  "upstream": [
    "CVE-2022-39249"
  ]
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Loading…

Loading…

Related by attack behaviour

Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.


Loading…