{"answers":{"affected":"3 open source packages ship an affected version, including matrix-sdk-crypto.","exploited":"There is no known exploitation of CVE-2025-48937 in the wild and no public exploit code.","fix":"Upgrade matrix-sdk-crypto to 0.11.1 or later.","what":"CVE-2025-48937 is a medium-severity authentication bypass vulnerability in matrix-org matrix-rust-sdk, published on 10 Jun 2025. An attacker needs administrator access to exploit it, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-48937 and fix it if it is affected.\n\nWhat it is: CVE-2025-48937 is a medium-severity authentication bypass vulnerability in matrix-org matrix-rust-sdk, published on 10 Jun 2025. An attacker needs administrator access to exploit it, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2025-48937 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- matrix-sdk-crypto (crates.io): affected from 0.8.0; fixed in 0.11.1\n- matrix-sdk-crypto (crates.io): affected from 0.8.0; fixed in 0.11.1\n- matrix-sdk-crypto (crates.io): affected from 0.8.0; fixed in 0.11.1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2025-48937/ (Markdown: https://insights.sbomify.com/CVE-2025-48937/index.md)","id":"CVE-2025-48937","markdown":"https://insights.sbomify.com/CVE-2025-48937/index.md","name":"CVE-2025-48937","record":{"aliases":["GHSA-x958-rvg6-956w","RUSTSEC-2025-0041","openSUSE-SU-2025:15218-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"Matrix client library","requires_auth":"high_privilege","summary":"A malicious homeserver can spoof the sender of encrypted events, allowing impersonation of other users in Matrix clients using the vulnerable library.","user_interaction":"not_required","vuln_class":"auth_bypass"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":4.9,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-290","name":"Authentication Bypass by Spoofing"}],"description":"matrix-rust-sdk is an implementation of a Matrix client-server library in Rust. matrix-sdk-crypto since version 0.8.0 and up to 0.11.0 does not correctly validate the sender of an encrypted event. Accordingly, a malicious homeserver operator can modify events served to clients, making those events appear to the recipient as if they were sent by another user. This vulnerability is fixed in 0.11.1 and 0.12.0.","ecosystems":["crates.io","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"matrix-sdk-crypto vulnerable to sender of encrypted events being spoofed by homeserver administrator","id":"CVE-2025-48937","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"crates.io","product":null,"products":[],"type":"auth_bypass","year":"2025"},"n_packages":4,"n_references":4,"next":{"headline":"Prevent GitHub CLI and extensions from executing arbitrary commands from compromised GitHub Enterprise Server","id":"CVE-2025-48938"},"packages":[{"ecosystem":"crates.io","fixed":["0.11.1"],"introduced":["0.8.0"],"last_affected":[],"package":"matrix-sdk-crypto","purl":null,"source":"GHSA-x958-rvg6-956w"},{"ecosystem":"crates.io","fixed":["0.11.1"],"introduced":["0.8.0"],"last_affected":[],"package":"matrix-sdk-crypto","purl":"pkg:cargo/matrix-sdk-crypto","source":"GHSA-x958-rvg6-956w"},{"ecosystem":"crates.io","fixed":["0.11.1"],"introduced":["0.8.0"],"last_affected":[],"package":"matrix-sdk-crypto","purl":"pkg:cargo/matrix-sdk-crypto","source":"RUSTSEC-2025-0041"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["11.2-1.1"],"introduced":["0"],"last_affected":[],"package":"fractal","purl":"pkg:rpm/opensuse/fractal\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2025:15218-1"}],"prev":{"headline":"ZITADEL Allows Account Takeover via Malicious X-Forwarded-Proto Header Injection","id":"CVE-2025-48936"},"products":["matrix-rust-sdk"],"published":"2025-06-10","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"open","licence":"CC0 1.0","name":"RustSec","prefix":"RUSTSEC"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-06-10","vendors":["matrix-org"]},"summary":"A malicious homeserver can spoof the sender of encrypted events, allowing impersonation of other users in Matrix clients using the vulnerable library.","url":"https://insights.sbomify.com/CVE-2025-48937/"}