The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-25057

CVE-2026-25057: MarkUs Path Traversal Vulnerability

CVE-2026-25057 is a path traversal flaw in MarkUs that allows instructors to write files to arbitrary disk locations via malicious zip uploads. This article covers the technical details, affected versions, and mitigation.

Published: February 13, 2026

CVE-2026-25057 Overview

CVE-2026-25057 is a critical path traversal vulnerability affecting MarkUs, a web application designed for the submission and grading of student assignments. The vulnerability exists in the assignment configuration upload functionality (courses/<:course_id>/assignments/upload_config_files) where instructors can upload zip files to create assignments from exported configurations. The zip file entry names are used to construct file paths without proper validation, allowing authenticated instructors to write files to arbitrary locations on the server filesystem.

Critical Impact

Authenticated instructors with access to the assignment configuration upload feature can exploit this vulnerability to write arbitrary files outside the intended directory, potentially leading to remote code execution, configuration tampering, or complete server compromise.

Affected Products

  • MarkUs versions prior to 2.9.1

Discovery Timeline

  • 2026-02-09 - CVE CVE-2026-25057 published to NVD
  • 2026-02-09 - Last updated in NVD database

Technical Details for CVE-2026-25057

Vulnerability Analysis

This vulnerability is classified as CWE-23 (Relative Path Traversal). The flaw resides in the assignments_controller.rb file within the MarkUs application, specifically in the code handling zip file extraction for automated test configurations. When an instructor uploads a zip file containing assignment configuration, the application iterates through zip file entries and constructs destination paths by directly joining the entry names with the target directory without validating whether the resulting path remains within the intended directory boundary.

An attacker with instructor privileges can craft a malicious zip file containing entries with path traversal sequences (e.g., ../../../etc/cron.d/malicious) to escape the designated autotest_files_dir directory and write files to arbitrary locations on the server. This can result in remote code execution if the attacker writes executable scripts to locations that are subsequently processed by the system.

Root Cause

The root cause is insufficient input validation when processing zip file entry names. The original code used File.join() to combine the autotest files directory with the filename extracted from the zip entry without canonicalizing or validating the resulting path. This allowed directory traversal sequences (../) embedded in zip entry names to escape the intended destination directory and write files elsewhere on the filesystem.

Attack Vector

The attack requires network access and high privileges (instructor role). An authenticated instructor can exploit this vulnerability by:

  1. Creating a malicious zip file with entries containing path traversal sequences in their filenames
  2. Uploading this zip file through the assignment configuration upload endpoint
  3. The server extracts the zip entries, writing files to attacker-controlled paths outside the intended directory

The vulnerability enables cross-scope impact, meaning a compromised instructor account can affect resources beyond the application boundary, including system files and configurations.

ruby
# Vulnerable code pattern (before patch)
zip_file.glob(test_file_glob_pattern) do |entry|
  zip_file_path = Pathname.new(entry.name)
  filename = zip_file_path.relative_path_from(CONFIG_FILES[:automated_tests_dir_entry])
  file_path = File.join(assignment.autotest_files_dir, filename.to_s)
  # No validation that file_path stays within autotest_files_dir
  if entry.directory?
    FileUtils.mkdir_p(file_path)
  else
    FileUtils.mkdir_p(File.dirname(file_path))
    test_file_content = entry.get_input_stream.read
    File.write(file_path, test_file_content, mode: 'wb')
  end
end

The patched code (commit 0ca002a1f0071c7a00dbb2ed34fede57323c5dc7) adds proper path canonicalization using File.expand_path() and validates that the resulting path starts with the intended directory:

ruby
       zip_file.glob(test_file_glob_pattern) do |entry|
         zip_file_path = Pathname.new(entry.name)
         filename = zip_file_path.relative_path_from(CONFIG_FILES[:automated_tests_dir_entry])
