{"vuln_id":"CVE-2025-24365","aliases":["GHSA-j4h8-vch3-f797","GHSA-f7r5-w49x-gxm3","GHSA-h6cc-rc6q-23j4","CVE-2025-24364"],"description":"Escalation of privilege via variable confusion in OrgHeaders trait","published_at":"2025-01-25T13:52:55Z","modified_at":"2025-01-27T14:55:35Z","first_seen_at":"2026-11-22T14:05:38.160014Z","severity":"high","severity_source":"ghsa","cvss_score":8.1,"cvss_vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","cwe":["CWE-284"],"vendor":null,"product":null,"kev":{"is_kev":false,"date_added":null,"due_date":null,"ransomware":false},"epss":0.0067,"epss_percentile":0.52915,"nvd_status":null,"enriched_at":null,"links":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2025-24365"},"matched_alias":null,"items":[{"id":12706,"source":{"id":"gh-vaultwarden","name":"Vaultwarden releases + advisories (GitHub dani-garcia/vaultwarden)"},"title":"GHSA-j4h8-vch3-f797 / CVE-2025-24365: Escalation of privilege via variable confusion in OrgHeaders trait","summary":"Escalation of privilege via variable confusion in OrgHeaders trait ### Summary Attacker can obtain owner rights of other organization. Hacker should know the ID of victim organization (in real case the user can be a part of the organization as an unprivileged user) and be the owner/admin of other organization (by default you can create your own organization) in order to attack. ### Details Vulnerable part of code is located in `src/auth.rs` in OrgHeaders trait. ![](https://github.com/user-attachments/assets/c7419cf6-45e8-42e8-9b17-e3b428c07820) Server finds `url_org_id`, then gets membership and type of membership by this var. Lets review how server gets `url_org_id`. ![1](https://github.com/user-attachments/assets/f2ef3224-4b03-494f-9ab4-290bedb6488e) Here we can see two if conditions. Server tries to get organization UUID from the path param and then the same from the GET query. If we specify GET query and path param both, value from GET query will overwrite the value from path param. Also we can see that most of endpoints in `src/api/core/organizations.rs` get organization UUID from path param and do not use `organizationId` GET query value. Thus we can interact with the first organization having rights of the second one. ### PoC 1. Foreign organization deletion `DELETE /api/organizations/?organizationId=` Where **UUID1** -- foreign organization, **UUID2** -- organization where attacker has owner/admin rights. 2. Foreign organization privilege escalation. Inviting user in victim organization ``` POST /api/organizations//users/invite?organizationId= {\"emails\":[\"attacker@site.com\"],\"collections\":[],\"accessAll\":true,\"permissions\":{\"response\":null},\"type\":0,\"groups\":[],\"accessSecretsManager\":false} ``` Where **UUID1** -- foreign organization, **UUID2** -- organization where attacker has owner/admin rights. Confirm user enrollment in the victim organization ``` POST /api/organizations//users//confirm?organizationId= {\"key\":} ``` Where **UUID1** -- foreign organization, **UUID2** -- organization where attacker has owner/admin rights, ATTACKER_USER_UUID -- UUID of attacker. Affected packages: docker hub:vaultwarden/server Patched: vaultwarden/server 1.33.0","url":"https://github.com/dani-garcia/vaultwarden/security/advisories/GHSA-j4h8-vch3-f797","published_at":"2025-01-25T13:52:55Z","updated_at":"2025-01-27T14:55:35Z","fetched_at":"2026-11-22T14:05:38.135273Z","severity":"high","cvss_score":8.1,"epss":0.0067,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":"dani-garcia","product":"vaultwarden/server","vuln_id":"CVE-2025-24365","vuln_ids":["CVE-2025-24364","CVE-2025-24365","GHSA-F7R5-W49X-GXM3","GHSA-H6CC-RC6Q-23J4","GHSA-J4H8-VCH3-F797"],"tags":["repo-advisory","docker hub","CWE-284","security","repo:dani-garcia/vaultwarden","stack","vaultwarden"],"cluster_id":11806,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/12706","html":"https://vulnwatch.ve1ve2.com/item/12706"}},{"id":12727,"source":{"id":"gh-vaultwarden","name":"Vaultwarden releases + advisories (GitHub dani-garcia/vaultwarden)"},"title":"[SECURITY RELEASE] dani-garcia/vaultwarden 1.33.0","summary":"Fixes advisories: GHSA-j4h8-vch3-f797, GHSA-h6cc-rc6q-23j4, GHSA-f7r5-w49x-gxm3\n\nSecurity keywords: security, GHSA-F7R5-W49X-GXM3, vulnerability, GHSA-H6CC-RC6Q-23J4, GHSA-J4H8-VCH3-F797, vulnerabilities\n\n## Security Fixes\r\nThis release contains security fixes for the following advisories.\r\nAnd we strongly advice to update as soon as possible.\r\n\r\n- [GHSA-f7r5-w49x-gxm3](https://github.com/dani-garcia/vaultwarden/security/advisories/GHSA-f7r5-w49x-gxm3)\r\n  This vulnerability is only possible if you do not have an `ADMIN_TOKEN` configured and open links or pages you should not trust anyway. Ensure you have an `ADMIN_TOKEN` configured to keep your admin environment save.\r\n- [GHSA-h6cc-rc6q-23j4](https://github.com/dani-garcia/vaultwarden/security/advisories/GHSA-h6cc-rc6q-23j4)\r\n  This vulnerability is only possible if someone was able to gain access to your Vaultwarden Admin Backend. The attacker could then change some settings to use sendmail as mail agent but adjust the settings in such a way that it would use a shell command. It then also needed to craft a special favicon image which would have the commands embedded to run during for example sending a test email.\r\n- [GHSA-j4h8-vch3-f797](https://github.com/dani-garcia/vaultwarden/security/advisories/GHSA-j4h8-vch3-f797)\r\n  This vulnerability affects all users who have multiple Organizations and users which are able to create a new organization or have admin or owner rights on at least one organization. The attacker does need to know the Organization UUID of the Organization it want's to attack or compromise though.\r\n\r\n## Notable changes\r\n- Updated web-vault to v2025.1.1\r\n- Added partial *manage* role support for collections\r\n- Manager role is converted to a Custom role with either Manage All Collections or per collection.\r\n  Admins and Owners probably want to check and verify if the rights are still correct.\r\n- The OCI containers and binaries are _signed_ via [GitHub Attestations](https://docs.github.com/en/actions/security-for-github-actions/using-artifact-attestations/using-artifact-attestations-to-establish-provenance-for-builds#verifying-artifact-attestations-with-the-github-cli)\r\n  This allows you to verify an OCI image or even the `vaultwarden` binary located within the OCI image.\r\n\r\n\r\nThese vulnerabilities affects \r\n\r\n## What's Changed\r\n* Add `inline-menu-positioning-improvements` feature flag by @Ephemera42 in https://github.com/dani-garcia/vaultwarden/pull/5313\r\n* Fix issues when uri match is a string by @BlackDex in https://github.com/dani-garcia/vaultwarden/pull/5332\r\n* Add TOTP delete endpoint by @Timshel in https://github.com/dani-garcia/vaultwarden/pull/5327\r\n* fix group issue in send_invite by @stefan0xC in https://github.com/dani-garcia/vaultwarden/pull/5321\r\n* Update crates and GHA by @BlackDex in https://github.com/dani-garcia/vaultwarden/pull/5346\r\n* Refactor the uri match fix and fix ssh-key sync by @BlackDex in https://github.com/dani-garcia/vaultwarden/pull/5339\r\n* Add partial role support for manager only using web-vault v2024.12.0 by @BlackDex in https://github.com/dani-garcia/vaultwarden/pull/5219\r\n* Fix issue with key-rotate by @BlackDex in https://github.com/dani-garcia/vaultwarden/pull/5348\r\n* fix manager role in admin users overview by @stefan0xC in https://github.com/dani-garcia/vaultwarden/pull/5359\r\n* Prevent new users/members to be stored in db when invite fails by @BlackDex in https://github.com/dani-garcia/vaultwarden/pull/5350\r\n* Update crates and web-vault to v2025.1.0 by @BlackDex in https://github.com/dani-garcia/vaultwarden/pull/5368\r\n* Allow building with Rust v1.84.0 or newer by @BlackDex in https://github.com/dani-garcia/vaultwarden/pull/5371\r\n* rename membership and adopt newtype pattern by @stefan0xC in https://github.com/dani-garcia/vaultwarden/pull/5320\r\n* build: raise msrv (1.83.0) rust toolchain (1.84.0) by @tessus in https://github.com/dani-garcia/vaultwarden/pull/5374\r\n* Fix an issue with login with device by @BlackDex in https://github.com/dani-garcia/vaultwarden/pull/5379\r\n* refactor: replace static with const for global constants by @Integral-Tech in https://github.com/dani-garcia/vaultwarden/pull/5260\r\n* Add Attestations f","url":"https://github.com/dani-garcia/vaultwarden/releases/tag/1.33.0","published_at":"2025-01-25T13:26:58Z","updated_at":null,"fetched_at":"2026-11-22T14:05:38.135294Z","severity":"high","cvss_score":8.1,"epss":0.00999,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":"dani-garcia","product":"vaultwarden","vuln_id":"CVE-2025-24365","vuln_ids":["CVE-2025-24364","CVE-2025-24365","GHSA-F7R5-W49X-GXM3","GHSA-H6CC-RC6Q-23J4","GHSA-J4H8-VCH3-F797"],"tags":["release","repo:dani-garcia/vaultwarden","security","stack","vaultwarden"],"cluster_id":11810,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/12727","html":"https://vulnwatch.ve1ve2.com/item/12727"}}]}