CVE-2026-41326: Github.com/kata containers/kata containers Kata Container Has CopyFile Policy Vulnerability

HIGH
Advisory Identifier: GHSA-q49m-57vm-c8cc
CVSS 8.2
CWE-61
Published
Advisory Summary

CVE-2026-41326 is a HIGH (CVSS 8.2) kata container has copyfile policy vulnerability (CWE-61: UNIX Symbolic Link (Symlink) Following) affecting Github.com/kata containers/kata containers libraries in the Go ecosystem. The issue involves kata container has copyfile policy subversion via symlinks. Remediation is available by upgrading affected packages to version 0.0.0-20260422180503-1b9e49eb2763.

CVE-2026-41326 at a Glance

CVE Identifier CVE-2026-41326
GHSA Identifier GHSA-q49m-57vm-c8cc
Severity HIGH
CVSS v3.1 Base Score 8.2
CWE Classification CWE-61: UNIX Symbolic Link (Symlink) Following
Affected Product Github.com/kata containers/kata containers
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 8.2

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity Low (I:L)
Availability None (A:N)

How to Fix CVE-2026-41326

To remediate this vulnerability, upgrade all affected Github.com/kata containers/kata containers dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/kata-containers/kata-containers fixed: 0.0.0-20260422180503-1b9e49eb2763
Upgrade github.com/kata-containers/kata-containers to 0.0.0-20260422180503-1b9e49eb2763
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/kata-containers/kata-containers

How to Check if You Are Affected

To determine whether your application is affected by CVE-2026-41326, inspect your project dependencies for Github.com/kata containers/kata containers:

inspect dependencies for github.com/kata-containers/kata-containers

Analyze the terminal output to locate any version of Github.com/kata containers/kata containers in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.0.0-20260422180503-1b9e49eb2763), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-61: UNIX Symbolic Link (Symlink) Following, where the product, when opening a file or directory, does not sufficiently account for when the file is a symbolic link that resolves to a target outside of the intended control sphere. this could allow an attacker to cause the product to operate on unauthorized files. In Github.com/kata containers/kata containers, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Summary An oversight in the CopyFile policy (and perhaps the CopyFile handler) allows untrusted hosts to write to arbitrary locations inside the guest workload image. This can be used to overwrite binaries inside the guest and exfiltrate data from containers; even those running inside CVMs. ### Details Here is the policy that covers CopyFile requests. ``` CopyFileRequest if { print("CopyFileRequest: input.path =", input.path) check_directory_traversal(input.path) some regex1 in policy_data.request_defaults.CopyFileRequest regex2 := replace(regex1, "$(sfprefix)", policy_data.common.sfprefix) regex3 := replace(regex2, "$(cpath)", policy_data.common.cpath) regex4 := replace(regex3, "$(bundle-id)", "[a-z0-9]{64}") print("CopyFileRequest: regex4 =", regex4) regex.match(regex4, input.path) print("CopyFileRequest: true") } ``` This checks that files are being copied to `policy_data.common.cpath`, which is typically set to `/run/kata-containers/shared/containers`. In other words, you're allowed to copy files to anywhere inside the shared dir. For reference, here is the CopyFile message. Note that none of the other fields are check in the policy. ``` message CopyFileRequest { // Path is the destination file in the guest. It must be absolute, // canonical and below /run. string path = 1; // FileSize is the expected file size, for security reasons write operations // are made in a temporary file, once it has the expected size, it's moved // to the destination path. int64 file_size = 2; // FileMode is the file mode. uint32 file_mode = 3; // DirMode is the mode for the parent directories of destination path. uint32 dir_mode = 4; // Uid is the numeric user id. int32 uid = 5; // Gid is the numeric group id. int32 gid = 6; // Offset for the next write operation. int64 offset = 7; // Data to write in the destination file. bytes data = 8; } ``` In addition to copying files directly, the Kata Agent supports creating symlinks via the CopyFile API. In this case the `path` is the symlink name and the `data` field contains the symlink target. Given that the policy only checks the path, an attacker can craft a CopyFile request that results in a symlink going from any location into the shared dir. ### PoC The above primitive can be used to to write arbitrary data into container images (pulled in the guest or otherwise). A couple steps are required. First, identify some target path in the guest image. This could be a binary that will be called by the workload. You could also experiment with overwriting other stuff. Create a symlink from this binary to the shared dir. The path/link name should be in the shared dir and the data/target should point to the path of the target file inside the container image in the guest fs. Create a second CopyFile request to copy your data from the host into the symlink you just created in the shared dir. This will then be propagated into the image. You may want to restart the container to ensure that your new binary is invoked. ### Impact Anyone who is using the upstream `genpolicy` implementation and expects it to prevent host access to container images is vulnerable This includes Confidential Containers workloads where the trust model explicitly forbids this type of access. If you have your own policy implementation you may or may not be vulnerable. If you do not care about protecting the image from the host (e.g. you are using unprotected host pull), you are not vulnerable. This was individually discovered and reported by - @calonso-nv - @fikriwahab - @kodareef5

CVE-2026-41326 Affected Github.com/kata containers/kata containers Versions

1 component(s)
Fixed Versions:
0.0.0-20260422180503-1b9e49eb2763
Product / Package Ecosystem Affected Versions Fixed Version
github.com/kata-containers/kata-containers
Go
< 0.0.0-20260422180503-1b9e49eb2763
0.0.0-20260422180503-1b9e49eb2763

References

Frequently Asked Questions

