/

CVE-2024-58388

Severity:

HIGH RISK

(7.5)

Path Traversal (CWE-22) in Sharp Multifunction Printers

CVE-2024-58388

Awaiting Analysis

Vulnerability type

Category:

Path Traversal

CWE:

CWE-22

Impact:

Arbitrary File Read and Sensitive Information Disclosure

Severity:

HIGH RISK

(7.5)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

Sharp and Toshiba Tec rebranded multifunction printers may expose an unauthenticated local file inclusion flaw in the installed_emanual_down.html endpoint. A remote attacker who can reach the affected web interface could manipulate a path parameter to read files outside the intended manual directory, potentially exposing credentials and system configuration data.

Affected context

The vulnerability occurs in multifunction printer web interfaces that serve electronic manual content through the installed_emanual_down.html endpoint. Risk is present where the endpoint accepts user-controlled path values without sufficiently restricting them to the intended manual directory, and where the device's network exposure permits unauthenticated remote requests.

Exploit preconditions

  • Attack surface: Network-accessible printer web interface
  • Required access: Ability to send requests to the affected endpoint; authentication may not be required
  • Trigger point: Processing of the path parameter by installed_emanual_down.html
  • Why exploitation is possible: Directory traversal input may cause the application to resolve paths outside the expected manual directory and return their contents

Why this happens

The underlying bug is insufficient canonicalization and boundary validation of a user-controlled file path. When path input is combined with a trusted document directory without reliably resolving and restricting the resulting path, traversal sequences can escape the intended directory. This behavior maps to CWE-22: Improper Limitation of a Pathname to a Restricted Directory, commonly known as path traversal.

Potential impact

  • Attackers may read sensitive operating system and application files
  • Device credentials or authentication material could be disclosed
  • Coredump contents may expose secrets or internal state
  • System configuration data could assist further attacks
  • Exposed files may support lateral movement or device compromise

General mitigation guidance

Mitigation generally focuses on removing direct trust in user-supplied filesystem paths and enforcing a strict document-serving boundary.

Common defensive patterns include:

  • Mapping approved document identifiers to fixed server-side files instead of accepting filesystem paths
  • Canonicalizing candidate paths before authorization checks
  • Verifying that resolved paths remain within an intended, dedicated document directory
  • Rejecting traversal sequences, absolute paths, symbolic-link escapes, and unexpected encodings
  • Requiring authentication and limiting network access to printer administration interfaces where feasible
  • Running services with least-privilege filesystem permissions and minimizing sensitive files accessible to the process
  • Avoiding storage of credentials and other secrets in readable coredumps or configuration locations

How teams detect issues like this

Organizations can look for path traversal risks through:

  • Static analysis rules identifying filesystem APIs that consume request parameters
  • Code review checks for canonicalization performed after, rather than before, authorization
  • Tests using encoded, nested, absolute, and symbolic-link path variants
  • Web-server and device logs containing repeated traversal markers or unusual manual-download requests
  • Network monitoring for unauthenticated access to administrative or document-serving endpoints
  • Policy enforcement requiring allowlisted resource identifiers for file download functionality

Automated application security testing and code review tools may help identify unsafe path handling patterns.

Sources

SourceLink
github.comgithub.com/projectdiscovery/nuclei-templates/blob/main/http/vulnerabilities/other/crocus-lfi.yaml
pierrekim.github.iopierrekim.github.io/blog/2024-06-27-sharp-mfp-17-vulnerabilities.html#pre-auth-lfi
vulncheck.comvulncheck.com/advisories/sharp-multifunction-printers-local-file-inclusion-via-installed-emanual-down-html

Frequently asked

questions

It may be remotely exploitable when the printer's web interface is reachable by an attacker and the affected endpoint accepts unauthenticated requests.

The key requirement is network access to the vulnerable endpoint. The described behavior does not require valid credentials, although network segmentation or interface restrictions may limit exposure.

Replace user-controlled filesystem paths with server-side allowlisted resource identifiers, and verify that any resolved path remains within the intended document directory.

Apply canonicalization before authorization, reject traversal and encoding variants, minimize service filesystem privileges, and include path-boundary tests in code review and security testing.

Find out what's already
exploitable in your codebase.