☠️
EXFILTRATING
DATA...
01010111 10110010 00101001 11000110 01101100 10011011 00010001 11100101 01000010 10101111
[ <-- BACK_TO_SEARCH ]
Givewp logo [ WEBSITE ] [ VENDOR STATS ]
CVSS: 6.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N 🐛 CWE-862
👁️
Common Weakness Enumeration - Identifies the specific category of software weakness or flaw.

CVE-2024-5940

CVE-2024-5940 Supply Chain Attack in Givewp
📅 PUBLISHED: 2024-08-20 02:03 UTC 🔄 UPDATED: 2026-08-12 14:51 UTC
[ PATCH UNDER REVIEW ↓ ] Remains UNDER REVIEW until an independent source confirms the fix
[ DEFENSE PATCH ↓ ]
💣 PoC: Public
👁️
Proof of Concept - Indicates if functional exploit code is publicly available, drastically increasing the risk of immediate attacks.
🎯 EPSS: 0.24%
👁️
0.24% probability
6.1× above the median CVE
Tier: ELEVATED
30-day exploitation window · FIRST.org · updated daily
🥷 MITRE: T1190
👁️
MITRE ATT&CK Tactic - Describes the strategy hackers use to execute this attack.
Country: USA License: Freemium
VULNERABLE: version not auto-detected — verify your deployed version locally
CVSS VECTOR BREAKDOWN 6.5
AV: N Attack Vector Network
AC: L Attack Complexity Low
PR: N Privileges Required None
UI: N User Interaction None
S: U Scope Unchanged
C: N Confidentiality None
I: L Integrity Low
A: N Availability None
6.5
THREAT LEVEL
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2024-5940 is a missing authorization vulnerability in the GiveWP – Donation Plugin and Fundraising Platform for WordPress. The flaw resides in the handle_request function, which fails to perform a capability check before processing requests. This allows unauthenticated attackers to modify event ticket settings when the Events beta feature is enabled. The vulnerability affects all versions up to and including 3.13.0. With a CVSS score of 6.5 (Medium), the primary impact is on data integrity, as an attacker can alter ticket configurations without authentication. No public proof-of-concept or exploit code has been released, and the patch status remains unknown.

⚡ AUTOMATE YOUR CVE INTELLIGENCE

This record — and 170,000+ others — are available via the ValtersIT API. One endpoint replaces five: NVD + GitHub CVE + CISA KEV + EPSS + Nuclei + Exploit-DB, unified.

›Patch confidence — UNVERIFIED to CONFIRMED, cross-referenced NVD + RHSA + Debian
›Exploit & PoC — poc_status, poc_url, has_exploit. Not in NVD.
›Shodan dorks — ready-made queries to find exposed vulnerable systems
›Detection rules — YARA · Wazuh · Elastic (all plans) · Sigma (Pro)
›pending_fields — know exactly which of 7 fields NVD hasn't processed yet
›Free backfill — data incomplete when you paid? Re-check within 30 days = 0 credits
PAYG €0.08/lookup Standard €19/mo (was €29) · 5k credits Pro €65/mo (was €99) · 20k credits FOUNDING PRICE · LOCKED FOR LIFE · ENDS 31 DEC 2026
[ FROM €19/MO ]
Free sandbox key available
No signup required

Supply Chain & Package Security

This vulnerability is specific to the WordPress plugin ecosystem. The GiveWP plugin is distributed via the official WordPress plugin repository and is also available for direct download. Organizations using this plugin should verify their version and apply any available updates immediately. Since the patch status is unknown, users must monitor the vendor’s release notes for a patched version.

CVSS Breakdown & Threat Level

  • CVSS Score: 6.5 (Medium)
  • Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
  • Attack Vector: Network
  • Attack Complexity: Low
  • Privileges Required: None
  • User Interaction: None
  • Scope: Unchanged
  • Confidentiality Impact: None
  • Integrity Impact: Low
  • Availability Impact: None

The threat level is medium due to the low integrity impact and the requirement that the Events beta feature be enabled. However, the lack of authentication makes it easily exploitable.

Deep Dive & Mechanics

The vulnerability exists in the handle_request function of the GiveWP plugin. This function is responsible for processing AJAX requests related to event ticket settings when the Events beta feature is active. The code does not include a capability check (e.g., current_user_can('manage_options')) before executing modifications. As a result, any unauthenticated user can send a crafted HTTP request to the WordPress admin-ajax endpoint with the appropriate action parameter to alter ticket settings.

The affected code path is typically triggered via wp_ajax_* and wp_ajax_nopriv_* hooks. The missing check allows an attacker to change ticket prices, availability, or other settings without authorization.

