CVE-2026-123665

kubescape Output printresults.go GetWriter permission

Published Nov 6, 2026 CVSS 4.0 · 2.4 Low EPSS < 1% KEV · Not listed
Description
A weakness has been identified in kubescape up to 4.0.15. Impacted is the function GetWriter of the file core/pkg/resultshandling/printer/printresults.go of the component Output. Executing a manipulation of the argument outputFile can lead to permission issues. The attack requires local access. Upgrading to version 4.0.16 is recommended to address this issue. This patch is called d90f77314c7d4f2b53cf2425844bde2315bd26d2. Upgrading the affected component is advised.

Analysis

AI-generated

Technical impact

The vulnerability is a permission misconfiguration in the GetWriter function of kubescape's result handling output component. Manipulating the outputFile argument can cause the program to create or modify files with inappropriate file system permissions, allowing a user with local access to write files in directories they should not have write rights to or set permissions that expose sensitive data. The weakness is classified under CWE-266 and CWE-275.

Affected Systems

Affected versions are all releases of kubescape up to and including 4.0.15. Users running these versions on any operating system are at risk if they invoke kubescape with a crafted outputFile argument. The fix is provided in kubescape v4.0.16 and later, which implements proper validation of the output path. There is no known vendor version information beyond the 4.0.15 boundary.

Risk and Exploitability

The severity score of 2.4 indicates a low impact and the vulnerability requires local access; it is not currently listed in CISA's KEV catalog and there is no EPSS score available. Exploitation would likely require the attacker to have a local user account or elevate privileges within the host. Due to its low CVSS and local nature, the risk is limited but patching is still recommended to prevent accidental permission leakage.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update kubescape to version 4.0.16 or later to apply the official fix.
  • If immediate upgrade is not possible, manually apply the patch commit d90f77314c7d4f2b53cf2425844bde2315bd26d2 to the printresults.go file to enforce correct permission handling.
  • Run kubescape with the least privilege necessary and ensure that the outputFile directory is owned by a user with restricted write permissions to limit the impact of any potential misuse.

Generated by OpenCVE AI on November 6, 2026 at 17:09 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
Description A weakness has been identified in kubescape up to 4.0.15. Impacted is the function GetWriter of the file core/pkg/resultshandling/printer/printresults.go of the component Output. Executing a manipulation of the argument outputFile can lead to permission issues. The attack requires local access. Upgrading to version 4.0.16 is recommended to address this issue. This patch is called d90f77314c7d4f2b53cf2425844bde2315bd26d2. Upgrading the affected component is advised.
Title kubescape Output printresults.go GetWriter permission
First Time appeared Kubescape
Kubescape kubescape
Weaknesses CWE-266
CWE-275
CPEs cpe:2.3:a:kubescape:kubescape:*:*:*:*:*:*:*:*
Vendors & Products Kubescape
Kubescape kubescape
References
Metrics cvssV2_0

{'score': 1.7, 'vector': 'AV:L/AC:L/Au:S/C:P/I:N/A:N/E:ND/RL:OF/RC:C'}

cvssV3_0

{'score': 2.8, 'vector': 'CVSS:3.0/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:N/A:N/E:X/RL:O/RC:C'}

cvssV3_1

{'score': 2.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:N/A:N/E:X/RL:O/RC:C'}

cvssV4_0

{'score': 2.4, 'vector': 'CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:P/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:X'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
VulDB
Published
Updated
Nov 9, 2026, 10:46 PM
Reserved
Nov 6, 2026, 9:21 AM
Status
Deferred
Published
Nov 6, 2026, 3:17 PM
Modified
Nov 9, 2026, 11:17 PM