{
    "CVE_data_meta": {
        "ASSIGNER": "security-advisories@github.com",
        "ID": "CVE-2022-41939",
        "STATE": "PUBLIC",
        "TITLE": "Credential exposure when running third-party builders in knative/func"
    },
    "affects": {
        "vendor": {
            "vendor_data": [
                {
                    "product": {
                        "product_data": [
                            {
                                "product_name": "func",
                                "version": {
                                    "version_data": [
                                        {
                                            "version_value": "< 1.8.1"
                                        }
                                    ]
                                }
                            }
                        ]
                    },
                    "vendor_name": "knative"
                }
            ]
        }
    },
    "data_format": "MITRE",
    "data_type": "CVE",
    "data_version": "4.0",
    "description": {
        "description_data": [
            {
                "lang": "eng",
                "value": "knative.dev/func is is a client library and CLI enabling the development and deployment of Kubernetes functions. Developers using a malicious or compromised third-party buildpack could expose their registry credentials or local docker socket to a malicious `lifecycle` container. This issues has been patched in PR #1442, and is part of release 1.8.1. This issue only affects users who are using function buildpacks from third-parties; pinning the builder image to a specific content-hash with a valid `lifecycle` image will also mitigate the attack."
            }
        ]
    },
    "impact": {
        "cvss": {
            "attackComplexity": "HIGH",
            "attackVector": "NETWORK",
            "availabilityImpact": "NONE",
            "baseScore": 6.1,
            "baseSeverity": "MEDIUM",
            "confidentialityImpact": "HIGH",
            "integrityImpact": "NONE",
            "privilegesRequired": "NONE",
            "scope": "CHANGED",
            "userInteraction": "REQUIRED",
            "vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:N/A:N",
            "version": "3.1"
        }
    },
    "problemtype": {
        "problemtype_data": [
            {
                "description": [
                    {
                        "lang": "eng",
                        "value": "CWE-200: Exposure of Sensitive Information to an Unauthorized Actor"
                    }
                ]
            }
        ]
    },
    "references": {
        "reference_data": [
            {
                "name": "https://github.com/knative/func/security/advisories/GHSA-5336-2g3f-9g3m",
                "refsource": "CONFIRM",
                "url": "https://github.com/knative/func/security/advisories/GHSA-5336-2g3f-9g3m"
            },
            {
                "name": "https://github.com/knative/func/pull/1442",
                "refsource": "MISC",
                "url": "https://github.com/knative/func/pull/1442"
            },
            {
                "name": "https://github.com/knative/func/blob/5ca77d38744d3481cc0b795f607c5859b19588fc/buildpacks/builder.go#L37-L41",
                "refsource": "MISC",
                "url": "https://github.com/knative/func/blob/5ca77d38744d3481cc0b795f607c5859b19588fc/buildpacks/builder.go#L37-L41"
            },
            {
                "name": "https://github.com/knative/func/releases/tag/knative-v1.8.1",
                "refsource": "MISC",
                "url": "https://github.com/knative/func/releases/tag/knative-v1.8.1"
            }
        ]
    },
    "source": {
        "advisory": "GHSA-5336-2g3f-9g3m",
        "discovery": "UNKNOWN"
    }
}