{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-87766",
        "assignerOrgId": "53f830b8-0a3f-465b-8143-3b8a9948e749",
        "state": "PUBLISHED",
        "assignerShortName": "redhat",
        "dateReserved": "2026-09-09T08:08:33.568Z",
        "datePublished": "2026-09-09T08:34:35.359Z",
        "dateUpdated": "2026-09-09T08:54:45.253Z"
    },
    "containers": {
        "cna": {
            "affected": [
                {
                    "collectionURL": "https://access.redhat.com/downloads/content/package-browser/",
                    "cpes": [
                        "cpe:/o:redhat:enterprise_linux:10"
                    ],
                    "defaultStatus": "unknown",
                    "packageName": "bubblewrap",
                    "product": "Red Hat Enterprise Linux 10",
                    "vendor": "Red Hat"
                },
                {
                    "collectionURL": "https://access.redhat.com/downloads/content/package-browser/",
                    "cpes": [
                        "cpe:/o:redhat:enterprise_linux:8"
                    ],
                    "defaultStatus": "unknown",
                    "packageName": "bubblewrap",
                    "product": "Red Hat Enterprise Linux 8",
                    "vendor": "Red Hat"
                },
                {
                    "collectionURL": "https://access.redhat.com/downloads/content/package-browser/",
                    "cpes": [
                        "cpe:/o:redhat:enterprise_linux:9"
                    ],
                    "defaultStatus": "unknown",
                    "packageName": "bubblewrap",
                    "product": "Red Hat Enterprise Linux 9",
                    "vendor": "Red Hat"
                },
                {
                    "collectionURL": "https://access.redhat.com/downloads/content/package-browser/",
                    "cpes": [
                        "cpe:/a:redhat:hummingbird:1"
                    ],
                    "defaultStatus": "unknown",
                    "packageName": "bubblewrap",
                    "product": "Red Hat Hardened Images",
                    "vendor": "Red Hat"
                }
            ],
            "credits": [
                {
                    "lang": "en",
                    "value": "Red Hat would like to thank geeknik for reporting this issue."
                }
            ],
            "datePublic": "2026-09-09T00:00:00.000Z",
            "descriptions": [
                {
                    "lang": "en",
                    "value": "A flaw was found in bubblewrap. During sandbox setup, creating files or directories under the new root can follow a parent symlink onto the host via /oldroot, writing attacker-chosen paths outside the sandbox as the launching user. This happens before the sandboxed process starts. This issue is GHSA-pxhw-h44j-8pfx. It is fixed in bubblewrap 0.12.0."
                }
            ],
            "metrics": [
                {
                    "other": {
                        "content": {
                            "namespace": "https://access.redhat.com/security/updates/classification/",
                            "value": "Important"
                        },
                        "type": "Red Hat severity rating"
                    }
                },
                {
                    "cvssV3_1": {
                        "attackComplexity": "LOW",
                        "attackVector": "LOCAL",
                        "availabilityImpact": "HIGH",
                        "baseScore": 8.8,
                        "baseSeverity": "HIGH",
                        "confidentialityImpact": "HIGH",
                        "integrityImpact": "HIGH",
                        "privilegesRequired": "LOW",
                        "scope": "CHANGED",
                        "userInteraction": "NONE",
                        "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H",
                        "version": "3.1"
                    },
                    "format": "CVSS"
                }
            ],
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "cweId": "CWE-59",
                            "description": "Improper Link Resolution Before File Access ('Link Following')",
                            "lang": "en",
                            "type": "CWE"
                        }
                    ]
                }
            ],
            "providerMetadata": {
                "orgId": "53f830b8-0a3f-465b-8143-3b8a9948e749",
                "shortName": "redhat",
                "dateUpdated": "2026-09-09T08:54:45.253Z"
            },
            "references": [
                {
                    "tags": [
                        "vdb-entry",
                        "x_refsource_REDHAT"
                    ],
                    "url": "https://access.redhat.com/security/cve/CVE-2026-87766"
                },
                {
                    "url": "https://bugs.debian.org/1145655"
                },
                {
                    "name": "RHBZ#2530542",
                    "tags": [
                        "issue-tracking",
                        "x_refsource_REDHAT"
                    ],
                    "url": "https://bugzilla.redhat.com/show_bug.cgi?id=2530542"
                },
                {
                    "url": "https://github.com/containers/bubblewrap/releases/tag/v0.12.0"
                },
                {
                    "url": "https://github.com/containers/bubblewrap/security/advisories/GHSA-pxhw-h44j-8pfx"
                },
                {
                    "url": "https://www.openwall.com/lists/oss-security/2026/08/27/7"
                }
            ],
            "timeline": [
                {
                    "lang": "en",
                    "time": "2026-09-09T08:00:27.775Z",
                    "value": "Reported to Red Hat."
                },
                {
                    "lang": "en",
                    "time": "2026-09-09T00:00:00.000Z",
                    "value": "Made public."
                }
            ],
            "title": "Bubblewrap: bubblewrap: symlink traversal via /oldroot allows writing files outside sandbox during setup",
            "workarounds": [
                {
                    "lang": "en",
                    "value": "Do not create files on untrusted content with unpatched bwrap. Do not install untrusted Flatpaks. No upstream fix for older setuid builds."
                }
            ],
            "x_generator": {
                "engine": "cvelib 1.8.0"
            },
            "x_redhatCweChain": "CWE-59: Improper Link Resolution Before File Access ('Link Following')"
        }
    }
}