matrix-org/matrix-appservice-irc · Security
Matrix-appservice-irc vulnerable to sql injection via roomIds argument
- GHSA ID
- GHSA-ffwf-47x2-jpr8
- CVE ID
- CVE-2022-3971
- Severity
- medium
- Published
- Updated
- CVSS
- 5.6 · CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L
- CVSS v3
- 5.6 · CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L
Description
A vulnerability was found in matrix-appservice-irc up to 0.35.1. This vulnerability affects 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.
CWEs
- CWE-89 · Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
References
- https://nvd.nist.gov/vuln/detail/CVE-2022-3971 ↗
- https://github.com/matrix-org/matrix-appservice-irc/pull/1619 ↗
- https://github.com/matrix-org/matrix-appservice-irc/commit/179313a37f06b298150edba3e2b0e5a73c1415e7 ↗
- https://github.com/matrix-org/matrix-appservice-irc/releases/tag/0.36.0 ↗
- https://vuldb.com/?id.213550 ↗
- https://github.com/advisories/GHSA-ffwf-47x2-jpr8 ↗