{"answers":{"affected":"5 open source packages ship an affected version, including matrix-sdk-sqlite and matrix-sdk.","exploited":"There is no known exploitation of CVE-2025-53549 in the wild and no public exploit code.","fix":"Upgrade matrix-sdk-sqlite to 0.13.0 or later.","what":"CVE-2025-53549 is a medium-severity SQL injection vulnerability in matrix-org matrix-rust-sdk, published on 10 Jul 2025. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-53549 and fix it if it is affected.\n\nWhat it is: CVE-2025-53549 is a medium-severity SQL injection vulnerability in matrix-org matrix-rust-sdk, published on 10 Jul 2025. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2025-53549 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- matrix-sdk-sqlite (crates.io): affected from 0.11.0; fixed in 0.13.0\n- matrix-sdk-sqlite (crates.io): affected from 0.11.0; fixed in 0.13.0\n- matrix-sdk-sqlite (crates.io): affected from 0.11.0; fixed in 0.13.0\n- matrix-sdk (crates.io): affected from 0.11.0; fixed in 0.13.0\n- matrix-sdk (crates.io): affected from 0.11.0; fixed in 0.13.0\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-53549/ (Markdown: https://insights.sbomify.com/CVE-2025-53549/index.md)","id":"CVE-2025-53549","markdown":"https://insights.sbomify.com/CVE-2025-53549/index.md","name":"CVE-2025-53549","record":{"aliases":["GHSA-275g-g844-73jh","RUSTSEC-2025-0043","openSUSE-SU-2025:15351-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution","data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"Matrix Rust SDK","requires_auth":"low_privilege","summary":"Malicious room members can execute arbitrary SQL commands in Matrix clients using the Matrix Rust SDK via the EventCache implementation.","user_interaction":"not_required","vuln_class":"sql_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":5.2,"severity":"medium","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U","version":"4.0"},"cwes":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command"}],"description":"The Matrix Rust SDK is a collection of libraries that make it easier to build Matrix clients in Rust. An SQL injection vulnerability in the EventCache::find_event_with_relations method of matrix-sdk 0.11 and 0.12 allows malicious room members to execute arbitrary SQL commands in Matrix clients that directly pass relation types provided by those room members into this method, when used with the default sqlite-based store backend. Exploitation is unlikely, as no known clients currently use the API in this manner. This vulnerability is fixed in 0.13.","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 Rust SDK allows SQL injection in the EventCache implementation","id":"CVE-2025-53549","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"crates.io","product":null,"products":[],"type":"sql_injection","year":"2025"},"n_packages":6,"n_references":2,"next":{"headline":"Memory corruption in libbiosig","id":"CVE-2025-53557"},"packages":[{"ecosystem":"crates.io","fixed":["0.13.0"],"introduced":["0.11.0"],"last_affected":[],"package":"matrix-sdk","purl":null,"source":"GHSA-275g-g844-73jh"},{"ecosystem":"crates.io","fixed":["0.13.0"],"introduced":["0.11.0"],"last_affected":[],"package":"matrix-sdk","purl":"pkg:cargo/matrix-sdk","source":"GHSA-275g-g844-73jh"},{"ecosystem":"crates.io","fixed":["0.13.0"],"introduced":["0.11.0"],"last_affected":[],"package":"matrix-sdk-sqlite","purl":null,"source":"GHSA-275g-g844-73jh"},{"ecosystem":"crates.io","fixed":["0.13.0"],"introduced":["0.11.0"],"last_affected":[],"package":"matrix-sdk-sqlite","purl":"pkg:cargo/matrix-sdk-sqlite","source":"GHSA-275g-g844-73jh"},{"ecosystem":"crates.io","fixed":["0.13.0"],"introduced":["0.11.0"],"last_affected":[],"package":"matrix-sdk-sqlite","purl":"pkg:cargo/matrix-sdk-sqlite","source":"RUSTSEC-2025-0043"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["12.beta+14-1.1"],"introduced":["0"],"last_affected":[],"package":"fractal","purl":"pkg:rpm/opensuse/fractal\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2025:15351-1"}],"prev":{"headline":"@clerk/backend Performs Insufficient Verification of Data Authenticity","id":"CVE-2025-53548"},"products":["matrix-rust-sdk"],"published":"2025-07-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":"total"},"state":"PUBLISHED","updated":"2025-07-10","vendors":["matrix-org"]},"summary":"Malicious room members can execute arbitrary SQL commands in Matrix clients using the Matrix Rust SDK via the EventCache implementation.","url":"https://insights.sbomify.com/CVE-2025-53549/"}