Vulnerabilities in pkg:maven/org.apache.linkis/linkis-metadata

PACKAGE
Advisory Identifier: GHSA-6vfr-p2hx-6v32
Advisory Summary

CVE-2025-59355 is a MODERATE (CVSS 6.5) password exposure vulnerability (CWE-532: Insertion of Sensitive Information into Log File) affecting Apache Linkis libraries in the Maven ecosystem. The issue involves password exposure. Remediation is available by upgrading affected packages to version 1.8.0.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/org.apache.linkis/linkis-metadata

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:maven/org.apache.linkis/linkis-metadata. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-6vfr-p2hx-6v32 CVE-2025-59355 MODERATE Apache Linkis: Password Exposure

CVE-2025-59355 at a Glance

CVE Identifier CVE-2025-59355
GHSA Identifier GHSA-6vfr-p2hx-6v32
Severity MODERATE
CVSS v3.1 Base Score 6.5
CWE Classification CWE-532: Insertion of Sensitive Information into Log File
Affected Product Apache Linkis
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 6.5

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

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

How to Fix CVE-2025-59355

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

org.apache.linkis:linkis-metadata fixed: 1.8.0
<dependency>
    <groupId>org.apache.linkis</groupId>
    <artifactId>linkis-metadata</artifactId>
    <version>1.8.0</version>
</dependency>
Verify Direct and Transitive Dependencies

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

mvn dependency:tree -Dincludes=org.apache.linkis

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2025-59355, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=org.apache.linkis

Analyze the terminal output to locate any version of Apache Linkis in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.8.0), your application is affected.

Note: The mvn dependency:tree -Dincludes=org.apache.linkis command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-532: Insertion of Sensitive Information into Log File, where the product writes sensitive information to a log file. In Apache Linkis, 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

When org.apache.linkis.metadata.util.HiveUtils.decode() fails to perform Base64 decoding, it records the complete input parameter string in the log via logger.error(str + "decode failed", e). If the input parameter contains sensitive information such as Hive Metastore keys, plaintext passwords will be left in the log files when decoding fails, resulting in information leakage. Affected Scope Component: Sensitive fields in hive-site.xml (e.g., javax.jdo.option.ConnectionPassword) or other fields encoded in Base64. Version: Apache Linkis 1.0.0 – 1.7.0 Trigger Conditions The value of the configuration item is an invalid Base64 string. Log files are readable by users other than hive-site.xml administrators. Severity: Low The probability of Base64 decoding failure is low. The leakage is only triggered when logs at the Error level are exposed. Remediation Apache Linkis 1.8.0 and later versions have replaced the log with desensitized content. logger.error("URL decode failed: {}", e.getMessage()); // 不再输出 str Users are recommended to upgrade to version 1.8.0, which fixes the issue.

CVE-2025-59355 Affected Apache Linkis Versions

1 component(s)
Fixed Versions:
1.8.0
Product / Package Ecosystem Affected Versions Fixed Version
org.apache.linkis:linkis-metadata
Maven
≥ 1.0.0
< 1.8.0
1.8.0

References

Frequently Asked Questions

What is CVE-2025-59355?
CVE-2025-59355 is a security vulnerability in Apache Linkis involving Password Exposure under CWE-532: Insertion of Sensitive Information into Log File.
Which Apache Linkis versions are affected?
Affected versions include releases prior to 1.8.0 across affected packages: org.apache.linkis:linkis-metadata.
What version fixes CVE-2025-59355?
Upgrading to 1.8.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is linkis-metadata affected?
Yes, org.apache.linkis:linkis-metadata is affected in releases prior to 1.8.0. Upgrade your dependency to 1.8.0 or later.
What is the CVSS score of CVE-2025-59355?
CVE-2025-59355 has a CVSS v3.1 base score of 6.5 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N.
What CWE is associated with CVE-2025-59355?
CVE-2025-59355 is classified under CWE-532: Insertion of Sensitive Information into Log File (The product writes sensitive information to a log file.).
How can I check Maven dependencies for CVE-2025-59355?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.apache.linkis'. 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-6vfr-p2hx-6v32",
  "modified" : "2026-01-21T01:03:28Z",
  "published" : "2026-01-19T09:30:28Z",
  "aliases" : [ "CVE-2025-59355" ],
  "summary" : "Apache Linkis: Password Exposure",
  "details" : "When org.apache.linkis.metadata.util.HiveUtils.decode() fails to perform Base64 decoding, it records the complete input parameter string in the log via logger.error(str + \"decode failed\", e). If the input parameter contains sensitive information such as Hive Metastore keys, plaintext passwords will be left in the log files when decoding fails, resulting in information leakage.\n\n\nAffected Scope\nComponent: Sensitive fields in hive-site.xml (e.g., javax.jdo.option.ConnectionPassword) or other fields encoded in Base64.\nVersion: Apache Linkis 1.0.0 – 1.7.0\n\n\nTrigger Conditions\nThe value of the configuration item is an invalid Base64 string.\nLog files are readable by users other than hive-site.xml administrators.\n\n\nSeverity: Low\nThe probability of Base64 decoding failure is low.\nThe leakage is only triggered when logs at the Error level are exposed.\n\nRemediation\nApache Linkis 1.8.0 and later versions have replaced the log with desensitized content.\nlogger.error(\"URL decode failed: {}\", e.getMessage());   // 不再输出 str\n\n\nUsers are recommended to upgrade to version 1.8.0, which fixes the issue.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.linkis:linkis-metadata"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.0.0"
      }, {
        "fixed" : "1.8.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-59355"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/apache/linkis"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread/4dcgmqdkk2p5y4k43ok5rgd4ylx8698h"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread/75z7vhftw6w1mllndgpkfmcj0fzo4lbj"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2025/09/19/1"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-532" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-01-21T01:03:28Z",
    "nvd_published_at" : "2026-01-19T09:16:02Z"
  }
}