CVE-2026-41326: Github.com/kata containers/kata containers Kata Container Has CopyFile Policy Vulnerability
HIGHCVE-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
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).
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.
Upgrade github.com/kata-containers/kata-containers to 0.0.0-20260422180503-1b9e49eb2763
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
CVE-2026-41326 Affected Github.com/kata containers/kata containers Versions
1 component(s)| 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?
Which Github.com/kata containers/kata containers versions are affected?
What version fixes CVE-2026-41326?
Is github.com/kata-containers/kata-containers affected?
What is the CVSS score of CVE-2026-41326?
What CWE is associated with CVE-2026-41326?
How can I check Go dependencies for CVE-2026-41326?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}