/Vulnerability Library

Directorist < 7.0.6.2 - Cross-Site Request Forgery to Arbitrary File Upload

CVE-2021-24981
Verified

Description

The Directorist plugin for WordPress before 7.0.6.2 does not verify a CSRF nonce on its front-end listing submission handler (the add_listing_action AJAX action, registered for unauthenticated users via wp_ajax_nopriv). An attacker can forge a listing submission - including file uploads - on behalf of a logged-in user, leading to arbitrary file upload and potential remote code execution. The fix adds directorist_verify_nonce() to atbdp_submit_listing(). This template detects the missing nonce check by sending a listing submission with no nonce: a vulnerable build processes it (failing later at field validation) while a patched build rejects it at the nonce gate.

Severity

High

CVSS Score

8.8

Exploit Probability

2%

Affected Product

directorist

Published Date

November 11, 2026

Template Author

dhiyaneshdk

CVE-2021-24981.yaml
8.8Score

CVSS Metrics

CVSS Vector:
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
CVE ID:
cve-2021-24981
CWE ID:
cwe-352

References

https://nvd.nist.gov/vuln/detail/CVE-2021-24981https://github.com/advisories/GHSA-g47h-745c-4p4fhttps://wpscan.com/vulnerability/4c45df6d-b3f6-49e5-8b1f-edd32a12d71c/https://plugins.trac.wordpress.org/changeset?old_path=/directorist/tags/7.0.6.1&new_path=/directorist/tags/7.0.6.2

Remediation Steps

Update Directorist to 7.0.6.2 or later, which verifies the directorist nonce before processing a listing submission.