oras-go is a Go library for managing OCI artifacts. Prior to 2.6.1, resolveWritePath() in content/file/file.go uses a lexical filepath.Rel check for workingDir and does not account for symlink traversal, so when AllowPathTraversalOnWrite=false an attacker-controlled blob title through ocispec.AnnotationTitle such as out/pwn.txt can follow a workingDir symlink out -> /some/outside/dir and cause pushFile() to create /some/outside/dir/pwn.txt outside workingDir. This issue is fixed in version 2.6.1.
The product allows user input to control or influence paths or file names that are used in filesystem operations.
| Name | Vendor | Start Version | End Version |
|---|---|---|---|
| Migration Toolkit for Virtualization 2.10 | RedHat | migration-toolkit-virtualization/mtv-validation-rhel9:1791228247 | * |
| Migration Toolkit for Virtualization 2.11 | RedHat | migration-toolkit-virtualization/mtv-validation-rhel9:1791229031 | * |
| OpenShift Security Profiles Operator 1 | RedHat | compliance/openshift-security-profiles-operator-bundle:1790626888 | * |
| OpenShift Security Profiles Operator 1 | RedHat | compliance/openshift-security-profiles-rhel8-operator:1790623030 | * |
| Red Hat Edge Manager 1.1 | RedHat | rhem/flightctl-alert-exporter-rhel10:1789485396 | * |
| Red Hat Edge Manager 1.1 | RedHat | rhem/flightctl-alertmanager-proxy-rhel10:1789486842 | * |
| Red Hat Edge Manager 1.1 | RedHat | rhem/flightctl-api-rhel10:1789485939 | * |
| Red Hat Edge Manager 1.1 | RedHat | rhem/flightctl-cli-artifacts-rhel10:1789488001 | * |
| Red Hat Edge Manager 1.1 | RedHat | rhem/flightctl-db-setup-rhel10:1789487240 | * |
| Red Hat Edge Manager 1.1 | RedHat | rhem/flightctl-imagebuilder-api-rhel10:1789486040 | * |
| Red Hat Edge Manager 1.1 | RedHat | rhem/flightctl-imagebuilder-worker-rhel10:1789486782 | * |
| Red Hat Edge Manager 1.1 | RedHat | rhem/flightctl-pam-issuer-rhel10:1789487151 | * |
| Red Hat Edge Manager 1.1 | RedHat | rhem/flightctl-periodic-rhel10:1789485633 | * |
| Red Hat Edge Manager 1.1 | RedHat | rhem/flightctl-telemetry-gateway-rhel10:1789486686 | * |
| Red Hat Edge Manager 1.1 | RedHat | rhem/flightctl-userinfo-proxy-rhel10:1789487947 | * |
| Red Hat Edge Manager 1.1 | RedHat | rhem/flightctl-worker-rhel10:1789486071 | * |
| Red Hat Edge Manager 1.1 | RedHat | rhem/flightctl-alert-exporter-rhel9:1789488080 | * |
| Red Hat Edge Manager 1.1 | RedHat | rhem/flightctl-alertmanager-proxy-rhel9:1789486160 | * |
| Red Hat Edge Manager 1.1 | RedHat | rhem/flightctl-api-rhel9:1789487080 | * |
| Red Hat Edge Manager 1.1 | RedHat | rhem/flightctl-cli-artifacts-rhel9:1789485800 | * |
| Red Hat Edge Manager 1.1 | RedHat | rhem/flightctl-db-setup-rhel9:1789487116 | * |
| Red Hat Edge Manager 1.1 | RedHat | rhem/flightctl-imagebuilder-api-rhel9:1789486154 | * |
| Red Hat Edge Manager 1.1 | RedHat | rhem/flightctl-imagebuilder-worker-rhel9:1789485338 | * |
| Red Hat Edge Manager 1.1 | RedHat | rhem/flightctl-pam-issuer-rhel9:1789486466 | * |
| Red Hat Edge Manager 1.1 | RedHat | rhem/flightctl-periodic-rhel9:1789486513 | * |
| Red Hat Edge Manager 1.1 | RedHat | rhem/flightctl-telemetry-gateway-rhel9:1789485664 | * |
| Red Hat Edge Manager 1.1 | RedHat | rhem/flightctl-userinfo-proxy-rhel9:1789485648 | * |
| Red Hat Edge Manager 1.1 | RedHat | rhem/flightctl-worker-rhel9:1789486829 | * |
| Red Hat Edge Manager 1.2 | RedHat | rhem/flightctl-alert-exporter-rhel10:1789485358 | * |
| Red Hat Edge Manager 1.2 | RedHat | rhem/flightctl-alertmanager-proxy-rhel10:1789485956 | * |
| Red Hat Edge Manager 1.2 | RedHat | rhem/flightctl-api-rhel10:1789485653 | * |
| Red Hat Edge Manager 1.2 | RedHat | rhem/flightctl-cli-artifacts-rhel10:1789486382 | * |
| Red Hat Edge Manager 1.2 | RedHat | rhem/flightctl-db-setup-rhel10:1789487147 | * |
| Red Hat Edge Manager 1.2 | RedHat | rhem/flightctl-imagebuilder-api-rhel10:1789485823 | * |
| Red Hat Edge Manager 1.2 | RedHat | rhem/flightctl-imagebuilder-worker-rhel10:1789485526 | * |
| Red Hat Edge Manager 1.2 | RedHat | rhem/flightctl-pam-issuer-rhel10:1789487060 | * |
| Red Hat Edge Manager 1.2 | RedHat | rhem/flightctl-periodic-rhel10:1789486651 | * |
| Red Hat Edge Manager 1.2 | RedHat | rhem/flightctl-telemetry-gateway-rhel10:1789486468 | * |
| Red Hat Edge Manager 1.2 | RedHat | rhem/flightctl-userinfo-proxy-rhel10:1789486659 | * |
| Red Hat Edge Manager 1.2 | RedHat | rhem/flightctl-worker-rhel10:1789486740 | * |
| Red Hat Edge Manager 1.2 | RedHat | rhem/flightctl-alert-exporter-rhel9:1789485374 | * |
| Red Hat Edge Manager 1.2 | RedHat | rhem/flightctl-alertmanager-proxy-rhel9:1789486471 | * |
| Red Hat Edge Manager 1.2 | RedHat | rhem/flightctl-api-rhel9:1789485317 | * |
| Red Hat Edge Manager 1.2 | RedHat | rhem/flightctl-cli-artifacts-rhel9:1789485390 | * |
| Red Hat Edge Manager 1.2 | RedHat | rhem/flightctl-db-setup-rhel9:1789485698 | * |
| Red Hat Edge Manager 1.2 | RedHat | rhem/flightctl-imagebuilder-api-rhel9:1789485260 | * |
| Red Hat Edge Manager 1.2 | RedHat | rhem/flightctl-imagebuilder-worker-rhel9:1789487407 | * |
| Red Hat Edge Manager 1.2 | RedHat | rhem/flightctl-pam-issuer-rhel9:1789487540 | * |
| Red Hat Edge Manager 1.2 | RedHat | rhem/flightctl-periodic-rhel9:1789485282 | * |
| Red Hat Edge Manager 1.2 | RedHat | rhem/flightctl-telemetry-gateway-rhel9:1789486233 | * |
| Red Hat Edge Manager 1.2 | RedHat | rhem/flightctl-userinfo-proxy-rhel9:1789485510 | * |
| Red Hat Edge Manager 1.2 | RedHat | rhem/flightctl-worker-rhel9:1789488061 | * |
| Red Hat Hardened Images | RedHat | helm4-main-4.2.3-0.1.2.hum1 | * |
| Red Hat Hardened Images | RedHat | helm3-main-3.21.3-0.1.2.hum1 | * |
| Red Hat OpenShift AI 3.4 | RedHat | rhoai/odh-rhel9-operator:1792040238 | * |
| Red Hat OpenShift AI 3.4 | RedHat | rhoai/odh-spark-operator-rhel9:1790958993 | * |
| Red Hat OpenShift GitOps 1.20 | RedHat | openshift-gitops-1/argocd-rhel9:1791184378 | * |
| Red Hat OpenShift GitOps 1.21 | RedHat | openshift-gitops-1/argocd-rhel9:1791252092 | * |
This could allow an attacker to access or modify system files or other files that are critical to the application. Path manipulation errors occur when the following two conditions are met:
For example, the program may give the attacker the ability to overwrite the specified file or run with a configuration controlled by the attacker.