CVE-2026-55569: Github.com/aquaproj/aqua/v2 Aqua's Archive Extraction Follows Attacker-planted Vulnerability

MODERATE
Advisory Identifier: GHSA-mf5c-hw34-4hpp
CVSS 6.6
CWE-59 CWE-22
Published
Advisory Summary

CVE-2026-55569 is a MODERATE (CVSS 6.6) aqua's archive extraction follows attacker-planted vulnerability (CWE-59: Improper Link Resolution Before File Access ('Link Following')) affecting Github.com/aquaproj/aqua/v2 libraries in the Go ecosystem. The issue involves aqua's archive extraction follows attacker-planted symlinks, allowing writes outside the install directory. Remediation is available by upgrading affected packages to version 2.60.1.

CVE-2026-55569 at a Glance

CVE Identifier CVE-2026-55569
GHSA Identifier GHSA-mf5c-hw34-4hpp
Severity MODERATE
CVSS v3.1 Base Score 6.6
CWE Classification CWE-59: Improper Link Resolution Before File Access ('Link Following')
Affected Product Github.com/aquaproj/aqua/v2
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 6.6

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

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

How to Fix CVE-2026-55569

To remediate this vulnerability, upgrade all affected Github.com/aquaproj/aqua/v2 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/aquaproj/aqua/v2 fixed: 2.60.1
Upgrade github.com/aquaproj/aqua/v2 to 2.60.1
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/aquaproj/aqua/v2

How to Check if You Are Affected

To determine whether your application is affected by CVE-2026-55569, inspect your project dependencies for Github.com/aquaproj/aqua/v2:

inspect dependencies for github.com/aquaproj/aqua/v2

Analyze the terminal output to locate any version of Github.com/aquaproj/aqua/v2 in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.60.1), 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-59: Improper Link Resolution Before File Access ('Link Following'), where the product attempts to access a file based on the filename, but it does not properly prevent that filename from identifying a link or shortcut that resolves to an unintended resource. In Github.com/aquaproj/aqua/v2, 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 `aquaproj/aqua` extracts downloaded tool archives through `pkg/unarchive/archives.go` using `github.com/mholt/archives`. The archive handler creates symlink entries with `os.Symlink(f.LinkTarget, dstPath)` without validating that the symlink target resolves inside the extraction destination. A subsequent regular-file archive entry with the same path is opened with `OpenFile(dstPath, O_CREATE|O_WRONLY)`, which follows the attacker-planted symlink. A malicious or compromised aqua package / release asset can therefore write attacker-controlled bytes outside aqua's extraction directory, with the privileges of the user running aqua. ### Details Affected file: `pkg/unarchive/archives.go` Affected function: `(*handler).HandleFile` The vulnerable logic is the combination of: ```go os.Symlink(f.LinkTarget, dstPath) ``` for symlink entries, followed by: ```go h.fs.OpenFile(dstPath, os.O_CREATE|os.O_WRONLY, f.Mode()) ``` for a later regular file entry at the same archive path. The symlink target is not jailed to the extraction destination, and the later file open follows the symlink. The attached PoC uses a two-entry `tar.gz` archive: 1. symlink `pwn -> <outside target>`; 2. regular file `pwn` containing attacker-controlled bytes. The same `mholt/archives` extraction flow is used for the vulnerable handler and for a negative-control handler using a destination-root jail. ### PoC Attachment: `submission_aqua_archive_symlink_traversal_v2_final.zip` Run: ```bash go run mkarchive.go /tmp/aqua-outside-target go build -o aqua-archive-poc . mkdir -p /tmp/aqua-dest ./aqua-archive-poc vuln /tmp/aqua-dest malicious.tar.gz cat /tmp/aqua-outside-target mkdir -p /tmp/aqua-dest-safe ./aqua-archive-poc safe /tmp/aqua-dest-safe malicious.tar.gz ``` Expected vulnerable result: ```text /tmp/aqua-outside-target contains PWNED_BY_AQUA_SYMLINK_TRAVERSAL ``` Expected safe-control result: ```text The escaping symlink / write is rejected and the outside target is unchanged. ``` ### Impact An attacker who controls an archive that aqua installs can write attacker-controlled content to paths outside the extraction destination, limited by the filesystem permissions of the user running aqua. This can lead to user-level code execution if the overwritten path is later executed or interpreted, for example a shell startup file, a tool configuration file, or a writable PATH entry. This report does not claim privilege escalation beyond the aqua process privileges.

CVE-2026-55569 Affected Github.com/aquaproj/aqua/v2 Versions

1 component(s)
Fixed Versions:
2.60.1
Product / Package Ecosystem Affected Versions Fixed Version
github.com/aquaproj/aqua/v2
Go
< 2.60.1
2.60.1

References

Frequently Asked Questions