-        file_path = File.join(assignment.autotest_files_dir, filename.to_s)
+        file_path = File.expand_path(File.join(assignment.autotest_files_dir, filename.to_s))
+
+        unless file_path.start_with?(File.expand_path(assignment.autotest_files_dir))
+          raise I18n.t('errors.invalid_zip_entry', entry_name: filename.to_s)
+        end
+
         if entry.directory?
           FileUtils.mkdir_p(file_path)
         else
           FileUtils.mkdir_p(File.dirname(file_path))
-          test_file_content = entry.get_input_stream.read
-          File.write(file_path, test_file_content, mode: 'wb')
+          # Extract the entry to file_path. destination_directory is '/' because file_path is an absolute path
+          entry.extract(file_path, destination_directory: '/')
         end
       end
     end

Source: GitHub Commit Changes

Detection Methods for CVE-2026-25057

Indicators of Compromise

  • Unexpected files appearing outside the MarkUs autotest_files_dir directory following assignment configuration uploads
  • Web server logs showing POST requests to /courses/<course_id>/assignments/upload_config_files with unusually large or suspicious zip files
  • New cron jobs, scripts, or configuration files created by the web server process user
  • File system modifications in sensitive directories (e.g., /etc, /var, application directories) with timestamps correlating to instructor zip uploads

Detection Strategies

  • Implement file integrity monitoring (FIM) on critical system directories to detect unauthorized file creation or modification
  • Monitor web application logs for requests to the upload_config_files endpoint and correlate with file system activity outside expected directories
  • Configure WAF rules to inspect uploaded zip files for path traversal patterns in entry names
  • Deploy endpoint detection to alert on the web server process writing files outside application-designated directories

Monitoring Recommendations

  • Enable verbose logging for the MarkUs application to capture all file operations during zip extraction
  • Implement audit logging on the server to track all file creation events by the web application user
  • Set up alerts for any errors related to "invalid_zip_entry" which indicates the patched version blocking traversal attempts
  • Monitor for anomalous instructor account activity, particularly around assignment configuration uploads

How to Mitigate CVE-2026-25057

Immediate Actions Required

  • Upgrade MarkUs to version 2.9.1 or later immediately
  • Review file system for any unauthorized files that may have been written outside the autotest_files_dir directory
  • Audit instructor account activity logs for suspicious configuration upload activity
  • If upgrade is not immediately possible, consider temporarily disabling the assignment configuration upload feature

Patch Information

The vulnerability is fixed in MarkUs version 2.9.1. The patch implements proper path canonicalization using File.expand_path() and validates that extracted file paths remain within the designated autotest_files_dir directory. Organizations should upgrade to version 2.9.1 or later as documented in the GitHub Release v2.9.1. Additional details are available in the GitHub Security Advisory GHSA-mccg-p332-252h.

Workarounds

  • Restrict access to the assignment configuration upload feature to only trusted administrators until the patch can be applied
  • Implement network-level access controls to limit which IP addresses can access instructor-level functionality
  • Deploy a web application firewall (WAF) with rules to detect and block zip files containing path traversal sequences
  • Run the MarkUs application in a containerized or sandboxed environment to limit the impact of file write operations outside the application directory
bash
# Example: Check MarkUs version to verify patch status
grep -r "VERSION" /path/to/markus/config/ || cat /path/to/markus/VERSION

# Verify no unauthorized files exist outside autotest directories
find /var/www/markus -name "*.rb" -newer /var/www/markus/config/application.rb -ls

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypePath Traversal

  • Vendor/TechMarkus

  • SeverityCRITICAL

  • CVSS Score9.1

  • EPSS Probability0.04%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-23
  • Technical References
  • GitHub Commit Changes

  • GitHub Release v2.9.1

  • GitHub Security Advisory GHSA-mccg-p332-252h
  • Related CVEs
  • CVE-2026-27807: Markusproject Markus XXE Vulnerability

  • CVE-2026-28405: MarkUs Web Application XSS Vulnerability

  • CVE-2026-24900: MarkUs Information Disclosure Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English