Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2025-12833 Overview
CVE-2025-12833 affects the GeoDirectory – WP Business Directory Plugin and Classified Listings Directory plugin for WordPress. The vulnerability exists in all versions up to and including 2.8.139. The flaw resides in the post_attachment_upload function, which fails to validate a user-controlled key. Authenticated attackers with author-level access or higher can attach arbitrary image files to arbitrary posts. The issue is classified as an Insecure Direct Object Reference [CWE-639].
Critical Impact
Authenticated users with author-level privileges can attach arbitrary image files to posts they do not own, enabling content manipulation across the WordPress site.
Affected Products
- GeoDirectory – WP Business Directory Plugin for WordPress (versions ≤ 2.8.139)
- WP Classified Listings Directory functionality bundled in GeoDirectory
- WordPress sites using GeoDirectory with author-level or higher user registration
Discovery Timeline
- 2025-11-12 - CVE-2025-12833 published to the National Vulnerability Database (NVD)
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2025-12833
Vulnerability Analysis
The vulnerability stems from missing authorization validation in the post_attachment_upload function. The function accepts a post identifier as a user-controlled parameter without verifying that the requesting user owns or has rights to modify the referenced post. Authenticated attackers with author-level access can supply an arbitrary post ID and attach image files to any post on the site. This breaks the WordPress ownership model where authors should only manage their own content.
The attack requires low complexity and no user interaction, but the impact is limited to integrity of attached media. Confidentiality and availability are not directly affected. The exploitation path targets business directory listings, classified ads, and any post handled by the plugin's upload workflow.
Root Cause
The root cause is missing object-level authorization on a user-supplied identifier passed to post_attachment_upload. The function assumes the caller is authorized to modify the target post based only on authentication state, not on ownership or capability checks tied to the specific object. This is a textbook Insecure Direct Object Reference pattern [CWE-639].
Attack Vector
An authenticated attacker with author-level access sends a crafted upload request referencing a post ID belonging to another author or administrator. The plugin processes the upload and attaches the file to the specified target post without validating ownership.
// Patch from assets/js/geodirectory-plupload.js
// Extra validation for post attachment upload - FIXED
jQuery('#' + imgId + 'upload-error').html(msgErr);
} else {
- jQuery('#' + imgId + 'upload-error').addClass('upload-error');
- jQuery('#' + imgId + 'upload-error').html(files.message);
+ if (files.fileElement && jQuery(files.fileElement).length) {
+ jQuery(files.fileElement).html(files.message);
+ } else {
+ jQuery('#' + imgId + 'upload-error').removeClass('d-none').addClass('d-block');
+ jQuery('#' + imgId + 'upload-error').html(files.message);
+ }
}
});
Source: GitHub Commit db655b0
Detect Identity Attacks the Moment Authentication Fails
Singularity™ Identity surfaces credential misuse, lateral movement, and privilege escalation in real time, so you can contain the breach before it spreads.
Stop Identity AttacksDetection Methods for CVE-2025-12833
Indicators of Compromise
- Unexpected image attachments appearing on posts owned by administrators or other authors
- WordPress media library entries with mismatched author and parent post ownership
- Access log entries showing POST requests to GeoDirectory upload endpoints from author-role accounts targeting foreign post IDs
- New attachments referencing GeoDirectory listings the uploading user did not create
Detection Strategies
- Audit the wp_posts and wp_postmeta tables for attachments whose post_author differs from the parent post's post_author
- Monitor HTTP request patterns targeting the post_attachment_upload handler with post ID parameters not owned by the requesting user
- Review GeoDirectory plugin logs and WordPress audit logs for upload activity from author-role accounts
Monitoring Recommendations
- Enable WordPress audit logging for media uploads and attachment metadata changes
- Alert on any author-role account performing uploads that reference post IDs outside their authored content set
- Track plugin version inventory across WordPress deployments to identify sites running GeoDirectory 2.8.139 or earlier
How to Mitigate CVE-2025-12833
Immediate Actions Required
- Update the GeoDirectory plugin to the patched version released after 2.8.139
- Review author-level user accounts and disable any that are inactive or unnecessary
- Audit existing post attachments for evidence of unauthorized cross-author uploads
- Rotate credentials for author-level accounts if compromise is suspected
Patch Information
The vendor addressed the issue in commit db655b0, which adds validation to the post attachment upload workflow. The corresponding update is tracked in the WordPress plugin changeset and detailed in the Wordfence Vulnerability Report. Install the latest release from the GeoDirectory WordPress Plugin page.
Workarounds
- Restrict user registration to prevent untrusted users from obtaining author-level access
- Downgrade existing author accounts to contributor role until the patch is applied
- Deploy a web application firewall rule to block upload requests where the target post ID does not match the requesting user's authored content
- Temporarily disable the GeoDirectory plugin on sites that cannot immediately update
# Verify installed GeoDirectory plugin version
wp plugin get geodirectory --field=version
# Update GeoDirectory to the latest patched release
wp plugin update geodirectory
# List all author-role users for review
wp user list --role=author --fields=ID,user_login,user_email,user_registered
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

