All the vulnerabilites related to moby - buildkit
cve-2024-23652
Vulnerability from cvelistv5
Published
2024-01-31 21:57
Modified
2024-08-01 23:06
Severity ?
EPSS score ?
Summary
BuildKit possible host system access from mount stub cleaner
References
▼ | URL | Tags |
---|---|---|
https://github.com/moby/buildkit/security/advisories/GHSA-4v98-7qmw-rqr8 | x_refsource_CONFIRM | |
https://github.com/moby/buildkit/pull/4603 | x_refsource_MISC | |
https://github.com/moby/buildkit/releases/tag/v0.12.5 | x_refsource_MISC |
{ "containers": { "adp": [ { "providerMetadata": { "dateUpdated": "2024-08-01T23:06:25.358Z", "orgId": "af854a3a-2127-422b-91ae-364da2661108", "shortName": "CVE" }, "references": [ { "name": "https://github.com/moby/buildkit/security/advisories/GHSA-4v98-7qmw-rqr8", "tags": [ "x_refsource_CONFIRM", "x_transferred" ], "url": "https://github.com/moby/buildkit/security/advisories/GHSA-4v98-7qmw-rqr8" }, { "name": "https://github.com/moby/buildkit/pull/4603", "tags": [ "x_refsource_MISC", "x_transferred" ], "url": "https://github.com/moby/buildkit/pull/4603" }, { "name": "https://github.com/moby/buildkit/releases/tag/v0.12.5", "tags": [ "x_refsource_MISC", "x_transferred" ], "url": "https://github.com/moby/buildkit/releases/tag/v0.12.5" } ], "title": "CVE Program Container" } ], "cna": { "affected": [ { "product": "buildkit", "vendor": "moby", "versions": [ { "status": "affected", "version": "\u003c 0.12.5" } ] } ], "descriptions": [ { "lang": "en", "value": "BuildKit is a toolkit for converting source code to build artifacts in an efficient, expressive and repeatable manner. A malicious BuildKit frontend or Dockerfile using RUN --mount could trick the feature that removes empty files created for the mountpoints into removing a file outside the container, from the host system. The issue has been fixed in v0.12.5. Workarounds include avoiding using BuildKit frontends from an untrusted source or building an untrusted Dockerfile containing RUN --mount feature." } ], "metrics": [ { "cvssV3_1": { "attackComplexity": "LOW", "attackVector": "NETWORK", "availabilityImpact": "HIGH", "baseScore": 10, "baseSeverity": "CRITICAL", "confidentialityImpact": "NONE", "integrityImpact": "HIGH", "privilegesRequired": "NONE", "scope": "CHANGED", "userInteraction": "NONE", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:H", "version": "3.1" } } ], "problemTypes": [ { "descriptions": [ { "cweId": "CWE-22", "description": "CWE-22: Improper Limitation of a Pathname to a Restricted Directory (\u0027Path Traversal\u0027)", "lang": "en", "type": "CWE" } ] } ], "providerMetadata": { "dateUpdated": "2024-01-31T21:57:42.774Z", "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa", "shortName": "GitHub_M" }, "references": [ { "name": "https://github.com/moby/buildkit/security/advisories/GHSA-4v98-7qmw-rqr8", "tags": [ "x_refsource_CONFIRM" ], "url": "https://github.com/moby/buildkit/security/advisories/GHSA-4v98-7qmw-rqr8" }, { "name": "https://github.com/moby/buildkit/pull/4603", "tags": [ "x_refsource_MISC" ], "url": "https://github.com/moby/buildkit/pull/4603" }, { "name": "https://github.com/moby/buildkit/releases/tag/v0.12.5", "tags": [ "x_refsource_MISC" ], "url": "https://github.com/moby/buildkit/releases/tag/v0.12.5" } ], "source": { "advisory": "GHSA-4v98-7qmw-rqr8", "discovery": "UNKNOWN" }, "title": "BuildKit possible host system access from mount stub cleaner" } }, "cveMetadata": { "assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa", "assignerShortName": "GitHub_M", "cveId": "CVE-2024-23652", "datePublished": "2024-01-31T21:57:42.774Z", "dateReserved": "2024-01-19T00:18:53.234Z", "dateUpdated": "2024-08-01T23:06:25.358Z", "state": "PUBLISHED" }, "dataType": "CVE_RECORD", "dataVersion": "5.1" }
cve-2023-26054
Vulnerability from cvelistv5
Published
2023-03-06 18:05
Modified
2024-08-02 11:39
Severity ?
EPSS score ?
Summary
Credentials inlined to Git URLs could end up in provenance attestation in BuildKit
References
{ "containers": { "adp": [ { "providerMetadata": { "dateUpdated": "2024-08-02T11:39:06.521Z", "orgId": "af854a3a-2127-422b-91ae-364da2661108", "shortName": "CVE" }, "references": [ { "name": "https://github.com/moby/buildkit/security/advisories/GHSA-gc89-7gcr-jxqc", "tags": [ "x_refsource_CONFIRM", "x_transferred" ], "url": "https://github.com/moby/buildkit/security/advisories/GHSA-gc89-7gcr-jxqc" }, { "name": "https://github.com/moby/buildkit/commit/75123c696506bdbca1ed69906479e200f1b62604", "tags": [ "x_refsource_MISC", "x_transferred" ], "url": "https://github.com/moby/buildkit/commit/75123c696506bdbca1ed69906479e200f1b62604" }, { "tags": [ "x_transferred" ], "url": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZTE4ITXXPIWZEQ4HYQCB6N6GZIMWXDAI/" }, { "tags": [ "x_transferred" ], "url": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/LYZOKMMVX4SIEHPJW3SJUQGMO5YZCPHC/" }, { "tags": [ "x_transferred" ], "url": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/XNF4OLYZRQE75EB5TW5N42FSXHBXGWFE/" } ], "title": "CVE Program Container" } ], "cna": { "affected": [ { "product": "buildkit", "vendor": "moby", "versions": [ { "status": "affected", "version": "\u003e= 0.10.0, \u003c 0.11.4" } ] } ], "descriptions": [ { "lang": "en", "value": "BuildKit is a toolkit for converting source code to build artifacts in an efficient, expressive and repeatable manner. In affected versions when the user sends a build request that contains a Git URL that contains credentials and the build creates a provenance attestation describing that build, these credentials could be visible from the provenance attestation. Git URL can be passed in two ways: 1) Invoking build directly from a URL with credentials. 2) If the client sends additional version control system (VCS) info hint parameters on builds from a local source. Usually, that would mean reading the origin URL from `.git/config` file. When a build is performed under specific conditions where credentials were passed to BuildKit they may be visible to everyone who has access to provenance attestation. Provenance attestations and VCS info hints were added in version v0.11.0. Previous versions are not vulnerable. In v0.10, when building directly from Git URL, the same URL could be visible in `BuildInfo` structure that is a predecessor of Provenance attestations. Previous versions are not vulnerable. This bug has been fixed in v0.11.4. Users are advised to upgrade. Users unable to upgrade may disable VCS info hints by setting `BUILDX_GIT_INFO=0`. `buildctl` does not set VCS hints based on `.git` directory, and values would need to be passed manually with `--opt`." } ], "metrics": [ { "cvssV3_1": { "attackComplexity": "LOW", "attackVector": "NETWORK", "availabilityImpact": "NONE", "baseScore": 6.5, "baseSeverity": "MEDIUM", "confidentialityImpact": "HIGH", "integrityImpact": "NONE", "privilegesRequired": "NONE", "scope": "UNCHANGED", "userInteraction": "REQUIRED", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N", "version": "3.1" } } ], "problemTypes": [ { "descriptions": [ { "cweId": "CWE-200", "description": "CWE-200: Exposure of Sensitive Information to an Unauthorized Actor", "lang": "en", "type": "CWE" } ] } ], "providerMetadata": { "dateUpdated": "2023-03-06T18:05:07.602Z", "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa", "shortName": "GitHub_M" }, "references": [ { "name": "https://github.com/moby/buildkit/security/advisories/GHSA-gc89-7gcr-jxqc", "tags": [ "x_refsource_CONFIRM" ], "url": "https://github.com/moby/buildkit/security/advisories/GHSA-gc89-7gcr-jxqc" }, { "name": "https://github.com/moby/buildkit/commit/75123c696506bdbca1ed69906479e200f1b62604", "tags": [ "x_refsource_MISC" ], "url": "https://github.com/moby/buildkit/commit/75123c696506bdbca1ed69906479e200f1b62604" }, { "url": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZTE4ITXXPIWZEQ4HYQCB6N6GZIMWXDAI/" }, { "url": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/LYZOKMMVX4SIEHPJW3SJUQGMO5YZCPHC/" }, { "url": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/XNF4OLYZRQE75EB5TW5N42FSXHBXGWFE/" } ], "source": { "advisory": "GHSA-gc89-7gcr-jxqc", "discovery": "UNKNOWN" }, "title": "Credentials inlined to Git URLs could end up in provenance attestation in BuildKit" } }, "cveMetadata": { "assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa", "assignerShortName": "GitHub_M", "cveId": "CVE-2023-26054", "datePublished": "2023-03-06T18:05:07.602Z", "dateReserved": "2023-02-17T22:44:03.151Z", "dateUpdated": "2024-08-02T11:39:06.521Z", "state": "PUBLISHED" }, "dataType": "CVE_RECORD", "dataVersion": "5.1" }
cve-2024-23650
Vulnerability from cvelistv5
Published
2024-01-31 21:42
Modified
2024-08-01 23:06
Severity ?
EPSS score ?
Summary
BuildKit possible panic when incorrect parameters sent from frontend
References
▼ | URL | Tags |
---|---|---|
https://github.com/moby/buildkit/security/advisories/GHSA-9p26-698r-w4hx | x_refsource_CONFIRM | |
https://github.com/moby/buildkit/pull/4601 | x_refsource_MISC | |
https://github.com/moby/buildkit/releases/tag/v0.12.5 | x_refsource_MISC |
{ "containers": { "adp": [ { "providerMetadata": { "dateUpdated": "2024-08-01T23:06:25.309Z", "orgId": "af854a3a-2127-422b-91ae-364da2661108", "shortName": "CVE" }, "references": [ { "name": "https://github.com/moby/buildkit/security/advisories/GHSA-9p26-698r-w4hx", "tags": [ "x_refsource_CONFIRM", "x_transferred" ], "url": "https://github.com/moby/buildkit/security/advisories/GHSA-9p26-698r-w4hx" }, { "name": "https://github.com/moby/buildkit/pull/4601", "tags": [ "x_refsource_MISC", "x_transferred" ], "url": "https://github.com/moby/buildkit/pull/4601" }, { "name": "https://github.com/moby/buildkit/releases/tag/v0.12.5", "tags": [ "x_refsource_MISC", "x_transferred" ], "url": "https://github.com/moby/buildkit/releases/tag/v0.12.5" } ], "title": "CVE Program Container" } ], "cna": { "affected": [ { "product": "buildkit", "vendor": "moby", "versions": [ { "status": "affected", "version": "\u003c 0.12.5" } ] } ], "descriptions": [ { "lang": "en", "value": "BuildKit is a toolkit for converting source code to build artifacts in an efficient, expressive and repeatable manner. A malicious BuildKit client or frontend could craft a request that could lead to BuildKit daemon crashing with a panic. The issue has been fixed in v0.12.5. As a workaround, avoid using BuildKit frontends from untrusted sources.\n" } ], "metrics": [ { "cvssV3_1": { "attackComplexity": "LOW", "attackVector": "NETWORK", "availabilityImpact": "LOW", "baseScore": 5.3, "baseSeverity": "MEDIUM", "confidentialityImpact": "NONE", "integrityImpact": "NONE", "privilegesRequired": "NONE", "scope": "UNCHANGED", "userInteraction": "NONE", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L", "version": "3.1" } } ], "problemTypes": [ { "descriptions": [ { "cweId": "CWE-754", "description": "CWE-754: Improper Check for Unusual or Exceptional Conditions", "lang": "en", "type": "CWE" } ] } ], "providerMetadata": { "dateUpdated": "2024-01-31T21:42:13.382Z", "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa", "shortName": "GitHub_M" }, "references": [ { "name": "https://github.com/moby/buildkit/security/advisories/GHSA-9p26-698r-w4hx", "tags": [ "x_refsource_CONFIRM" ], "url": "https://github.com/moby/buildkit/security/advisories/GHSA-9p26-698r-w4hx" }, { "name": "https://github.com/moby/buildkit/pull/4601", "tags": [ "x_refsource_MISC" ], "url": "https://github.com/moby/buildkit/pull/4601" }, { "name": "https://github.com/moby/buildkit/releases/tag/v0.12.5", "tags": [ "x_refsource_MISC" ], "url": "https://github.com/moby/buildkit/releases/tag/v0.12.5" } ], "source": { "advisory": "GHSA-9p26-698r-w4hx", "discovery": "UNKNOWN" }, "title": "BuildKit possible panic when incorrect parameters sent from frontend" } }, "cveMetadata": { "assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa", "assignerShortName": "GitHub_M", "cveId": "CVE-2024-23650", "datePublished": "2024-01-31T21:42:13.382Z", "dateReserved": "2024-01-19T00:18:53.234Z", "dateUpdated": "2024-08-01T23:06:25.309Z", "state": "PUBLISHED" }, "dataType": "CVE_RECORD", "dataVersion": "5.1" }
cve-2024-23653
Vulnerability from cvelistv5
Published
2024-01-31 22:03
Modified
2024-08-23 18:16
Severity ?
EPSS score ?
Summary
BuildKit interactive containers API does not validate entitlements check
References
▼ | URL | Tags |
---|---|---|
https://github.com/moby/buildkit/security/advisories/GHSA-wr6v-9f75-vh2g | x_refsource_CONFIRM | |
https://github.com/moby/buildkit/pull/4602 | x_refsource_MISC | |
https://github.com/moby/buildkit/releases/tag/v0.12.5 | x_refsource_MISC |
{ "containers": { "adp": [ { "providerMetadata": { "dateUpdated": "2024-08-01T23:06:25.351Z", "orgId": "af854a3a-2127-422b-91ae-364da2661108", "shortName": "CVE" }, "references": [ { "name": "https://github.com/moby/buildkit/security/advisories/GHSA-wr6v-9f75-vh2g", "tags": [ "x_refsource_CONFIRM", "x_transferred" ], "url": "https://github.com/moby/buildkit/security/advisories/GHSA-wr6v-9f75-vh2g" }, { "name": "https://github.com/moby/buildkit/pull/4602", "tags": [ "x_refsource_MISC", "x_transferred" ], "url": "https://github.com/moby/buildkit/pull/4602" }, { "name": "https://github.com/moby/buildkit/releases/tag/v0.12.5", "tags": [ "x_refsource_MISC", "x_transferred" ], "url": "https://github.com/moby/buildkit/releases/tag/v0.12.5" } ], "title": "CVE Program Container" }, { "affected": [ { "cpes": [ "cpe:2.3:a:mobyproject:buildkit:*:*:*:*:*:*:*:*" ], "defaultStatus": "unknown", "product": "buildkit", "vendor": "mobyproject", "versions": [ { "lessThan": "0.12.5", "status": "affected", "version": "0", "versionType": "custom" } ] } ], "metrics": [ { "other": { "content": { "id": "CVE-2024-23653", "options": [ { "Exploitation": "none" }, { "Automatable": "yes" }, { "Technical Impact": "total" } ], "role": "CISA Coordinator", "timestamp": "2024-08-23T18:03:21.440665Z", "version": "2.0.3" }, "type": "ssvc" } } ], "providerMetadata": { "dateUpdated": "2024-08-23T18:16:30.503Z", "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "shortName": "CISA-ADP" }, "title": "CISA ADP Vulnrichment" } ], "cna": { "affected": [ { "product": "buildkit", "vendor": "moby", "versions": [ { "status": "affected", "version": "\u003c 0.12.5" } ] } ], "descriptions": [ { "lang": "en", "value": "BuildKit is a toolkit for converting source code to build artifacts in an efficient, expressive and repeatable manner. In addition to running containers as build steps, BuildKit also provides APIs for running interactive containers based on built images. It was possible to use these APIs to ask BuildKit to run a container with elevated privileges. Normally, running such containers is only allowed if special `security.insecure` entitlement is enabled both by buildkitd configuration and allowed by the user initializing the build request. The issue has been fixed in v0.12.5 . Avoid using BuildKit frontends from untrusted sources. \n" } ], "metrics": [ { "cvssV3_1": { "attackComplexity": "LOW", "attackVector": "NETWORK", "availabilityImpact": "HIGH", "baseScore": 9.8, "baseSeverity": "CRITICAL", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "privilegesRequired": "NONE", "scope": "UNCHANGED", "userInteraction": "NONE", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H", "version": "3.1" } } ], "problemTypes": [ { "descriptions": [ { "cweId": "CWE-863", "description": "CWE-863: Incorrect Authorization", "lang": "en", "type": "CWE" } ] } ], "providerMetadata": { "dateUpdated": "2024-01-31T22:03:56.667Z", "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa", "shortName": "GitHub_M" }, "references": [ { "name": "https://github.com/moby/buildkit/security/advisories/GHSA-wr6v-9f75-vh2g", "tags": [ "x_refsource_CONFIRM" ], "url": "https://github.com/moby/buildkit/security/advisories/GHSA-wr6v-9f75-vh2g" }, { "name": "https://github.com/moby/buildkit/pull/4602", "tags": [ "x_refsource_MISC" ], "url": "https://github.com/moby/buildkit/pull/4602" }, { "name": "https://github.com/moby/buildkit/releases/tag/v0.12.5", "tags": [ "x_refsource_MISC" ], "url": "https://github.com/moby/buildkit/releases/tag/v0.12.5" } ], "source": { "advisory": "GHSA-wr6v-9f75-vh2g", "discovery": "UNKNOWN" }, "title": "BuildKit interactive containers API does not validate entitlements check" } }, "cveMetadata": { "assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa", "assignerShortName": "GitHub_M", "cveId": "CVE-2024-23653", "datePublished": "2024-01-31T22:03:56.667Z", "dateReserved": "2024-01-19T00:18:53.234Z", "dateUpdated": "2024-08-23T18:16:30.503Z", "state": "PUBLISHED" }, "dataType": "CVE_RECORD", "dataVersion": "5.1" }
cve-2024-23651
Vulnerability from cvelistv5
Published
2024-01-31 21:49
Modified
2024-08-01 23:06
Severity ?
EPSS score ?
Summary
BuildKit possible race condition with accessing subpaths from cache mounts
References
▼ | URL | Tags |
---|---|---|
https://github.com/moby/buildkit/security/advisories/GHSA-m3r6-h7wv-7xxv | x_refsource_CONFIRM | |
https://github.com/moby/buildkit/pull/4604 | x_refsource_MISC | |
https://github.com/moby/buildkit/releases/tag/v0.12.5 | x_refsource_MISC |
{ "containers": { "adp": [ { "providerMetadata": { "dateUpdated": "2024-08-01T23:06:25.341Z", "orgId": "af854a3a-2127-422b-91ae-364da2661108", "shortName": "CVE" }, "references": [ { "name": "https://github.com/moby/buildkit/security/advisories/GHSA-m3r6-h7wv-7xxv", "tags": [ "x_refsource_CONFIRM", "x_transferred" ], "url": "https://github.com/moby/buildkit/security/advisories/GHSA-m3r6-h7wv-7xxv" }, { "name": "https://github.com/moby/buildkit/pull/4604", "tags": [ "x_refsource_MISC", "x_transferred" ], "url": "https://github.com/moby/buildkit/pull/4604" }, { "name": "https://github.com/moby/buildkit/releases/tag/v0.12.5", "tags": [ "x_refsource_MISC", "x_transferred" ], "url": "https://github.com/moby/buildkit/releases/tag/v0.12.5" } ], "title": "CVE Program Container" } ], "cna": { "affected": [ { "product": "buildkit", "vendor": "moby", "versions": [ { "status": "affected", "version": "\u003c 0.12.5" } ] } ], "descriptions": [ { "lang": "en", "value": "BuildKit is a toolkit for converting source code to build artifacts in an efficient, expressive and repeatable manner. Two malicious build steps running in parallel sharing the same cache mounts with subpaths could cause a race condition that can lead to files from the host system being accessible to the build container. The issue has been fixed in v0.12.5. Workarounds include, avoiding using BuildKit frontend from an untrusted source or building an untrusted Dockerfile containing cache mounts with --mount=type=cache,source=... options.\n" } ], "metrics": [ { "cvssV3_1": { "attackComplexity": "HIGH", "attackVector": "NETWORK", "availabilityImpact": "NONE", "baseScore": 8.7, "baseSeverity": "HIGH", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "privilegesRequired": "NONE", "scope": "CHANGED", "userInteraction": "NONE", "vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:N", "version": "3.1" } } ], "problemTypes": [ { "descriptions": [ { "cweId": "CWE-362", "description": "CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization (\u0027Race Condition\u0027)", "lang": "en", "type": "CWE" } ] } ], "providerMetadata": { "dateUpdated": "2024-01-31T22:00:36.755Z", "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa", "shortName": "GitHub_M" }, "references": [ { "name": "https://github.com/moby/buildkit/security/advisories/GHSA-m3r6-h7wv-7xxv", "tags": [ "x_refsource_CONFIRM" ], "url": "https://github.com/moby/buildkit/security/advisories/GHSA-m3r6-h7wv-7xxv" }, { "name": "https://github.com/moby/buildkit/pull/4604", "tags": [ "x_refsource_MISC" ], "url": "https://github.com/moby/buildkit/pull/4604" }, { "name": "https://github.com/moby/buildkit/releases/tag/v0.12.5", "tags": [ "x_refsource_MISC" ], "url": "https://github.com/moby/buildkit/releases/tag/v0.12.5" } ], "source": { "advisory": "GHSA-m3r6-h7wv-7xxv", "discovery": "UNKNOWN" }, "title": "BuildKit possible race condition with accessing subpaths from cache mounts" } }, "cveMetadata": { "assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa", "assignerShortName": "GitHub_M", "cveId": "CVE-2024-23651", "datePublished": "2024-01-31T21:49:18.041Z", "dateReserved": "2024-01-19T00:18:53.234Z", "dateUpdated": "2024-08-01T23:06:25.341Z", "state": "PUBLISHED" }, "dataType": "CVE_RECORD", "dataVersion": "5.1" }