Skip to main content

imagor CVE-2026-138335

| EUVDEUVD-2026-137906 MEDIUM
Path Traversal (CWE-22)
2026-11-30 cna@vuldb.com GHSA-5pgw-fvjp-9vpf
5.5
CVSS 4.0 · Vendor: vuldb
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Send crafted storage key to imagor endpoint
  2. Exploit
    Dot/backslash segments bypass blacklist config
  3. Execution
    filepath.Join resolves outside BaseDir
  4. Impact
    Read or write files beyond storage directory

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK

2 techniques across 2 tactics: Discovery, Collection

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires an imagor file-storage deployment (storage/filestorage) in a configuration where the default dot-segment/dot-file blacklist does NOT block traversal: specifically a no-op SafeChars setting (WithSafeChars("--")), a Blacklists field set to nil/empty (e.g., struct-literal construction or an overriding consumer), or a Windows host where backslash separators reach filepath.Join without being escaped. Under the DEFAULT configuration the built-in dot-file blacklist rejects dot-segment keys, so default deployments are not exploitable - this is the primary limiting factor on real-world risk. Affected versions: imagor ≤1.9.12; fixed in 1.9.13. No user interaction or authentication is required once a vulnerable storage configuration is in place.

Impact

This is a medium-severity path traversal (CWE-22) with a VulDB-assigned CVSS 4.0 base score of 5.5. The vector (AV:N/AC:L/PR:N/UI:N) nominally describes remote, unauthenticated exploitation against default configurations, and the E:P exploit-maturity metric asserts Proof-of-Concept maturity. However, the supplied source-code evidence materially tempers that reading: the fix's own test suite (TestFileStoragePathRejectsDotTraversalUnderDefaults) and code comments show the built-in dot-segment/dot-file blacklist already rejects relative traversal keys under the DEFAULT configuration, and that the escape is reachable only when that blacklist is disabled or bypassed - a no-op SafeChars config (WithSafeChars("--")), an empty/nil Blacklists field, or a Windows host where backslash separators reach filepath.Join un-escaped. So the base vector's PR:N/AC:L overstates real-world reachability for default deployments. Impact is uniformly Low (VC:L/VI:L/VA:L): file read and write can escape the base directory but are not rated as full compromise. There is no CISA KEV listing and no EPSS score in the provided data (EPSS MISSING - cannot quantify exploitation probability). The vuln.today decision label is 'this_month', not act_now or emergency. Net: a genuine but moderate-priority flaw whose real risk hinges on a non-default configuration or Windows deployment rather than the ubiquitous unauthenticated-RCE profile a PR:N/AV:N vector might suggest.

Exploit ScenarioDerived

