Track vulnerabilities like this one.
Sign up free to get alerted when software you use is affected.
4.6
CVE-2022-3971: matrix-appservice-irc can be tricked into running unauthorized database commands
CVE-2022-3971 · published 3 years ago
Summary
Versions of matrix-appservice-irc up to 0.35.1 let a specially crafted roomIds value cause a database command injection. This could let an attacker change or view data stored in the PostgreSQL database. Updating the software to version 0.36.0 resolves the issue.
What to do
- Update halfshot matrix-appservice-irc to version 0.36.0.
Affected software
| Ecosystem | Vendor | Product | Affected versions |
|---|---|---|---|
| npm | halfshot | matrix-appservice-irc |
< 0.36.0 Fix: upgrade to 0.36.0
|
| – | matrix | matrix_irc_bridge |
<= 0.36.0 cpe:2.3:a:matrix:matrix_irc_bridge:*:*:*:*:*:node.js:*:* |
Original advisory text
matrix-appservice-irc PgDataStore.ts sql injection
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.
References
- https://nvd.nist.gov/vuln/detail/CVE-2022-3971 Vendor Advisory
- https://github.com/advisories/GHSA-ffwf-47x2-jpr8
- https://github.com/matrix-org/matrix-appservice-irc/releases/tag/0.36.0 URL
- https://vuldb.com/?id.213550 URL
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/3xxx/CVE-2022-3971.j... Vendor Advisory
- https://github.com/matrix-org/matrix-appservice-irc/commit/179313a37f06b298150ed... Patch
- https://github.com/matrix-org/matrix-appservice-irc/pull/1619 Patch
Internet-facing
60 days
Internal
At next upgrade
- Not known to be exploited
- Needs hands-on effort to exploit
- Gives an attacker partial control
Severity
4.6
Medium
Type
CWE-89SQL Injection
CWE-707Improper Neutralization
Timeline
Published13 Nov 2022
Updated4 Nov 2026
First seen6 Mar 2026
Track software like this
Free during beta