REDHAT-BUG-2452271: Medium severity Moby BuildKit vulnerability

Published Mar 27, 2026
·
Updated

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.

Affected Software

1 affected component
Moby BuildKit<0.28.1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in v0.28.1
  2. Compensating control

    As a workaround, avoid building Dockerfiles from untrusted sources and avoid using the subdir component from an untrusted Git repository where the subdir component could point to a symlink.

Event History

Mar 27, 2026
Data Sourced
via Red Hat·03:02 PM
DescriptionSeverityAffected 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 REDHAT-BUG-2452271?

The severity of REDHAT-BUG-2452271 is classified as medium.

2

How do I fix REDHAT-BUG-2452271?

To remediate REDHAT-BUG-2452271, upgrade to Moby BuildKit version 0.28.1 or later.

3

What does REDHAT-BUG-2452271 involve?

REDHAT-BUG-2452271 involves insufficient validation of Git URL fragment subdir components, allowing potential unauthorized file access.

4

What versions are affected by REDHAT-BUG-2452271?

Versions prior to 0.28.1 of Moby BuildKit are affected by REDHAT-BUG-2452271.

5

Can REDHAT-BUG-2452271 allow access to sensitive files?

Yes, REDHAT-BUG-2452271 may allow access to files outside the checked-out Git repository root.

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