# CVE-2022-3971: matrix-appservice-irc PgDataStore.ts sql injection

- Severity: Medium 4.6 (CVSS:3.1, scored by VulDB) `CVSS:3.1/AV:A/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.70%, higher than 54% of CVEs (2026-12-01)
- Published: 2022-11-13T00:00:00.000Z
- Modified: 2026-06-17T05:00:41.060Z
- Also known as: GHSA-ffwf-47x2-jpr8
- Weaknesses: CWE-89, CWE-707
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: VulDB

## Description

A vulnerability was found in matrix-appservice-irc up to 0.35.1. It has been declared as critical. This vulnerability affects unknown code of the file src/datastore/postgres/PgDataStore.ts. The manipulation of the argument roomIds leads to sql injection. Upgrading to version 0.36.0 is able to address this issue. The name of the patch is 179313a37f06b298150edba3e2b0e5a73c1415e7. It is recommended to upgrade the affected component. VDB-213550 is the identifier assigned to this vulnerability.

(As written by CVE List.)

## Affected

- unspecified matrix-appservice-irc: 0.35.0; 0.35.1
- matrix-appservice-irc (npm): before 0.36.0
- matrix matrix_irc_bridge: up to 0.36.0

## Every score

- VulDB: CVSS:3.1 4.6 Medium `CVSS:3.1/AV:A/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L`
- GitHub: CVSS:3.1 5.6 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L`
- NVD: CVSS:3.1 5.6 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L`

## References

- <https://github.com/matrix-org/matrix-appservice-irc/pull/1619> (patch, third-party-advisory, web)
- <https://github.com/matrix-org/matrix-appservice-irc/releases/tag/0.36.0> (release-notes, third-party-advisory, web)
- <https://github.com/matrix-org/matrix-appservice-irc/commit/179313a37f06b298150edba3e2b0e5a73c1415e7> (patch, third-party-advisory, web)
- <https://vuldb.com/?id.213550> (third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-3971> (advisory)
- <https://github.com/matrix-org/matrix-appservice-irc> (package)

## Sources

- CVE List: [CVE-2022-3971](https://www.cve.org/CVERecord?id=CVE-2022-3971), CVE Terms of Use, modified 2025-04-15
- GitHub Advisory Database: [GHSA-ffwf-47x2-jpr8](https://github.com/advisories/GHSA-ffwf-47x2-jpr8), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2022-3971](https://nvd.nist.gov/vuln/detail/CVE-2022-3971), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-3971 · Whole record: https://cve.day/CVE-2022-3971.json · Rebuilt by cve.day 2026-11-25T22:58:16.433Z
