⚠️

سلب مسئولیت و اخلاق حرفه‌ای

این مطالب صرفاً برای اهداف آموزشی، پژوهشی و افزایش آگاهی امنیتی ارائه شده‌اند. هرگونه استفاده غیرمجاز، غیرقانونی یا سوءاستفاده از اطلاعات، ابزارها و روش‌های مطرح‌شده، کاملاً بر عهده مخاطب است. نویسنده و منتشرکننده هیچ مسئولیتی در قبال خسارات، آسیب‌ها یا پیامدهای ناشی از استفاده نادرست از این مطالب نخواهند داشت.

CVE-2026-138335: Path Traversal in cshum imagor File Storage | Alireza Bolbolabadi - Red Team Security
LOADING

CVE-2026-138335: Path Traversal in cshum imagor File Storage

Executive summary

CVE-2026-138335 is a network-reachable path traversal vulnerability in the Go-based image processing server cshum imagor. The flaw is associated with the Path function in storage/filestorage/filestorage.go, where unsafe path handling may permit requests to escape the intended file storage directory.

The linked record assigns CVSS 7.3 and describes the issue as remotely exploitable. However, the available context does not document known exploitation, inclusion in the CISA KEV catalog, or a public proof of concept. The exact request format and authentication requirements also remain unspecified, which limits certainty about exposure in individual deployments.

The advisory identifies cshum imagor 1.9.13 as the fixed release and references patch commit ee774fc7cab381b21f75055686489046741fa3a7.

Affected systems

The NVD entry states that the vulnerability affects cshum imagor up to 1.9.12. The linked version list includes releases 1.9.0 through 1.9.13 because the version metadata was published alongside the release carrying the fix.

Deployments should be treated as potentially affected when they:

  • Run cshum imagor before 1.9.13.

  • Expose an imagor instance to untrusted or partially trusted network clients.

  • Use the file storage backend and pass caller-controlled input into the affected storage path resolution.

The advisory identifies the vulnerable component as the Path function in storage/filestorage/filestorage.go.

Technical analysis

The weakness is improper validation of path components within imagor's file storage layer. When the affected function resolves a storage path, relative path elements are not sufficiently constrained. A crafted request containing directory-traversal sequences could therefore cause the backend to calculate a location outside the configured storage root.

This is a path traversal condition rather than a memory-safety failure. Its practical effect depends on how imagor is deployed, which storage backend is configured, and what files are reachable from the storage directory or its parents. Path traversal can expose files that the service account can read and, where write operations are supported, may also affect files outside the intended directory.

The issue is classified as network-exploitable, but the supplied context does not provide the full CVSS vector, authentication requirements, or exact request parameters. It also does not establish whether traversal works for read access, write access, or both. These details should not be inferred from the short advisory text.

Real-world risk assessment

The underlying attack class is well established and generally requires little technical sophistication once the relevant request format is understood. The affected file storage functionality is a core component rather than an isolated administrative feature, making the attack surface relevant to exposed image-processing deployments.

Despite the high CVSS score, the available intelligence does not show active exploitation. There is no CISA KEV listing, no reported exploitation campaign, and no reference to weaponized tooling or a public proof of concept in the provided material. For that reason, the real-world risk is assessed as medium rather than high: the vulnerability has a credible remote attack path, but evidence of active exploitation and deployment-specific reachability is absent.

Mitigation

Upgrade cshum imagor to version 1.9.13, the release identified by the advisory as fixing the issue. Source-based deployments can use commit ee774fc7cab381b21f75055686489046741fa3a7 as the reference point for verifying that the correction is present.

When an immediate upgrade is not possible, reduce exposure by limiting network access to trusted upstream clients. A reverse proxy or web application firewall can temporarily reject requests containing traversal sequences such as ../ and common encoded variants, although filtering alone may not cover every encoding or normalization method. Storage roots should be isolated from sensitive files, and the service account should have only the permissions required for its intended operation.

For detection, review HTTP access logs and application logs for traversal patterns and for responses referring to locations outside the configured storage root. Because the context does not provide a distinctive payload, this activity should be evaluated as generic path-traversal hunting rather than as a signature for a known exploit.

Expert insight

The key issue is not merely that a path contains unusual characters, but that the application fails to enforce the storage root as a security boundary after resolving caller-influenced components. Durable remediation therefore depends on canonical path validation and containment checks inside the storage layer, rather than on perimeter filtering alone.

The fix release and named commit provide a concrete upgrade path, but the terse advisory leaves important validation questions unanswered: whether authentication is required, which request fields influence the path, whether reads and writes are both affected, and how alternate storage backends behave. Security teams should verify these points in a controlled environment and confirm the deployed build contains the upstream correction.

Actionable recommendations

  1. Upgrade cshum imagor to version 1.9.13.

  1. Verify that source-based deployments include patch ee774fc7cab381b21f75055686489046741fa3a7.

  1. Inventory internet-facing and internal imagor instances, prioritizing those that use file storage with untrusted request sources.

  1. Review access logs for traversal sequences and references to paths outside the configured storage root.

  1. Apply temporary network restrictions or proxy filtering where the upgrade cannot be completed promptly.

  1. Ensure the storage directory is isolated from sensitive data and runs with least-privilege filesystem permissions.

  1. Test the corrected build to confirm that normalized traversal inputs cannot resolve outside the configured root.

منابع

·
← اخبار