BREACHSPIDER
CVE databaseVendorsIntelFeaturesDevelopersDocsPricingSign inStart free trial

CVE-2024-5021 in Gallery products

Critical 9.3

The WordPress Picture / Portfolio / Media Gallery plugin for WordPress is vulnerable to Server-Side Request Forgery in all versions up to, and including, 3.0.1 via the 'file_get_contents' function. This makes it possible for unauthenticated attackers to make web requests to arbitrary locations originating from the w...

Affects 0 products from 3 vendors. Facts below cite their sources.

CVSS 3.19.3
EPSS0.7%
EPSS percentile48th
FixUnknown

Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, can impact systems beyond the vulnerable component, full confidentiality impact, no availability impact.

Affected products and versions

VendorProductAffected versions
Gallery — —
Plugin — —
Wordpress — —

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

No official vendor advisory link on record. See the CVE record.

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

Official description

The WordPress Picture / Portfolio / Media Gallery plugin for WordPress is vulnerable to Server-Side Request Forgery in all versions up to, and including, 3.0.1 via the 'file_get_contents' function. This makes it possible for unauthenticated attackers to make web requests to arbitrary locations originating from the web application and can be used to query and modify information from internal services.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2024-5021
BreachSpider IDBS-2024-GLOBAL-048684-C
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:L/A:N
Published2024-06-19
Last modified2026-06-17
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-918: Server-Side Request Forgery (SSRF)

Attacker causes the server to make HTTP requests to attacker-chosen destinations, potentially reaching internal services.

Related attack patterns (CAPEC)

CAPEC-664 Server Side Request Forgery via CWE-918

Mapping is CWE to CAPEC per MITRE CAPEC 3.9.

Analysis AI-written, not human-reviewed

The WordPress Picture / Portfolio / Media Gallery plugin is vulnerable to Server-Side Request Forgery (SSRF) due to improper validation of URLs in the 'file_get_contents' function, allowing unauthenticated attackers to make requests to arbitrary locations.

An attacker can exploit this vulnerability by sending a malicious request to the affected plugin, which will use the 'file_get_contents' function to fetch data from an attacker-controlled server or internal service. This can lead to information disclosure, data manipulation, or unauthorized access to internal systems.

Questions

What is CVE-2024-5021?

The WordPress Picture / Portfolio / Media Gallery plugin is vulnerable to Server-Side Request Forgery (SSRF) due to improper validation of URLs in the 'file_get_contents' function, allowing unauthenticated attackers to make requests to arbitrary locations.

What is the CVSS score for CVE-2024-5021?

CVE-2024-5021 has CVSS 9.3 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:L/A:N. EPSS: 0.7%.

Is CVE-2024-5021 actively exploited?

No confirmed active exploitation of CVE-2024-5021 as of 2026-09-25.

How do I remediate CVE-2024-5021?

Priority: IMMEDIATE.

What systems are affected by CVE-2024-5021?

CVE-2024-5021 affects Gallery; Plugin; Wordpress.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Gallery","product":"EDS-518A","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.