{"id":"CVE-2026-89406","published":"2026-09-25T08:16:40.803","lastModified":"2026-09-25T14:17:21.630","description":"The Modula Image Gallery – Photo Grid & Video Gallery plugin for WordPress is vulnerable to unauthorized disclosure of private gallery contents in versions up to, and including, 3.0.1. This is due to the Modula_Meta::add_metas() function being hooked to wp_head on every frontend request and looking up any post via get_post( $_GET['modula_gallery_id'] ) without verifying the gallery's post_status or the requester's capability to read it — the gallery-side input guard is bugged (empty('modula_gallery_id') tests a nonempty string literal instead of the GET parameter, so it is always false), the only object validation is a post_type === 'modula-gallery' check, and no is_user_logged_in()/current_user_can('read_post', $gallery_id) check is performed. This makes it possible for unauthenticated attackers to enumerate private modula-gallery posts and their member attachments and recover the image's title, description, dimensions, and original upload URL via Open Graph/Twitter meta tags emitted in the response, which then allows direct unauthenticated download of the original private image bytes.","cvssScore":7.5,"cvssSeverity":"HIGH","cvssVector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","cwes":["CWE-862"],"vendors":[],"products":[],"references":[{"url":"https://plugins.trac.wordpress.org/browser/modula-best-grid-gallery/tags/3.0.1/includes/public/meta/class-modula-meta.php#L142","tags":[]},{"url":"https://plugins.trac.wordpress.org/browser/modula-best-grid-gallery/tags/3.0.1/includes/public/meta/class-modula-meta.php#L26","tags":[]},{"url":"https://plugins.trac.wordpress.org/browser/modula-best-grid-gallery/tags/3.0.1/includes/public/meta/class-modula-meta.php#L50","tags":[]},{"url":"https://plugins.trac.wordpress.org/browser/modula-best-grid-gallery/tags/3.0.1/includes/public/meta/social_meta.php#L8","tags":[]},{"url":"https://plugins.trac.wordpress.org/changeset?reponame=&old=3697043%40modula-best-grid-gallery&new=3697043%40modula-best-grid-gallery","tags":[]},{"url":"https://www.wordfence.com/threat-intel/vulnerabilities/id/a369dff6-feca-47cf-8511-dc75c4ffdd29?source=cve","tags":[]}],"exploitRefs":[],"hasPoc":false,"ai":{"summary":"The Modula Image Gallery plugin fails to properly validate access to private galleries, allowing unauthenticated users to enumerate and access private gallery contents through metadata exposure in HTML headers. This vulnerability stems from a flawed input validation check that always returns false, bypassing necessary capability checks and post status validations.","exploitability":"Exploitation is straightforward with no prerequisites; attackers only need to know the gallery ID parameter to access private gallery data via Open Graph meta tags.","blast_radius":"The impact could be significant for sites with private galleries containing sensitive images, as attackers can recover image metadata and directly download original private image files without authentication.","remediation":"Upgrade to version 3.0.2 or later which fixes the input validation bug in Modula_Meta::add_metas() function.","detection":"No reliable host or network indicator is derivable from the published description.","tags":["privilege-escalation","metadata-exposure","wp-plugin","access-control"],"model":"garnet-coder","analyzedAt":"2026-10-18T10:33:49.906Z"}}