CVE-2024-39691

Source
https://nvd.nist.gov/vuln/detail/CVE-2024-39691
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-39691.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2024-39691
Aliases
Related
Published
2024-07-05T19:15:10Z
Modified
2025-01-08T16:14:47.450684Z
Summary
[none]
Details

matrix-appservice-irc is a Node.js IRC bridge for the Matrix messaging protocol. The fix for GHSA-wm4w-7h2q-3pf7 / CVE-2024-32000 included in matrix-appservice-irc 2.0.0 relied on the Matrix homeserver-provided timestamp to determine whether a user has access to the event they're replying to when determining whether or not to include a truncated version of the original event in the IRC message. Since this value is controlled by external entities, a malicious Matrix homeserver joined to a room in which a matrix-appservice-irc bridge instance (before version 2.0.1) is present can fabricate the timestamp with the intent of tricking the bridge into leaking room messages the homeserver should not have access to. matrix-appservice-irc 2.0.1 drops the reliance on origin_server_ts when determining whether or not an event should be visible to a user, instead tracking the event timestamps internally. As a workaround, it's possible to limit the amount of information leaked by setting a reply template that doesn't contain the original message.

References

Affected packages

Git / github.com/matrix-org/matrix-appservice-irc

Affected ranges

Type
GIT
Repo
https://github.com/matrix-org/matrix-appservice-irc
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Fixed

Affected versions

0.*

0.1.1
0.10.0
0.10.0-rc1
0.10.1
0.11.0
0.11.0-rc1
0.11.0-rc2
0.11.0-rc3
0.11.0-rc4
0.11.1
0.12.0
0.12.0-rc1
0.12.0-rc2
0.13.0
0.13.0-rc1
0.13.0-rc2
0.13.1
0.14.0
0.14.0-rc1
0.14.0-rc2
0.14.0-rc3
0.14.0-rc4
0.14.1
0.15.0
0.15.1
0.15.2
0.16.0
0.17.0
0.17.0-rc3
0.17.0-rc4
0.17.1
0.18.0
0.18.0-rc1
0.19.0
0.19.0-rc1
0.19.0-rc2
0.20.0-rc1
0.20.0-rc2
0.20.1
0.20.2
0.21-morg-fixes
0.21.0
0.21.0-kick-fix
0.21.0-rc3
0.22.0
0.22.0-rc1
0.23.0
0.23.0-fosdem
0.23.0-rc1
0.24.0
0.24.0-rc1
0.25.0
0.25.0-rc1
0.26.0
0.26.0-rc1
0.26.0-rc2
0.27.0
0.27.0-rc1
0.27.0-rc2
0.27.0-rc3
0.29.0
0.29.0-rc1
0.29.0-rc2
0.3.0
0.3.1
0.30.0
0.30.0-rc1
0.31.0
0.31.0-rc1
0.32.0
0.32.0-rc1
0.32.0-rc2
0.32.1-fosdem-1
0.32.1-fosdem-2
0.32.1-fosdem-3
0.32.1-fosdem-4
0.33.0
0.33.0-rc2
0.33.1
0.35.0
0.36.0
0.37.1
0.38.0
0.4.0
0.5.0
0.6.0
0.7.0
0.7.1
0.7.2
0.8.0

1.*

1.0.0
1.0.0-rc1
1.0.1

2.*

2.0.0

Other

develop-2019-02-17
develop-2019-10-23
develop-2019-11-12
develop-2019-11-15
develop-2019-11-26
develop-2019-11-28
develop-gimpnet-2019-02-17
matrix-org-testing
morg-freenode-realname-format

v0.*

v0.9.0
v0.9.0-rc1
v0.9.1