{"id":"RUSTSEC-2026-0591","summary":"Ineffective default DACL on Windows","details":"On Windows, affected versions of this crate do not provide the intended security-enhancement.\nIn particular, any process running under the same user as the hardened process can reset our DACL,\nand thus bypass the protection the DACL should have provided. Usage of the crate however *does not\nactively harm security*.\n\nOn affected version, an explicit owner SID (taken from the process token) was used for the DACL.\nHowever, Windows implicitly grants extra access rights to the well-known \"owner rights\" SID, unless\nit occurs in the DACL, which it did not. This allows any process under the same user to reset the\nDACL of our process, making this defence effectively useless. The new code uses the well-known\n\"owner rights\" SID, preventing the attack.\n\nThe default hardening setup is fixed in version `0.3.9`. Users creating a custom DACL with the API\nfrom the `win_acl` module need to manually update their code to get the security enhancement. They\nare strongly advised to use a well-known \"owner rights\" SID created using the new\n`win_acl::SidRef::well_known` (introduced in version `0.3.9`) in their DACL instead of the owner\nSID returned by `win_acl::TokenUser::sid`.","modified":"2026-11-22T10:00:02.278782227Z","published":"2026-10-27T12:00:00Z","database_specific":{"license":"CC0-1.0"},"references":[{"type":"PACKAGE","url":"https://crates.io/crates/secmem-proc"},{"type":"ADVISORY","url":"https://rustsec.org/advisories/RUSTSEC-2026-0591.html"},{"type":"REPORT","url":"https://github.com/niluxv/secmem-proc/issues/13"}],"affected":[{"package":{"name":"secmem-proc","ecosystem":"crates.io","purl":"pkg:cargo/secmem-proc"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0.0.0-0"},{"fixed":"0.3.9"}]}],"ecosystem_specific":{"affected_functions":null,"affects":{"functions":[],"arch":[],"os":["windows"]}},"database_specific":{"informational":"notice","source":"https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2026-0591.json","categories":["memory-exposure"],"cvss":null}}],"schema_version":"1.9.2"}