{"id":"CVE-2016-3169","aliases":["DSA-3498-1","EUVD-2022-4869","GHSA-q3p9-8728-wq7x","UBUNTU-CVE-2016-3169"],"status":"published","title":"Drupal saving user accounts can sometimes grant the user all roles","description":"The User module in Drupal 6.x before 6.38 and 7.x before 7.43 allows remote attackers to gain privileges by leveraging contributed or custom code that calls the user_save function with an explicit category and loads all roles into the array.","severity":{"version":"3.0","score":8.1,"vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.02221,"percentile":0.82801,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-264","CWE-269"],"published":"2016-02-28T00:00:00Z","modified":"2026-10-24T10:30:21Z","fixes":[{"ecosystem":"Packagist","package":"drupal/core","fixed_in":["6.38","7.43"],"sources":["ghsa","osv"]},{"ecosystem":"Packagist","package":"drupal/drupal","fixed_in":["7.43","6.38"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"Packagist","package":"drupal/core","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.0"},{"fixed":"6.38"}]}]},{"source":"ghsa","ecosystem":"Packagist","package":"drupal/core","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"7.0"},{"fixed":"7.43"}]}]},{"source":"ghsa","ecosystem":"Packagist","package":"drupal/drupal","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"7.0"},{"fixed":"7.43"}]}]},{"source":"ghsa","ecosystem":"Packagist","package":"drupal/drupal","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.0"},{"fixed":"6.38"}]}]},{"source":"osv","ecosystem":"Debian:7","package":"drupal7","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"7.14-2+deb7u12"}]}],"versions":["7.14-2","7.14-2+deb7u1","7.14-2+deb7u10","7.14-2+deb7u10~bpo60+1","7.14-2+deb7u11","7.14-2+deb7u11~bpo60+1","7.14-2+deb7u1~bpo60+1","7.14-2+deb7u2","7.14-2+deb7u2~bpo60+1","7.14-2+deb7u3","7.14-2+deb7u4","7.14-2+deb7u4~bpo60+1","7.14-2+deb7u5","7.14-2+deb7u6","7.14-2+deb7u6~bpo60+1","7.14-2+deb7u7","7.14-2+deb7u7~bpo60+1","7.14-2+deb7u8","7.14-2+deb7u9","7.14-2+deb7u9~bpo60+1"],"bundled":6},{"source":"osv","ecosystem":"Debian:8","package":"drupal7","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"7.32-1+deb8u6"}]}],"versions":["7.32-1+deb8u3","7.32-1+deb8u4","7.32-1+deb8u4~bpo70+1","7.32-1+deb8u5","7.32-1+deb8u5~bpo70+1"],"bundled":6},{"source":"osv","ecosystem":"Packagist","package":"drupal/core","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.0"},{"fixed":"6.38"}]}]},{"source":"osv","ecosystem":"Packagist","package":"drupal/core","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"7.0"},{"fixed":"7.43"}]}]},{"source":"osv","ecosystem":"Packagist","package":"drupal/drupal","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"7.0"},{"fixed":"7.43"}]}]},{"source":"osv","ecosystem":"Packagist","package":"drupal/drupal","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.0"},{"fixed":"6.38"}]}]},{"source":"osv","ecosystem":"Ubuntu:Pro:14.04:LTS","package":"drupal7","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["7.23-1","7.24-1","7.24-2","7.26-1","7.26-1ubuntu0.1","7.26-1ubuntu0.1+esm1","7.26-1ubuntu0.1+esm2","7.26-1ubuntu0.1+esm3"]}],"products":[{"vendor":"debian","product":"debian_linux"},{"vendor":"drupal","product":"drupal"}],"references":[{"url":"http://www.openwall.com/lists/oss-security/2016/02/24/19","tags":["mailing-list","x_refsource_MLIST","x_transferred","web","report"]},{"url":"http://www.openwall.com/lists/oss-security/2016/03/15/10","tags":["mailing-list","x_refsource_MLIST","x_transferred","web"]},{"url":"http://www.debian.org/security/2016/dsa-3498","tags":["vendor-advisory","x_refsource_DEBIAN","x_transferred","advisory","web"]},{"url":"https://www.drupal.org/SA-CORE-2016-001","tags":["x_refsource_CONFIRM","x_transferred","Patch","Vendor Advisory","fix","web","report"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2016-3169","tags":["advisory"]},{"url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/drupal/core/CVE-2016-3169.yaml","tags":["web"]},{"url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/drupal/drupal/CVE-2016-3169.yaml","tags":["web"]},{"url":"https://github.com/advisories/GHSA-q3p9-8728-wq7x"},{"url":"https://github.com/drupal/core","tags":["package"]},{"url":"https://ubuntu.com/security/CVE-2016-3169","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2016-3169","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2016-3169","description":"The User module in Drupal 6.x before 6.38 and 7.x before 7.43 allows remote attackers to gain privileges by leveraging contributed or custom code that calls the user_save function with an explicit category and loads all roles into the array.","status":"published","published":"2016-04-12T15:00:00Z","modified":"2024-08-05T23:47:57.511Z","updated_at":"2026-11-02T14:33:33.758954Z"}],"euvd":[{"id":"EUVD-2022-4869","description":"The User module in Drupal 6.x before 6.38 and 7.x before 7.43 allows remote attackers to gain privileges by leveraging contributed or custom code that calls the user_save function with an explicit category and loads all roles into the array.","status":"published","published":"2016-04-12T15:00:00Z","modified":"2024-08-05T23:47:57Z","updated_at":"2026-11-03T02:22:51.132305Z"}],"ghsa":[{"id":"GHSA-q3p9-8728-wq7x","title":"Drupal saving user accounts can sometimes grant the user all roles","description":"The User module in Drupal 6.x before 6.38 and 7.x before 7.43 allows remote attackers to gain privileges by leveraging contributed or custom code that calls the user_save function with an explicit category and loads all roles into the array.","status":"published","published":"2022-05-17T03:57:19Z","modified":"2024-04-23T17:19:47Z","cvss":[{"version":"3.0","score":8.1,"vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-269"],"updated_at":"2026-11-02T14:37:44.335614Z"}],"nvd":[{"id":"CVE-2016-3169","description":"The User module in Drupal 6.x before 6.38 and 7.x before 7.43 allows remote attackers to gain privileges by leveraging contributed or custom code that calls the user_save function with an explicit category and loads all roles into the array.","status":"published","published":"2016-04-12T15:59:06.933Z","modified":"2026-06-17T00:45:13.73Z","cvss":[{"version":"3.0","score":8.1,"vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"primary"},{"version":"2.0","score":6.8,"vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-264"],"updated_at":"2026-11-02T14:03:23.795791Z"}],"osv":[{"id":"CVE-2016-3169","description":"The User module in Drupal 6.x before 6.38 and 7.x before 7.43 allows remote attackers to gain privileges by leveraging contributed or custom code that calls the user_save function with an explicit category and loads all roles into the array.","status":"published","published":"2016-04-12T15:59:06.933Z","modified":"2026-10-24T10:30:21.706365435Z","cvss":[{"version":"3.0","score":8.1,"vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:44:02.454775Z"},{"id":"GHSA-q3p9-8728-wq7x","title":"Drupal saving user accounts can sometimes grant the user all roles","description":"The User module in Drupal 6.x before 6.38 and 7.x before 7.43 allows remote attackers to gain privileges by leveraging contributed or custom code that calls the user_save function with an explicit category and loads all roles into the array.","status":"published","published":"2022-05-17T03:57:19Z","modified":"2024-04-23T17:43:52.508633Z","cvss":[{"version":"3.0","score":8.1,"vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-269"],"updated_at":"2026-11-02T15:46:54.055966Z"},{"id":"UBUNTU-CVE-2016-3169","description":"The User module in Drupal 6.x before 6.38 and 7.x before 7.43 allows remote attackers to gain privileges by leveraging contributed or custom code that calls the user_save function with an explicit category and loads all roles into the array.","status":"published","published":"2016-04-12T15:59:00Z","modified":"2025-09-08T16:43:41Z","cvss":[{"version":"3.0","score":8.1,"vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:54:11.872222Z"},{"id":"DSA-3498-1","title":"drupal7 - security update","status":"published","published":"2016-02-28T00:00:00Z","modified":"2026-03-09T01:19:21.783344Z","updated_at":"2026-11-02T15:46:16.199525Z"}]}}
