{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "1d22cb21cfb111ef9c31ae8c640262709ccdb384"
            }
          ],
          "repo": "https://github.com/knative/func",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-5336-2g3f-9g3m"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-200"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/41xxx/CVE-2022-41939.json"
  },
  "details": "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.",
  "id": "CVE-2022-41939",
  "modified": "2026-04-01T23:08:05.774277360Z",
  "published": "2022-11-19T00:00:00Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/knative/func/blob/5ca77d38744d3481cc0b795f607c5859b19588fc/buildpacks/builder.go#L37-L41"
    },
    {
      "type": "WEB",
      "url": "https://github.com/knative/func/releases/tag/knative-v1.8.1"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/41xxx/CVE-2022-41939.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/knative/func/security/advisories/GHSA-5336-2g3f-9g3m"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2022-41939"
    },
    {
      "type": "FIX",
      "url": "https://github.com/knative/func/pull/1442"
    }
  ],
  "schema_version": "1.7.3",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:N/A:N",
      "type": "CVSS_V3"
    }
  ],
  "summary": "Credential exposure when running third-party builders in knative/func"
}