Lucene search
K

Apache Solr 6.6.x < 9.8.0 Relative Path Traversal

🗓️ 29 Sep 2025 00:00:00Reported by TenableType 
nessus
 nessus
🔗 www.tenable.com👁 8 Views

Solr 6.6–9.7 allows path traversal via configset upload; upgrade to 9.8 or restrict access.

Related
Refs
Code
#%NASL_MIN_LEVEL 80900
##
# (C) Tenable, Inc.
##

include('compat.inc');

if (description)
{
  script_id(266069);
  script_version("1.1");
  script_set_attribute(attribute:"plugin_modification_date", value:"2025/09/29");

  script_cve_id("CVE-2024-52012");

  script_name(english:"Apache Solr 6.6.x < 9.8.0 Relative Path Traversal");

  script_set_attribute(attribute:"synopsis", value:
"The remote wen server contains a Java application that is affect by a relative path traversal vlunerability.");
  script_set_attribute(attribute:"description", value:
"Relative Path Traversal vulnerability in Apache Solr. Solr instances running on Windows are vulnerable to arbitrary
filepath write-access, due to a lack of input-sanitation in the 'configset upload' API.  Commonly known as a 'zipslip',
maliciously constructed ZIP files can use relative filepaths to write data to unanticipated parts of the filesystem.
This issue affects Apache Solr: from 6.6 through 9.7.0. Users are recommended to upgrade to version 9.8.0, which fixes
the issue.  Users unable to upgrade may also safely prevent the issue by using Solr's 'Rule-Based Authentication 
Plugin' to restrict access to the configset upload API, so that it can only be accessed by a trusted set of 
administrators/users.

Note that Nessus has not tested for this issue but has instead relied only on the application's self-reported version
number.");
  script_set_attribute(attribute:"see_also", value:"https://lists.apache.org/thread/yp39pgbv4vf1746pf5yblz84lv30vfxd");
  script_set_attribute(attribute:"solution", value:
"Upgrade to Apache Solr version 9.8.0 or later.");
  script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:S/C:P/I:P/A:N");
  script_set_cvss3_base_vector("CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N");
  script_set_attribute(attribute:"cvss_score_source", value:"CVE-2024-52012");

  script_set_attribute(attribute:"vuln_publication_date", value:"2025/01/26");
  script_set_attribute(attribute:"patch_publication_date", value:"2025/01/26");
  script_set_attribute(attribute:"plugin_publication_date", value:"2025/09/29");

  script_set_attribute(attribute:"plugin_type", value:"remote");
  script_set_attribute(attribute:"cpe", value:"cpe:/a:apache:solr");
  script_end_attributes();

  script_category(ACT_GATHER_INFO);
  script_family(english:"CGI abuses");

  script_copyright(english:"This script is Copyright (C) 2025 and is owned by Tenable, Inc. or an Affiliate thereof.");

  script_dependencies("solr_detect.nbin", "os_fingerprint.nasl");
  script_require_keys("installed_sw/Apache Solr");

  exit(0);
}

include('vcf.inc');

var app = 'Apache Solr';

var app_info = vcf::combined_get_app_info(app:app);
vcf::check_granularity(app_info:app_info, sig_segments:2);

# Vulnerability only affects Windows installations
if (report_paranoia < 2) {
  var os = get_kb_item_or_exit('Host/OS');
  if('windows' >!< tolower(os))
    audit(AUDIT_OS_NOT, 'Windows');
}

var constraints = [
  { 'min_version' : '6.6', 'fixed_version' : '9.8' }
];

vcf::check_version_and_report(app_info:app_info, constraints:constraints, severity:SECURITY_WARNING);

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

29 Sep 2025 00:00Current
8High risk
Vulners AI Score8
CVSS 3.15.4
EPSS0.43312
SSVC
8