We use these services and cookies to improve your user experience. You may opt out if you wish, however, this may limit some features on this site.

Please see our statement on Data Privacy.

Crisp.chat (Helpdesk and Chat)

Ok

THREATINT
PUBLISHED

CVE-2024-7387

Openshift/builder: path traversal allows command injection in privileged buildcontainer using docker build strategy



Description

A flaw was found in openshift/builder. This vulnerability allows command injection via path traversal, where a malicious user can execute arbitrary commands on the OpenShift node running the builder container. When using the “Docker” strategy, executable files inside the privileged build container can be overridden using the `spec.source.secrets.secret.destinationDir` attribute of the `BuildConfig` definition. An attacker running code in a privileged container could escalate their permissions on the node running the container.

Reserved 2024-08-01 | Published 2024-09-16 | Updated 2024-11-24 | Assigner redhat


CRITICAL: 9.1CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H

Problem types

Execution with Unnecessary Privileges

Product status

Default status
affected

v4.12.0-202409121032.p1.g609473f.assembly.stream.el8 before *
unaffected

Default status
affected

v4.13.0-202409120505.p1.g2c7e99d.assembly.stream.el8 before *
unaffected

Default status
affected

v4.14.0-202409111409.p1.g52565ca.assembly.stream.el8 before *
unaffected

Default status
affected

v4.15.0-202409101936.p1.ge7749a3.assembly.stream.el8 before *
unaffected

Default status
affected

v4.16.0-202409101737.p1.gfee4b58.assembly.stream.el9 before *
unaffected

Timeline

2024-08-01:Reported to Red Hat.
2024-09-16:Made public.

Credits

Red Hat would like to thank Armin Stock for reporting this issue.

References

access.redhat.com/errata/RHSA-2024:6685 (RHSA-2024:6685) vendor-advisory

access.redhat.com/errata/RHSA-2024:6687 (RHSA-2024:6687) vendor-advisory

access.redhat.com/errata/RHSA-2024:6689 (RHSA-2024:6689) vendor-advisory

access.redhat.com/errata/RHSA-2024:6691 (RHSA-2024:6691) vendor-advisory

access.redhat.com/errata/RHSA-2024:6705 (RHSA-2024:6705) vendor-advisory

access.redhat.com/security/cve/CVE-2024-7387 vdb-entry

bugzilla.redhat.com/show_bug.cgi?id=2302259 (RHBZ#2302259) issue-tracking

stuxxn.github.io/.../02/openshift-build-docker-priv-esc.html

cve.org (CVE-2024-7387)

nvd.nist.gov (CVE-2024-7387)

Download JSON

Share this page
https://cve.threatint.com/CVE/CVE-2024-7387

Support options

Helpdesk Chat, Email, Knowledgebase
Telegram Chat
Subscribe to our newsletter to learn more about our work.