{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.1",
    "cveMetadata": {
        "state": "PUBLISHED",
        "cveId": "CVE-2022-41939",
        "assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
        "assignerShortName": "GitHub_M",
        "dateUpdated": "2024-08-03T12:56:38.664Z",
        "dateReserved": "2022-09-30T00:00:00",
        "datePublished": "2022-11-19T00:00:00"
    },
    "containers": {
        "cna": {
            "title": "Credential exposure when running third-party builders in knative/func",
            "providerMetadata": {
                "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
                "shortName": "GitHub_M",
                "dateUpdated": "2022-11-19T00:00:00"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "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."
                }
            ],
            "affected": [
                {
                    "vendor": "knative",
                    "product": "func",
                    "versions": [
                        {
                            "version": "< 1.8.1",
                            "status": "affected"
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://github.com/knative/func/security/advisories/GHSA-5336-2g3f-9g3m"
                },
                {
                    "url": "https://github.com/knative/func/pull/1442"
                },
                {
                    "url": "https://github.com/knative/func/blob/5ca77d38744d3481cc0b795f607c5859b19588fc/buildpacks/builder.go#L37-L41"
                },
                {
                    "url": "https://github.com/knative/func/releases/tag/knative-v1.8.1"
                }
            ],
            "metrics": [
                {
                    "cvssV3_1": {
                        "version": "3.1",
                        "vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:N/A:N",
                        "attackVector": "NETWORK",
                        "attackComplexity": "HIGH",
                        "privilegesRequired": "NONE",
                        "userInteraction": "REQUIRED",
                        "scope": "CHANGED",
                        "confidentialityImpact": "HIGH",
                        "integrityImpact": "NONE",
                        "availabilityImpact": "NONE",
                        "baseScore": 6.1,
                        "baseSeverity": "MEDIUM"
                    }
                }
            ],
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "type": "CWE",
                            "lang": "en",
                            "description": "CWE-200: Exposure of Sensitive Information to an Unauthorized Actor",
                            "cweId": "CWE-200"
                        }
                    ]
                }
            ],
            "source": {
                "advisory": "GHSA-5336-2g3f-9g3m",
                "discovery": "UNKNOWN"
            }
        },
        "adp": [
            {
                "providerMetadata": {
                    "orgId": "af854a3a-2127-422b-91ae-364da2661108",
                    "shortName": "CVE",
                    "dateUpdated": "2024-08-03T12:56:38.664Z"
                },
                "title": "CVE Program Container",
                "references": [
                    {
                        "url": "https://github.com/knative/func/security/advisories/GHSA-5336-2g3f-9g3m",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://github.com/knative/func/pull/1442",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://github.com/knative/func/blob/5ca77d38744d3481cc0b795f607c5859b19588fc/buildpacks/builder.go#L37-L41",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://github.com/knative/func/releases/tag/knative-v1.8.1",
                        "tags": [
                            "x_transferred"
                        ]
                    }
                ]
            }
        ]
    }
}