An attacker sends a crafted storage key/URL (e.g., containing '../' or, on Windows, '..\') to an imagor instance whose file storage runs without the default dot-segment blacklist - for example with WithSafeChars("--"), nil Blacklists, or on a Windows host. The pre-patch Path() function calls filepath.Join(BaseDir, key) with no containment check, so the resolved path escapes BaseDir, permitting read or write of files outside the configured storage directory. No public working exploit code is identified in the sources, though the CVSS 4.0 vector asserts Proof-of-Concept exploit maturity (E:P).

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.7% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 30, 2026

Path traversal in the file-storage backend of cshum imagor (storage/filestorage) through version 1.9.12 allows remote, unauthenticated attackers to supply an image key that resolves outside the configured base directory, giving read and write access to files beyond that root. The flaw is only reachable when the deployment weakens or removes the built-in dot-segment blacklist - a no-op SafeChars setting such as WithSafeChars("--"), a nil or empty Blacklists field (struct-literal construction or an overriding consumer), or a Windows host where backslash separators reach filepath.Join unescaped - so default configurations are not exploitable, which is the main limit on real-world risk. Upgrading to 1.9.13 fixes the issue; no public exploit code has been identified at time of analysis and the CVE is not in CISA KEV, with a VulDB CVSS 4.0 base score of 5.5 against an independently assessed CVSS 3.1 vector of AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N.

RemediationAI

Vendor-released patch: imagor 1.9.13 (https://github.com/cshum/imagor/releases/tag/v1.9.13), which contains commit ee774fc7cab381b21f75055686489046741fa3a7 adding the confineJoin/withinBase containment check to storage/filestorage/filestorage.go; upgrade to that version or later via the Go module github.com/cshum/imagor. If the upgrade cannot be applied immediately, the exposure can be closed by restoring the configuration the fix protects against rather than by generic hardening: keep the built-in dot-file blacklist in place and do not construct FileStorage as a struct literal with a nil Blacklists field or otherwise override Blacklists to empty, since that removes the only line of defense on unfixed versions; avoid the no-op WithSafeChars("--") setting, which stops Normalize from escaping backslash separators and leaves dot segments intact; and avoid running the filestorage backend on Windows hosts until patched, because backslash separators become path separators once they reach filepath.Join. Each of these mitigations carries a functional trade-off - the default blacklist also rejects legitimate keys containing dot-prefixed files such as .git/config, and restricting SafeChars to a real character set can alter how existing image URLs are normalised - so they should be validated against the keys your deployment actually serves. Apply the upstream fix as the complete remedy, since the containment check is the only measure that holds independently of blacklist settings.

Affected VersionsENISA

imagor 1.9.3
imagor 1.9.7
imagor 1.9.11
imagor 1.9.5
imagor 1.9.10
imagor 1.9.12
imagor 1.9.6
imagor 1.9.8
imagor 1.9.2
imagor 1.9.9
imagor 1.9.1
imagor 1.9.4
imagor 1.9.0

Affected Packages

euvd imagor no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

imagor is a Go image-processing and thumbnail service that loads and stores blobs through pluggable storage backends; the filestorage backend maps an incoming image key to a filesystem location in FileStorage.Path by trimming the configured PathPrefix and joining the remainder onto BaseDir with filepath.Join. Before the fix, that join result was returned unconditionally, so a key containing dot segments (e.g. ../../../../etc/passwd) could lexically escape the base directory - a classic CWE-22 path traversal rooted in missing canonicalisation and containment validation rather than in any parsing bug. The upstream commit ee774fc7cab381b21f75055686489046741fa3a7 introduces confineJoin and withinBase helpers that resolve the joined path with filepath.Rel against the cleaned base directory and reject any result equal to '..' or prefixed with '..'+separator, returning an empty path so Put fails with imagor.ErrInvalid. The vendor's added tests enumerate the adversarial keys (../../../../etc/passwd, ../foo/../../bar, a/../../.., ....//....//escaped, a\..\..\evil, ..\..\evil, /../../etc/passwd) across three configurations: defaults, WithSafeChars("--") and a nil Blacklists field. Two nuances matter for scoping: the built-in dot-file blacklist is the primary defense in the default configuration and rejects any key containing dot segments, and backslash separators only become path separators once they reach filepath.Join on Windows, because Normalize escapes them only when SafeChars is not the no-op "--" setting. Absolute keys are clamped by imagorpath.Normalize onto a pseudo root and therefore remain accepted, but the fix keeps them confined to the base directory. This is not a race or timing issue; the trigger is simply an attacker-chosen image key reaching FileStorage.Path, and the same containment gap applies to the write primitive exercised by Put.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (vuldb) PRIMARY 5.5 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P
vuln.today AI 4.8 MEDIUM

Remotely reachable (AV:N) but blocked under default config and exploitable only via non-default blacklist settings or Windows backslash handling, so AC:H; traversal allows limited file read and write, giving C:L/I:L and A:N.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (vuldb).

CVSS VectorVendor: vuldb

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

A flaw has been found in cshum imagor up to 1.9.12. Affected is the function Path of the file storage/filestorage/filestorage.go. This manipulation causes path traversal. The attack is possible to be carried out remotely. Upgrading to version 1.9.13 is able to address this issue. Patch name: ee774fc7cab381b21f75055686489046741fa3a7. The affected component should be upgraded.

Threat Intelligence Overview

EPSS Score
0.7%
Top 49% exploitable
Prevalence
Low
niche self-hosted Go image-processing server, limited enterprise footprint
Social Media
1
Sightings
Data Quality
7 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.7%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact· derived
Medium

Priority Score

29
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +28
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy