CVE-2026-56236

Capgo CLI - Arbitrary File Overwrite via Symlink-Following in Local Credential Operations

Published Jun 21, 2026 CVSS 4.0 · 6.8 Medium EPSS < 1% KEV · Not listed
Description
Capgo CLI before 12.128.2 contains arbitrary file overwrite vulnerabilities in login and build credentials operations that follow symlinks without validation. Attackers can create malicious symlinks in repositories to overwrite arbitrary files or expose credentials with world-readable permissions when developers run the CLI.

Analysis

AI-generated

Technical impact

Capgo CLI before version 12.128.2 is vulnerable to an arbitrary file overwrite flaw in its login and build credential commands. The application follows symbolic links without validation, allowing an attacker who can place a malicious symlink inside a repository to overwrite any file that the CLI has write access to or to expose stored credentials by making them world‑readable. This weakness, identified as CWE‑59, can lead to unauthorized modification of application files or leakage of sensitive data, affecting the integrity and confidentiality of the build environment.

Affected Systems

Products affected are the Capgo CLI tool, any installation running a version earlier than 12.128.2. The vulnerability is triggered by local repository contents, meaning that any user running the CLI commands in a compromised repository is at risk. Users of the CLI on public or shared development repositories should check for unintended symlinks.

Risk and Exploitability

The CVSS score is 6.8, indicating moderate severity. No EPSS score is available, and the vulnerability is not listed in the CISA KEV catalog. The likely attack vector is local, as an attacker needs to create a symlink within the repository and have a developer execute the CLI’s login or build commands. Because the flaw permits arbitrary file overwrite or credential exposure, the risk to a system is significant if an attacker gains access to write to repository files. Timely patching is advised to mitigate this risk.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Capgo CLI to version 12.128.2 or later, where the symlink validation has been corrected.
  • Ensure that credential files created by the CLI are set to restrictive permissions, preventing world‑readable access.
  • Audit code repositories for unexpected symbolic links before executing the CLI’s login or build operations.
  • When an upgrade is not immediately possible, avoid using the login or build credential commands with local repositories and instead manage secrets via dedicated secret management solutions.

Generated by OpenCVE AI on June 21, 2026 at 16:41 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Capgo
Capgo cli
Vendors & Products Capgo
Capgo cli
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description Capgo CLI before 12.128.2 contains arbitrary file overwrite vulnerabilities in login and build credentials operations that follow symlinks without validation. Attackers can create malicious symlinks in repositories to overwrite arbitrary files or expose credentials with world-readable permissions when developers run the CLI.
Title Capgo CLI - Arbitrary File Overwrite via Symlink-Following in Local Credential Operations
Weaknesses CWE-59
References
Metrics cvssV3_1

{'score': 6.1, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:N'}

cvssV4_0

{'score': 6.8, 'vector': 'CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:L/VI:H/VA:N/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-59

    Improper Link Resolution Before File Access ('Link Following')

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 8, 2026, 2:05 PM
Reserved
Jun 19, 2026, 9:50 PM
Status
Deferred
Published
Jun 21, 2026, 2:16 PM
Modified
Oct 25, 2026, 11:10 PM