Skip to main content
CVE Vulnerability Database
Vulnerability Database/CVE-2024-43989

CVE-2024-43989: Justified Image Grid SSRF Vulnerability

CVE-2024-43989 is a server-side request forgery flaw in Justified Image Grid plugin affecting versions up to 4.6.1, allowing attackers to forge server requests. This article covers technical details, impact, and mitigation.

Published:

CVE-2024-43989 Overview

CVE-2024-43989 is a Server-Side Request Forgery (SSRF) vulnerability in the Firsh Justified Image Grid plugin for WordPress. The flaw affects all plugin versions up to and including 4.6.1. An unauthenticated attacker can coerce the vulnerable WordPress server to issue arbitrary HTTP requests to attacker-chosen destinations. The vulnerability is tracked under CWE-918: Server-Side Request Forgery and is documented in the Patchstack Security Advisory.

Critical Impact

Unauthenticated attackers can pivot through the WordPress server to access internal network resources, cloud metadata endpoints, and otherwise unreachable services.

Affected Products

  • Firsh Justified Image Grid WordPress Plugin
  • All versions from initial release through 4.6.1
  • WordPress sites with the plugin enabled and reachable from the internet

Discovery Timeline

  • 2024-09-23 - CVE-2024-43989 published to NVD
  • 2026-04-23 - Last updated in NVD database

Technical Details for CVE-2024-43989

Vulnerability Analysis

The Justified Image Grid plugin accepts user-supplied URLs and fetches their content server-side without sufficient validation of the destination. Because the request originates from the WordPress server, it carries trust within the network perimeter where the host resides. An attacker can supply URLs targeting internal hosts, loopback services, or cloud instance metadata endpoints such as http://169.254.169.254/. The server then returns response data or side-channel signals that disclose internal infrastructure. The exploit requires no authentication, which broadens the attacker pool to any internet-based actor. The EPSS probability of approximately 10.5% places this issue in the upper percentile of vulnerabilities by likelihood of exploitation attempts.

Root Cause

The root cause is missing validation of remote URL parameters processed by the plugin's image-fetching logic. The plugin does not enforce an allowlist of permitted hosts or schemes. It also does not block requests to private IPv4 ranges (RFC 1918), link-local addresses, or loopback interfaces before issuing the outbound HTTP request.

Attack Vector

The attack vector is network-based and unauthenticated. An attacker sends a crafted HTTP request to a plugin endpoint that accepts a remote URL parameter. The WordPress host fetches the attacker-supplied URL and the response, or its timing characteristics, expose internal service data. Targets commonly include cloud metadata services, internal admin panels, databases bound to localhost, and Redis or Elasticsearch instances on private networks.

No verified public exploit code is available. See the Patchstack advisory for technical context.

Detection Methods for CVE-2024-43989

Indicators of Compromise

  • Outbound HTTP requests from the WordPress PHP worker process to private IP ranges (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16) or 169.254.169.254.
  • Web server access logs containing requests to Justified Image Grid plugin endpoints with url= or similar parameters pointing to non-public hosts.
  • Unexpected egress connections from the WordPress host to internal services such as Redis (6379), Elasticsearch (9200), or cloud metadata APIs.

Detection Strategies

  • Inspect web access logs for unauthenticated requests targeting Justified Image Grid plugin paths with URL parameters referencing IP addresses or non-standard schemes.
  • Correlate inbound requests to the plugin with outbound HTTP connections originating from PHP-FPM or the web server process.
  • Deploy WAF rules that flag URL parameters containing private IP ranges, localhost, or metadata service hostnames.

Monitoring Recommendations

  • Monitor egress traffic from web servers and alert on connections to cloud metadata endpoints and RFC 1918 destinations.
  • Track plugin version inventory across WordPress fleets to identify hosts running Justified Image Grid <= 4.6.1.
  • Enable verbose logging on PHP curl and wp_remote_get calls when feasible to capture outbound URL targets.

How to Mitigate CVE-2024-43989

Immediate Actions Required

  • Update the Justified Image Grid plugin to a version newer than 4.6.1 as soon as a fixed release is available from the vendor.
  • Disable or remove the plugin if a patched version is not yet published and the functionality is not business-critical.
  • Restrict outbound network access from WordPress hosts to only required external destinations.
  • Enforce IMDSv2 on AWS EC2 instances to reduce the impact of SSRF against the cloud metadata service.

Patch Information

Refer to the Patchstack advisory for the latest patch status. At time of NVD publication, all versions up to and including 4.6.1 were affected. Apply the vendor update once available and verify the plugin version in the WordPress admin console.

Workarounds

  • Place the WordPress server behind an egress proxy that blocks requests to private IP ranges, loopback, and link-local addresses.
  • Configure host-level firewall rules denying outbound traffic from the web server user to 169.254.169.254 and internal management subnets.
  • Apply WAF signatures that reject plugin requests containing internal IPs, file://, gopher://, or dict:// schemes in URL parameters.
bash
# Example iptables rule to block metadata service access from the web server user
iptables -A OUTPUT -m owner --uid-owner www-data -d 169.254.169.254 -j DROP
iptables -A OUTPUT -m owner --uid-owner www-data -d 10.0.0.0/8 -j DROP
iptables -A OUTPUT -m owner --uid-owner www-data -d 172.16.0.0/12 -j DROP
iptables -A OUTPUT -m owner --uid-owner www-data -d 192.168.0.0/16 -j DROP

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.