CVE-2026-104784e107inc/e107 Path Traversal
NVD
Vulnerability Summary
Summary `e107_images/thumb.php`, the thumbnailer from e107 0.8, takes its source from a positional query string and accepted an absolute path or a source carrying any URL scheme verbatim, as a documented feature of its grammar. With the `noscale` model and a source no larger than the requested size, it did not resize at all: it sent the file with `readfile()`. A visitor with no account could therefore read any image-named file on the volume byte for byte, and on a server with `allow_url_fopen` enabled make the site fetch a URL of their choosing. Nothing in e107 links this endpoint, but upgrades never delete a file, so it was present on every site upgraded from an older release and on every fresh install. One vulnerability The file read and the URL fetch are the same decision, taking the source exactly as the caller wrote it, made on the same lines and closed by the same change. This was first described in an August 2026 amendment to GHSA-87hm-vh32-7c3r. It is a different endpoint from the download handler that advisory covers, with its own fix, so it is published on its own. Details The report, and therefore the fix, was scoped to the download handler. `e_file::send()` is the chokepoint for that route, and it was fixed properly: `isAbsolutePath()` (`e107_handlers/file_class.php#L652`), `isSafeRelativePath()` (`#L678`), `getSendRoots()` (`#L724`) and `resolveSendPath()` (`#L759`) were added and are consumed by `send()` at `#L1419`, and the by-name branches of `request.php` became database lookups. e107 ships two other unauthenticated entry points that read a caller-named path off disk and return its contents. Neither goes through `e_file::send()`, so neither was touched. The 0.8 thumbnailer This one contained the read primitive undisguised. Its entry point takes a positional query string, `?<path>+<size>+<model>`: ```php // e107_images/thumb.php:36-44 @ v2.3.10 $tmp = explode('+',rawurldecode(e_QUERY)); if(strpos($tmp[0], '/') === 0 || strpos($tmp[0], ":") >= 1) { $source = $tmp[0]; // Full path to image specified } else { $source = "../".str_replace('../','',$tmp[0]); } ``` - https://github.com/e107inc/e107/blob/v2.3.10/e107_images/thumb.php#L37 An absolute path and a source carrying any scheme are both taken verbatim, by design, as a documented feature of the 0.8 grammar. The source is then handed to `resize_image($source, 'stdout', $newsize, $opts)` at `#L58`, with `$opts` taken straight from the third `+`-separated field at `#L57`. And when the model is `noscale` and the source is not larger than the requested size, `resize_image()` does not resize anything. It reads the file and sends it: ```php // e107_handlers/resize_handler.php:120-131 @ v2.3.10 case 'noscale' : // No scaling of small images- just want destination to be the same as source if ($destination_file == 'stdout') { if (($result = mimeFromFilename($source_file)) === FALSE) { return FALSE; } header($result); if (eShims::readfile($source_file) === FALSE) { return FALSE; } } ``` - https://github.com/e107inc/e107/blob/v2.3.10/e107_handlers/resize_handler.php#L120-L131 So `e107_images/thumb.php?/absolute/path/to/file.jpg+4000+noscale` is a bare `readfile()` of a path on the volume, unauthenticated, with no image processing between the request and the response. Two conditions narrow it: the filename must end in one of `jpg`, `jpeg`, `pjpeg`, `png`, `gif` or `bmp` (`resize_handler.php#L24-L37`), and `getimagesize()` must succeed on it (`#L89`). It is therefore a verbatim read of image files rather than of arbitrary files. The scheme acceptance is a second problem in the same three lines: a source such as `http://127.0.0.1:8080/x.jpg` reaches `getimagesize()` and, on the `noscale` branch, `readfile()`, both of which fetch when `allow_url_fopen` is enabled. `e107_images/thumb.php` is byte-identical between `v2.3.10` and the unreleased `master`. Also the trigger for the command-injection chain The same endpoint passes its source to `resize_image()` with the `stdout` destination, which is the call that runs the ImageMagick command line. On 2.3.10 that made it the anonymous trigger for the command injection in GHSA-3j33-c9v4-4p42, reached without an account through GHSA-376g-2pcx-p4x8 and GHSA-9747-hf3v-cvcv. Impact A visitor with no account reads, byte for byte, any file on the volume whose name ends in an image extension and which `getimagesize()` accepts. Where `allow_url_fopen` is enabled, the same request makes the site fetch an address of the caller's choosing, including one on its own network. Severity `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`, 5.3 Medium. `PR:N` because the endpoint is public. `C:L` because the read is limited to image-named files that parse as images, and the URL fetch returns only what parses as an image. Workarounds Deny web access to `e107_images/thumb.php`. Nothing in e107 emits a URL for it: the only literal occurrence of that string in the repository is the CVS `$Source:` keyword in the file's own header. Patches Fixed in e107 2.3.11. - Reduces `e107_images/thumb.php` to a translating shim. Nothing in e107 calls it, but an e107 upgrade never deletes a file, so a replacement had to ship regardless. The shim answers the published grammar by delegating a width-constrained resize in-process to the current thumbnailer, and refuses the three shapes that were the vulnerability: an absolute path, a path containing `..`, and a source carrying a scheme. The `noscale` passthrough is refused rather than emulated, because emulating it would be reimplementing the bug. - Removes the `stdout` destination from `resize_image()` entirely, together with `mimeFromFilename()`, which existed only to serve it. This also removes the anonymous trigger for GHSA-3j33-c9v4-4p42. Compatibility: - A thumbnail requested through the 0.8 endpoint comes back re-encoded by the current thumbnailer, so a JPEG is encoded at the `thumbnail_quality` preference rather than at `im_quality`. Same picture, different bytes. - The 0.8 `<model>` field is accepted and ignored. It selected between three ways of handling a source already smaller than the requested size, and one of those three was the read primitive. Related - GHSA-rfq3-mc44-648g: the current thumbnailer's missing path containment. - GHSA-3j33-c9v4-4p42 / CVE-2026-48997: the command injection this endpoint triggered. - GHSA-376g-2pcx-p4x8: the missing authentication that let a visitor with no account plant that command. - GHSA-87hm-vh32-7c3r: the download handler's path traversal, fixed in 2.3.10. Credits Found and fixed by e107help.
CVSS v3.1 Base Metrics — Score 5.3
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:NAttack VectorNetwork
Attack ComplexityLow
Privileges RequiredNone
User InteractionNone
ScopeUnchanged
ConfidentialityLow
IntegrityNone
AvailabilityNone
Affected & Patched Versions
- e107inc/e107 <= 2.3.10
- e107inc/e107 2.3.11
What to do
Fix it during your normal patch cycle. No exploitation is confirmed yet.
- Check whether you run e107inc/e107 and which version.
- Update to a patched version listed above, then confirm the new version.
Timeline
- Sep 25, 2026Published
- Sep 25, 2026Record last modified
Score, severity and exploitation changes are tracked from the day Watchtower started logging them.
Get notified about new e107inc/e107 CVEsYou are reading CVE-2026-104784. Get an email when KEV listings, exploits or new CVEs match your stack.
Set up CVE alertsExternal References
Data last checked: Nov 25, 2026 14:00 UTC