{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-145143",
        "assignerOrgId": "82cea9a6-e9e3-46fe-bdb0-3673de380178",
        "state": "PUBLISHED",
        "assignerShortName": "chainguard",
        "dateReserved": "2026-12-04T15:21:29.177Z",
        "datePublished": "2026-12-04T16:48:48.422Z",
        "dateUpdated": "2026-12-04T16:48:48.422Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "82cea9a6-e9e3-46fe-bdb0-3673de380178",
                "shortName": "chainguard",
                "dateUpdated": "2026-12-04T16:48:48.422Z"
            },
            "title": "melange bubblewrap runner allows build layers to expose host files",
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "lang": "en",
                            "cweId": "CWE-59",
                            "description": "CWE-59 Improper link resolution before file access ('link following')",
                            "type": "CWE"
                        }
                    ]
                }
            ],
            "impacts": [
                {
                    "descriptions": [
                        {
                            "lang": "en",
                            "value": "Unauthorized read or modification of build host files from inside the bubblewrap sandbox"
                        }
                    ]
                }
            ],
            "affected": [
                {
                    "vendor": "Chainguard",
                    "product": "melange",
                    "collectionURL": "https://pkg.go.dev",
                    "packageName": "chainguard.dev/melange",
                    "repo": "https://github.com/chainguard-dev/melange",
                    "modules": [
                        "bubblewrap runner and LoadImage"
                    ],
                    "versions": [
                        {
                            "status": "affected",
                            "version": "0",
                            "lessThan": "0.66.1",
                            "versionType": "semver"
                        }
                    ],
                    "defaultStatus": "unaffected"
                }
            ],
            "descriptions": [
                {
                    "lang": "en",
                    "value": "In melange versions before 0.66.1, the bubblewrap runner can resolve links outside the guest root when extracting build environment layers. This can let build steps read or modify host files from inside the sandbox. In the runner scenario, the build must consume a crafted package signed by a key it trusts. The target file must be on the same filesystem as the temporary directory and linkable by the user running melange. Library callers that pass untrusted layers to LoadImage are also affected. The Docker and QEMU runners are unaffected.",
                    "supportingMedia": [
                        {
                            "type": "text/html",
                            "base64": false,
                            "value": "In melange versions before 0.66.1, the bubblewrap runner can resolve links outside the guest root when extracting build environment layers. This can let build steps read or modify host files from inside the sandbox. In the runner scenario, the build must consume a crafted package signed by a key it trusts. The target file must be on the same filesystem as the temporary directory and linkable by the user running melange. Library callers that pass untrusted layers to <code>LoadImage</code> are also affected. The Docker and QEMU runners are unaffected."
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://github.com/chainguard-dev/melange/security/advisories/GHSA-mwc9-vc42-cgjj"
                }
            ],
            "metrics": [
                {
                    "format": "CVSS",
                    "scenarios": [
                        {
                            "lang": "en",
                            "value": "GENERAL"
                        }
                    ],
                    "cvssV4_0": {
                        "attackVector": "LOCAL",
                        "attackComplexity": "LOW",
                        "attackRequirements": "PRESENT",
                        "privilegesRequired": "NONE",
                        "userInteraction": "PASSIVE",
                        "vulnConfidentialityImpact": "NONE",
                        "subConfidentialityImpact": "LOW",
                        "vulnIntegrityImpact": "NONE",
                        "subIntegrityImpact": "LOW",
                        "vulnAvailabilityImpact": "NONE",
                        "subAvailabilityImpact": "NONE",
                        "exploitMaturity": "NOT_DEFINED",
                        "Safety": "NOT_DEFINED",
                        "Automatable": "NOT_DEFINED",
                        "Recovery": "NOT_DEFINED",
                        "valueDensity": "NOT_DEFINED",
                        "vulnerabilityResponseEffort": "NOT_DEFINED",
                        "providerUrgency": "NOT_DEFINED",
                        "version": "4.0",
                        "baseSeverity": "LOW",
                        "baseScore": 2,
                        "vectorString": "CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N"
                    }
                }
            ],
            "credits": [
                {
                    "lang": "en",
                    "value": "fthomasella",
                    "type": "reporter"
                },
                {
                    "lang": "en",
                    "value": "primeroz",
                    "type": "remediation developer"
                }
            ],
            "source": {
                "discovery": "UNKNOWN"
            },
            "x_generator": {
                "engine": "Vulnogram 1.0.5"
            }
        }
    }
}