Advisory

GHSA-6qfg-8799-r575

Also known as: CVE-2019-11251, GO-2022-0802

Summary

Kubernetes kubectl cp Vulnerable to Symlink Attack

Details

The Kubernetes kubectl cp command in versions 1.1-1.12, and versions prior to 1.13.11, 1.14.7, and 1.15.4 allows a combination of two symlinks provided by tar output of a malicious container to place a file outside of the destination directory specified in the kubectl cp invocation. This could be used to allow an attacker to place a nefarious file using a symlink, outside of the destination tree.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2021-05-18 15:30 UTC
Modified
2024-08-21 15:58 UTC

Affected packages and fixes

k8s.io/kubernetes

Go · All systems

Affected

  • introduced 1.13.10, fixed 1.13.11 (semver)

Fixed versions

1.13.11

Fix

k8s.io/kubernetes

Go · All systems

Affected

  • introduced 1.14.6, fixed 1.14.7 (semver)

Fixed versions

1.14.7

Fix

k8s.io/kubernetes

Go · All systems

Affected

  • introduced 1.15.3, fixed 1.16.0 (semver)

Fixed versions

1.16.0

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences