Skip to main content
Vulnerability Database/CVE-2026-112248

CVE-2026-112248: GrandNode2 Path Traversal Vulnerability

CVE-2026-112248 is a path traversal vulnerability in GrandNode2 affecting the Excel Import function, allowing remote attackers to access unauthorized files. This post explains its technical details, affected versions, and mitigation steps.

Published:

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

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-112248 Overview

CVE-2026-112248 is a path traversal vulnerability [CWE-22] affecting GrandNode grandnode2 versions up to and including 2.3.0. The flaw resides in the ProductImportDataObject.PrepareProductPictures function within the Excel Import component. Attackers can manipulate the Picture1, Picture2, or Picture3 arguments to traverse outside the intended directory structure. The vulnerability is exploitable remotely but requires high-privilege authentication. GrandNode addressed the issue in version 2.4.0 via commit 2abbaed232080ad74949c6f35581f0351e309972.

Critical Impact

Authenticated attackers with import privileges can read or write arbitrary files on the host filesystem via crafted Excel import entries, impacting confidentiality, integrity, and availability of the e-commerce platform.

Affected Products

  • GrandNode grandnode2 versions through 2.3.0
  • Component: Excel Import (ProductImportDataObject.PrepareProductPictures)
  • Fixed in: GrandNode grandnode2 version 2.4.0

Discovery Timeline

  • 2026-10-19 - CVE-2026-112248 published to NVD
  • 2026-10-19 - Last updated in NVD database
  • Patch commit - 2abbaed232080ad74949c6f35581f0351e309972 merged via Pull Request #862

Technical Details for CVE-2026-112248

Vulnerability Analysis

GrandNode is an open-source .NET-based e-commerce platform. The Excel Import functionality lets administrators bulk-upload product data, including image references via Picture1, Picture2, and Picture3 columns. The PrepareProductPictures method within ProductImportDataObject processed these picture arguments without properly validating or canonicalizing the supplied paths.

An attacker with import privileges can supply crafted values containing directory traversal sequences such as ../ to reference files outside the intended media directory. The vulnerability is categorized as a path traversal issue under [CWE-22]. Successful exploitation can lead to unauthorized file access, local file inclusion, or image replacement attacks against the application host.

Root Cause

The root cause is insufficient path sanitization when resolving image file references supplied through the Excel import pipeline. The pre-patch implementation relied on helpers such as MimeTypeExtensions.GetMimeTypeFromFilePath and local path handling without restricting imports to safe, public URL sources. The fix changes the design so import pictures are only downloaded from public addresses as real images, preventing filesystem traversal.

Attack Vector

Exploitation requires network access to the GrandNode administration interface and authenticated access with import rights. An attacker uploads a malicious Excel file in which the Picture1, Picture2, or Picture3 fields contain traversal sequences pointing to filesystem locations outside the media root. The server-side import routine resolves these paths and either reads or writes files beyond the intended scope.

text
// Patch excerpt removing the vulnerable helper
// src/Business/Grand.Business.Catalog/Extensions/MimeTypeExtensions.cs (removed)
-using Microsoft.AspNetCore.StaticFiles;
-
-namespace Grand.Business.Catalog.Extensions;
-
-public static class MimeTypeExtensions
-{
-    public static string GetMimeTypeFromFilePath(string filePath)
-    {
-        new FileExtensionContentTypeProvider().TryGetContentType(filePath, out var mimeType);
-        //set to jpeg in case mime type cannot be found
-        return mimeType ?? "image/jpeg";
-    }
-}

// src/Business/Grand.Business.Catalog/Services/ExportImport/BrandImportDataObject.cs
// Replaces local path handling with public-URL download logic
-using Grand.Business.Catalog.Extensions;
-using Grand.Business.Core.Dto;
+using Grand.Business.Core.Dto;
+using Grand.Business.Core.Utilities.System;
+using Grand.Infrastructure.Configuration;

Source: GrandNode Commit 2abbaed

Detection Methods for CVE-2026-112248

Indicators of Compromise

  • Excel import files containing ../, ..\, or absolute file paths in Picture1, Picture2, or Picture3 columns
  • Web server access logs showing POST requests to GrandNode admin import endpoints followed by unexpected file reads outside the configured media directory
  • Unusual files appearing in or disappearing from GrandNode content and media directories after an import operation

Detection Strategies

  • Review GrandNode administrator audit logs for Excel product import activity performed by non-standard accounts or at unusual times
  • Perform static inspection of staged import files for suspicious path characters in picture columns prior to processing
  • Monitor the GrandNode process for file system access patterns that deviate from the configured media root path

Monitoring Recommendations

  • Enable detailed logging on the GrandNode administration backend for all import operations, capturing the originating user and uploaded file hashes
  • Alert on write operations by the GrandNode service account outside its expected media and content directories
  • Correlate authentication events for administrator accounts with subsequent import activity to detect compromised credential usage

How to Mitigate CVE-2026-112248

Immediate Actions Required

  • Upgrade GrandNode grandnode2 to version 2.4.0 or later, which contains the patch from commit 2abbaed232080ad74949c6f35581f0351e309972
  • Restrict administrator and import privileges to the minimum set of trusted users required for business operations
  • Audit recent Excel imports performed on versions 2.3.0 and earlier for traversal sequences in picture columns

Patch Information

The fix is included in GrandNode Release 2.4.0 and tracked in GrandNode Pull Request #862. Additional context is published in the GitHub Security Advisory GHSA-8wj3-7vmm-69rj and the VulDB CVE-2026-112248 entry. The patch removes the local MimeTypeExtensions helper and restructures import flows to download pictures only from public URL addresses as real images.

Workarounds

  • If upgrading immediately is not feasible, disable the Excel product import feature or restrict it to a single hardened administrator account
  • Place the GrandNode application behind a web application firewall rule that blocks requests containing traversal sequences in multipart form data
  • Run the GrandNode process under a dedicated low-privilege service account with filesystem access limited to its application and media directories
bash
# Example: upgrade GrandNode and verify patch commit presence
git fetch --tags
git checkout 2.4.0
git log --oneline | grep 2abbaed232080ad74949c6f35581f0351e309972

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

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.