What is CVE-2026-55569?
CVE-2026-55569 is a security vulnerability in Github.com/aquaproj/aqua/v2 involving Aqua's archive extraction follows attacker-planted symlinks, allowing writes outside the install directory under CWE-59: Improper Link Resolution Before File Access ('Link Following').
Which Github.com/aquaproj/aqua/v2 versions are affected?
Affected versions include releases prior to 2.60.1 across affected packages: github.com/aquaproj/aqua/v2.
What version fixes CVE-2026-55569?
Upgrading to 2.60.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/aquaproj/aqua/v2 affected?
Yes, github.com/aquaproj/aqua/v2 is affected in releases prior to 2.60.1. Upgrade your dependency to 2.60.1 or later.
What is the CVSS score of CVE-2026-55569?
CVE-2026-55569 has a CVSS v3.1 base score of 6.6 (MODERATE) with vector string CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:L.
What CWE is associated with CVE-2026-55569?
CVE-2026-55569 is classified under CWE-59: Improper Link Resolution Before File Access ('Link Following') (The product attempts to access a file based on the filename, but it does not properly prevent that filename from identifying a link or shortcut that resolves to an unintended resource.).
How can I check Go dependencies for CVE-2026-55569?
Run the dependency tree command: 'inspect dependencies for github.com/aquaproj/aqua/v2'. 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-mf5c-hw34-4hpp",
  "modified" : "2026-08-28T16:27:08Z",
  "published" : "2026-08-28T16:27:08Z",
  "aliases" : [ "CVE-2026-55569" ],
  "summary" : "Aqua's archive extraction follows attacker-planted symlinks, allowing writes outside the install directory",
  "details" : "### Summary\n\n`aquaproj/aqua` extracts downloaded tool archives through `pkg/unarchive/archives.go` using `github.com/mholt/archives`. The archive handler creates symlink entries with `os.Symlink(f.LinkTarget, dstPath)` without validating that the symlink target resolves inside the extraction destination. A subsequent regular-file archive entry with the same path is opened with `OpenFile(dstPath, O_CREATE|O_WRONLY)`, which follows the attacker-planted symlink.\n\nA malicious or compromised aqua package / release asset can therefore write attacker-controlled bytes outside aqua's extraction directory, with the privileges of the user running aqua.\n\n### Details\n\nAffected file: `pkg/unarchive/archives.go`\n\nAffected function: `(*handler).HandleFile`\n\nThe vulnerable logic is the combination of:\n\n```go\nos.Symlink(f.LinkTarget, dstPath)\n```\n\nfor symlink entries, followed by:\n\n```go\nh.fs.OpenFile(dstPath, os.O_CREATE|os.O_WRONLY, f.Mode())\n```\n\nfor a later regular file entry at the same archive path. The symlink target is not jailed to the extraction destination, and the later file open follows the symlink.\n\nThe attached PoC uses a two-entry `tar.gz` archive:\n\n1. symlink `pwn -> <outside target>`;\n2. regular file `pwn` containing attacker-controlled bytes.\n\nThe same `mholt/archives` extraction flow is used for the vulnerable handler and for a negative-control handler using a destination-root jail.\n\n### PoC\n\nAttachment: `submission_aqua_archive_symlink_traversal_v2_final.zip`\n\nRun:\n\n```bash\ngo run mkarchive.go /tmp/aqua-outside-target\ngo build -o aqua-archive-poc .\nmkdir -p /tmp/aqua-dest\n./aqua-archive-poc vuln /tmp/aqua-dest malicious.tar.gz\ncat /tmp/aqua-outside-target\n\nmkdir -p /tmp/aqua-dest-safe\n./aqua-archive-poc safe /tmp/aqua-dest-safe malicious.tar.gz\n```\n\nExpected vulnerable result:\n\n```text\n/tmp/aqua-outside-target contains PWNED_BY_AQUA_SYMLINK_TRAVERSAL\n```\n\nExpected safe-control result:\n\n```text\nThe escaping symlink / write is rejected and the outside target is unchanged.\n```\n\n### Impact\n\nAn attacker who controls an archive that aqua installs can write attacker-controlled content to paths outside the extraction destination, limited by the filesystem permissions of the user running aqua. This can lead to user-level code execution if the overwritten path is later executed or interpreted, for example a shell startup file, a tool configuration file, or a writable PATH entry.\n\nThis report does not claim privilege escalation beyond the aqua process privileges.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:L"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/aquaproj/aqua/v2"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.60.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/aquaproj/aqua/security/advisories/GHSA-mf5c-hw34-4hpp"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/aquaproj/aqua/commit/d5b02b220188de376a661b3aabfa912202a1a59a"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/aquaproj/aqua"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/aquaproj/aqua/releases/tag/v2.60.1"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-22", "CWE-59" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-08-28T16:27:08Z",
    "nvd_published_at" : null
  }
}