CVE-2026-33748: BuildKit Git URL subdir component can cause access to restricted files

Published Mar 26, 2026
·
Updated

Impact Insufficient validation of Git URL fragment subdir components (<url>#<ref>:<subdir>, docs) may allow access to files outside the checked-out Git repository root. Possible access is limited to files on the same mounted filesystem.

Patches The issue has been fixed in version v0.28.1

Workarounds The issue affects only builds that use Git URLs with a subpath component. Avoid building Dockerfiles from untrusted sources or using the subdir component from an untrusted Git repository where the subdir component could point to a symlink.

Other sources

BuildKit is a toolkit for converting source code to build artifacts in an efficient, expressive and repeatable manner. Prior to version 0.28.1, insufficient validation of Git URL fragment subdir components may allow access to files outside the checked-out Git repository root. Possible access is limited to files on the same mounted filesystem. The issue has been fixed in version v0.28.1 The issue affects only builds that use Git URLs with a subpath component. As a workaround, avoid building Dockerfiles from untrusted sources or using the subdir component from an untrusted Git repository where the subdir component could point to a symlink.

MITRE

Affected Software

2 affected componentsFixes available
go/github.com/moby/buildkit<0.28.1
0.28.1
Mobyproject Buildkit<0.28.1

Event History

Mar 26, 2026
Advisory Published
via GitHub·06:27 PM
Data Sourced
via GitHub·06:27 PM
DescriptionWeaknessAffected Software
Mar 27, 2026
CVE Published
via MITRE·02:00 PM
Data Sourced
via MITRE·02:00 PM
DescriptionWeakness
Data Sourced
via NVD·03:16 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·03:16 PM
Affected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-33748?

CVE-2026-33748 is considered a medium severity vulnerability due to insufficient validation of Git URL fragment subdir components.

2

How do I fix CVE-2026-33748?

To remediate CVE-2026-33748, upgrade to version 0.28.1 or later of the affected package from GitHub's buildkit.

3

What are the risks associated with CVE-2026-33748?

The risks involve potential unauthorized access to files outside the checked-out Git repository root, which may compromise sensitive information.

4

Which software is affected by CVE-2026-33748?

CVE-2026-33748 affects the buildkit package from GitHub with versions prior to 0.28.1.

5

Is there a workaround for CVE-2026-33748?

There are no specific workarounds for CVE-2026-33748, so upgrading to the fixed version is recommended.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203