{"schemaVersion":3,"id":"CVE-2020-5291","aliases":["ALPINE-CVE-2020-5291","UBUNTU-CVE-2020-5291","DEBIAN-CVE-2020-5291"],"status":"published","duplicateOf":null,"title":null,"description":"Bubblewrap (bwrap) before version 0.4.1, if installed in setuid mode and the kernel supports unprivileged user namespaces, then the `bwrap --userns2` option can be used to make the setuid process keep running as root while being traceable. This can in turn be used to gain root permissions. Note that this only affects the combination of bubblewrap in setuid mode (which is typically used when unprivileged user namespaces are not supported) and the support of unprivileged user namespaces. Known to be affected are: * Debian testing/unstable, if unprivileged user namespaces enabled (not default) * Debian buster-backports, if unprivileged user namespaces enabled (not default) * Arch if using `linux-hardened`, if unprivileged user namespaces enabled (not default) * Centos 7 flatpak COPR, if unprivileged user namespaces enabled (not default) This has been fixed in the 0.4.1 release, and all affected users should update.","dates":{"published":"2020-03-31T18:00:18.000Z","modified":"2024-08-04T08:22:09.099Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":8.5,"severity":"high","version":"2.0","versionLabel":"v2.0","source":"NVD","vector":"AV:N/AC:M/Au:S/C:C/I:C/A:C","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":7.2,"severity":"high","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Alpine","score":7.8,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":4.6,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":7.2,"severity":"high","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:N","exploitability":2.1,"impact":9.7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":7.8,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":4.6,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.8,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":8.5,"severity":"high","vector":"AV:N/AC:M/Au:S/C:C/I:C/A:C","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00904,"percentile":0.59072,"severity":"low","asOf":"2026-10-18T00:00:00.000Z","change":{"pp":-0.007000000000000062,"baselineDate":"2026-09-18T00:00:00.000Z","baselineScore":0.00911},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00911,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00911,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00911,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00911,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00911,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00911,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00911,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00904,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00904,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00904,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00904,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00904,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00904,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00904,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00904,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00904,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00904,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00904,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00904,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00904,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00904,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00904,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00904,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00904,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00904,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00904,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00904,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00904,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00904,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00904,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00904,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00904,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00904,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00904,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00904,"percentile":0.59072}],"last30":[{"date":"2026-09-18T00:00:00.000Z","score":0.00911,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00911,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00911,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00904,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00904,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00904,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00904,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00904,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00904,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00904,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00904,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00904,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00904,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00904,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00904,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00904,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00904,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00904,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00904,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00904,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00904,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00904,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00904,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00904,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00904,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00904,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00904,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00904,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00904,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00904,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00904,"percentile":0.59072}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-648","name":"Incorrect Use of Privileged APIs","description":"The product does not conform to the API requirements for a function call that requires extra privileges. This could allow attackers to gain privileges by causing the function to be called incorrectly.","type":"weakness","status":"Incomplete","abstraction":"Base","likelihoodOfExploit":"Low","url":"https://cwe.mitre.org/data/definitions/648.html"},{"id":"CWE-269","name":"Improper Privilege Management","description":"The product does not properly assign, modify, track, or check privileges for an actor, creating an unintended sphere of control for that actor.","type":"weakness","status":"Draft","abstraction":"Class","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/269.html"}],"affected":[{"vendor":"alpine","product":"bubblewrap","name":"bubblewrap","label":"bubblewrap","ecosystem":"Alpine Linux","cpePart":null,"purl":"pkg:apk/alpine/bubblewrap","purlType":"apk","versions":[{"text":"< 0.4.1-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.4.1-r0","eol":null,"hubHref":null},{"vendor":"archlinux","product":"arch_linux","name":"arch linux","label":"arch_linux","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"na","noFixRecorded":false,"fixedIn":null}],"versionsText":"na","eol":null,"hubHref":"/vendor/archlinux/arch_linux"},{"vendor":"centos","product":"centos","name":"centos","label":"centos","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"7.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"7.0","eol":{"isEol":true,"eolDate":"2024-06-30T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"7","label":"7","eolFrom":"2024-06-30T00:00:00.000Z","isLts":false,"isMaintained":false,"latestVersion":"7 (2009)"},"product":{"name":"centos","label":"CentOS","category":"os"}},"hubHref":"/vendor/centos/centos"},{"vendor":"containers","product":"bubblewrap","name":"bubblewrap","label":"bubblewrap","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 0.4.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.4.1","eol":null,"hubHref":"/vendor/containers/bubblewrap"},{"vendor":"debian","product":"bubblewrap","name":"bubblewrap","label":"bubblewrap","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/bubblewrap","purlType":"deb","versions":[{"text":"< 0.4.1-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.4.1-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"bubblewrap","name":"bubblewrap","label":"bubblewrap","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/bubblewrap","purlType":"deb","versions":[{"text":"< 0.4.0-1ubuntu4","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.4.0-1ubuntu4","eol":null,"hubHref":null},{"vendor":"debian","product":"debian_linux","name":"debian linux","label":"debian_linux","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"10.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"10.0","eol":{"isEol":true,"eolDate":"2024-06-30T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"10","label":"10 (Buster)","eolFrom":"2024-06-30T00:00:00.000Z","isLts":false,"isMaintained":true,"latestVersion":"10.13"},"product":{"name":"debian","label":"Debian","category":"os"}},"hubHref":"/vendor/debian/debian_linux"},{"vendor":"projectatomic","product":"bubblewrap","name":"bubblewrap","label":"bubblewrap","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 0.4.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.4.1","eol":null,"hubHref":"/vendor/projectatomic/bubblewrap"}],"affectedCount":8,"eol":{"hasEol":true,"count":2},"references":[{"url":"https://github.com/containers/bubblewrap/security/advisories/GHSA-j2qp-rvxj-43vj","label":"github.com/containers/bubblewrap/security/advisories/GHSA-j2qp-rvxj-43vj","hostname":"github.com","tags":["X Refsource CONFIRM","REPORT","Mitigation","Third Party Advisory"]},{"url":"https://github.com/containers/bubblewrap/commit/1f7e2ad948c051054b683461885a0215f1806240","label":"github.com/containers/bubblewrap/commit/1f7e2ad948c051054b683461885a0215f1806240","hostname":"github.com","tags":["X Refsource MISC","Patch","Third Party Advisory"]},{"url":"https://security.alpinelinux.org/vuln/CVE-2020-5291","label":"security.alpinelinux.org/vuln/CVE-2020-5291","hostname":"security.alpinelinux.org","tags":["Advisory"]},{"url":"https://ubuntu.com/security/CVE-2020-5291","label":"ubuntu.com/security/CVE-2020-5291","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2020-5291","label":"www.cve.org/CVERecord?id=CVE-2020-5291","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2020-5291","label":"security-tracker.debian.org/tracker/CVE-2020-5291","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-5291","label":"nvd.nist.gov/vuln/detail/CVE-2020-5291","hostname":"nvd.nist.gov","tags":["Oval","Advisory"]}],"lineage":{"upstream":[],"downstream":["OPENSUSE-SU-2024:10663-1"],"duplicates":[],"related":["OPENSUSE-SU-2024:10663-1"]},"timeline":[{"kind":"published","date":"2020-03-31T18:00:18.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-04T08:22:09.099Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":34,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T12:51:57.912Z","stale":false,"partial":false}}