Vulnerabilities / Media Sync / WPSEC-2026-4565

Media Sync <= 1.5.3 - Authenticated (Author+) Limited Path Traversal via 'media_items' Parameter

Medium 6.3 CWE-22Fixed in 1.5.4
ID
WPSEC-2026-4565
Plugin
Media Sync (media-sync)
Affected
from 1.5.0 before 1.5.4
Remediation
Update to 1.5.4 or later.
CVSS 3.1
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
Weakness
CWE-22
Usage
Plugin Low · Affected versions Low among sites WPSec scans, 2026-12-03
Attack surface
Media Sync on WPSec AttackSurface
Fix released
Published

Description

The Media Sync plugin for WordPress is vulnerable to Path Traversal via the 'media_items' parameter of the media_sync_import_files AJAX action (and the 'sub_dir' scan parameter) in all versions up to, and including, 1.5.3. This is due to an incomplete path containment check in media_sync_validate_path(), which only verified that the resolved path began with the uploads directory string, with no trailing directory separator, and did not exclude other sites' upload folders on multisite. This makes it possible for authenticated attackers with Author-level access and above to import files from sibling directories that share the uploads path prefix (for example uploads-backup, or sites/20 when the subsite's uploads directory is sites/2) into the Media Library. On multisite installations, Authors on the main site can also list and import files that belong to other sites. They can also import a file that is already in the Media Library a second time by writing its path in another form, for example with "/./" or through a symlinked folder, and deleting that second attachment then deletes the original file.

References

Published by WPSec. Provided as is, without warranty. Corrections: contact us.

This advisory as JSON, OSV or Markdown · All advisories: JSON, OSV, RSS

License: CC BY 4.0