What is CVE-2026-41326?
CVE-2026-41326 is a security vulnerability in Github.com/kata containers/kata containers involving Kata Container has CopyFile Policy Subversion via Symlinks under CWE-61: UNIX Symbolic Link (Symlink) Following.
Which Github.com/kata containers/kata containers versions are affected?
Affected versions include releases prior to 0.0.0-20260422180503-1b9e49eb2763 across affected packages: github.com/kata-containers/kata-containers.
What version fixes CVE-2026-41326?
Upgrading to 0.0.0-20260422180503-1b9e49eb2763 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/kata-containers/kata-containers affected?
Yes, github.com/kata-containers/kata-containers is affected in releases prior to 0.0.0-20260422180503-1b9e49eb2763. Upgrade your dependency to 0.0.0-20260422180503-1b9e49eb2763 or later.
What is the CVSS score of CVE-2026-41326?
CVE-2026-41326 has a CVSS v3.1 base score of 8.2 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N.
What CWE is associated with CVE-2026-41326?
CVE-2026-41326 is classified under CWE-61: UNIX Symbolic Link (Symlink) Following (The product, when opening a file or directory, does not sufficiently account for when the file is a symbolic link that resolves to a target outside of the intended control sphere. This could allow an attacker to cause the product to operate on unauthorized files.).
How can I check Go dependencies for CVE-2026-41326?
Run the dependency tree command: 'inspect dependencies for github.com/kata-containers/kata-containers'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-q49m-57vm-c8cc",
  "modified" : "2026-05-14T20:49:51Z",
  "published" : "2026-05-04T19:32:20Z",
  "aliases" : [ "CVE-2026-41326" ],
  "summary" : "Kata Container has CopyFile Policy Subversion via Symlinks",
  "details" : "### Summary\nAn oversight in the CopyFile policy (and perhaps the CopyFile handler) allows untrusted hosts to write to arbitrary locations inside the guest workload image. This can be used to overwrite binaries inside the guest and exfiltrate data from containers; even those running inside CVMs.\n\n### Details\nHere is the policy that covers CopyFile requests.\n```\nCopyFileRequest if {\n    print(\"CopyFileRequest: input.path =\", input.path)\n        \n    check_directory_traversal(input.path)\n        \n    some regex1 in policy_data.request_defaults.CopyFileRequest\n    regex2 := replace(regex1, \"$(sfprefix)\", policy_data.common.sfprefix)\n    regex3 := replace(regex2, \"$(cpath)\", policy_data.common.cpath)\n    regex4 := replace(regex3, \"$(bundle-id)\", \"[a-z0-9]{64}\")\n    print(\"CopyFileRequest: regex4 =\", regex4)\n    \n    regex.match(regex4, input.path)\n      \n    print(\"CopyFileRequest: true\")\n}\n```\nThis checks that files are being copied to `policy_data.common.cpath`, which is typically set to `/run/kata-containers/shared/containers`. In other words, you're allowed to copy files to anywhere inside the shared dir.\n\nFor reference, here is the CopyFile message. Note that none of the other fields are check in the policy.\n```\nmessage CopyFileRequest {\n\t// Path is the destination file in the guest. It must be absolute,\n\t// canonical and below /run.\n\tstring path = 1;\n\t// FileSize is the expected file size, for security reasons write operations\n\t// are made in a temporary file, once it has the expected size, it's moved\n\t// to the destination path.\n\tint64 file_size = 2;\n\t// FileMode is the file mode.\n\tuint32 file_mode = 3;\n\t// DirMode is the mode for the parent directories of destination path.\n\tuint32 dir_mode = 4;\n\t// Uid is the numeric user id.\n\tint32 uid = 5;\n\t// Gid is the numeric group id.\n\tint32 gid = 6;\n\t// Offset for the next write operation.\n\tint64 offset = 7;\n\t// Data to write in the destination file.\n\tbytes data = 8;\n}\n```\n\nIn addition to copying files directly, the Kata Agent supports creating symlinks via the CopyFile API. In this case the `path` is the symlink name and the `data` field contains the symlink target. Given that the policy only checks the path, an attacker can craft a CopyFile request that results in a symlink going from any location into the shared dir.\n\n### PoC\nThe above primitive can be used to to write arbitrary data into container images (pulled in the guest or otherwise). A couple steps are required.\n\nFirst, identify some target path in the guest image. This could be a binary that will be called by the workload. You could also experiment with overwriting other stuff.\n\nCreate a symlink from this binary to the shared dir. The path/link name should be in the shared dir and the data/target should point to the path of the target file inside the container image in the guest fs.\n\nCreate a second CopyFile request to copy your data from the host into the symlink you just created in the shared dir. This will then be propagated into the image. You may want to restart the container to ensure that your new binary is invoked.\n\n### Impact\nAnyone who is using the upstream `genpolicy` implementation and expects it to prevent host access to container images is vulnerable This includes Confidential Containers workloads where the trust model explicitly forbids this type of access. If you have your own policy implementation you may or may not be vulnerable. If you do not care about protecting the image from the host (e.g. you are using unprotected host pull), you are not vulnerable.\n\nThis was individually discovered and reported by\n\n- @calonso-nv \n- @fikriwahab\n- @kodareef5",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:H/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/kata-containers/kata-containers"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.0.0-20260422180503-1b9e49eb2763"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/kata-containers/kata-containers/security/advisories/GHSA-q49m-57vm-c8cc"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-41326"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/kata-containers/kata-containers/commit/1b9e49eb2763aa6ea6a99b276d3ff5e2c7f658f2"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/kata-containers/kata-containers"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2026/05/13/2"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-61" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-05-04T19:32:20Z",
    "nvd_published_at" : "2026-04-24T19:17:12Z"
  }
}