Vulnerable vs. Patched Code

Vulnerable Code (<= 3.13.0):

public function handle_request() {
    // No capability check
    $event_id = $_POST['event_id'];
    $ticket_settings = $_POST['ticket_settings'];
    update_post_meta($event_id, '_give_ticket_settings', $ticket_settings);
    wp_send_json_success();
}

Patched Code (Hypothetical):

public function handle_request() {
    if (!current_user_can('manage_options')) {
        wp_send_json_error('Unauthorized');
        return;
    }
    $event_id = $_POST['event_id'];
    $ticket_settings = $_POST['ticket_settings'];
    update_post_meta($event_id, '_give_ticket_settings', $ticket_settings);
    wp_send_json_success();
}

The patch adds a capability check using current_user_can('manage_options') to ensure only administrators can modify ticket settings.

Exploitation & Lab Setup

Red Team

To exploit this vulnerability, an attacker would send a POST request to the WordPress admin-ajax endpoint with the appropriate action. Below is a sample curl command:

curl -X POST https://target.com/wp-admin/admin-ajax.php \
  -d "action=give_events_handle_request&event_id=123&ticket_settings[price]=0.01"

This would change the ticket price for event ID 123 to 0.01. The attacker can enumerate event IDs or use other techniques to find valid events.

Blue Team

To detect exploitation attempts, monitor for unusual POST requests to /wp-admin/admin-ajax.php with the action parameter give_events_handle_request. Additionally, log all changes to event ticket settings and alert on unauthorized modifications.

Indicators of Compromise (IOCs)

  • Network: POST requests to /wp-admin/admin-ajax.php with action=give_events_handle_request
  • Logs: WordPress debug logs showing update_post_meta calls for _give_ticket_settings without a valid user session
  • File: Modified event ticket settings in the database (post meta _give_ticket_settings)

Detection Engineering

YARA Rule

rule CVE_2024_5940_GiveWP_Missing_Auth {
    meta:
        description = "Detects GiveWP plugin files vulnerable to CVE-2024-5940"
        author = "Valters IT"
        date = "2025-04-10"
        reference = "CVE-2024-5940"
    strings:
        $func = "handle_request" ascii wide nocase
        $no_check = "current_user_can" ascii wide nocase
    condition:
        $func and not $no_check
}

Sigma Rule

title: CVE-2024-5940 GiveWP Unauthenticated Ticket Settings Modification
id: 8a9b7c6d-5e4f-3a2b-1c0d-9e8f7a6b5c4d
status: experimental
description: Detects exploitation attempts of CVE-2024-5940 via admin-ajax.php
logsource:
    category: webserver
    product: apache
detection:
    selection:
        cs-method: 'POST'
        c-uri: '/wp-admin/admin-ajax.php'
        cs-uri-query: 'action=give_events_handle_request'
    condition: selection
falsepositives:
    - Legitimate admin actions (rare)
level: high

Suricata Rule

alert http any any -> $EXTERNAL_NET any (
    msg:"CVE-2024-5940 GiveWP Unauthenticated Ticket Settings Modification";
    flow:to_server,established;
    content:"POST"; http_method;
    content:"/wp-admin/admin-ajax.php"; http_uri;
    content:"action=give_events_handle_request"; http_client_body;
    classtype:attempted-admin;
    sid:1000001;
    rev:1;
)

Remediation & Mitigation

  1. Immediate Action: Disable the Events beta feature in GiveWP settings if not required.
  2. Update: Apply the latest GiveWP plugin version as soon as a patch is released. Monitor the vendor’s changelog.
  3. Workaround: Add a custom capability check via a WordPress plugin or code snippet to the handle_request function.
  4. Monitoring: Enable logging for all admin-ajax requests and review for suspicious activity.
  5. Web Application Firewall (WAF): Create a rule to block requests to /wp-admin/admin-ajax.php with action=give_events_handle_request from unauthenticated users.

Valters IT
Securing Digital Frontiers

💣 PoC CODE AVAILABLE

Exploit code for this CVE is tracked in our database. Access poc_code via API Pro.

[ API_PRO ] →
◈ SOURCE Analysis & enrichment: valtersit.com/cve/CVE-2024-5940/ · CVE data: NVD/MITRE (public domain) · © 2026 ValtersIT Hub
>_ SYSTEM_CORE: INTEL_ACTIVE
90% TEAM-CURATED // 10% AUTOMATED INGESTION.
ALL PATCH REFERENCES AND VERSION DATA SOURCED FROM NVD + OSV OFFICIAL REGISTRIES.