Skip to main content

PHP CVE-2026-4020

| EUVDEUVD-2026-17277 HIGH
Information Exposure (CWE-200)
2026-03-31 Wordfence
7.5
CVSS 3.1 · NVD
Share

Severity by source

NVD PRIMARY
7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Primary rating from NVD · only source for this CVE.

CVSS VectorNVD

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None

Lifecycle Timeline

4
Re-analysis Queued
Apr 24, 2026 - 18:22 vuln.today
cvss_changed
EUVD ID Assigned
Mar 31, 2026 - 01:45 euvd
EUVD-2026-17277
Analysis Generated
Mar 31, 2026 - 01:45 vuln.today
CVE Published
Mar 31, 2026 - 01:24 nvd
HIGH 7.5

DescriptionCVE.org

The Gravity SMTP plugin for WordPress is vulnerable to Sensitive Information Exposure in all versions up to, and including, 2.1.4. This is due to a REST API endpoint registered at /wp-json/gravitysmtp/v1/tests/mock-data with a permission_callback that unconditionally returns true, allowing any unauthenticated visitor to access it. When the ?page=gravitysmtp-settings query parameter is appended, the plugin's register_connector_data() method populates internal connector data, causing the endpoint to return approximately 365 KB of JSON containing the full System Report. This makes it possible for unauthenticated attackers to retrieve detailed system configuration data including PHP version, loaded extensions, web server version, document root path, database server type and version, WordPress version, all active plugins with versions, active theme, WordPress configuration details, database table names, and any API keys/tokens configured in the plugin.

AnalysisAI

Sensitive system configuration data exposure in Gravity SMTP for WordPress (all versions ≤2.1.4) allows unauthenticated remote attackers to retrieve comprehensive server information via an unsecured REST API endpoint. The /wp-json/gravitysmtp/v1/tests/mock-data endpoint lacks authentication controls, exposing ~365 KB of JSON containing PHP version, database credentials structure, WordPress configuration, plugin/theme inventories, and configured API keys/tokens. EPSS data not provided; no confirmed active exploitation (CISA KEV) or public exploit code identified at time of analysis, though the attack vector is trivial (CVSS AV:N/AC:L/PR:N).

Technical ContextAI

This vulnerability (CWE-200: Exposure of Sensitive Information to an Unauthorized Actor) stems from improper access control in WordPress REST API endpoint registration. The Gravity SMTP plugin registers a diagnostic endpoint at /wp-json/gravitysmtp/v1/tests/mock-data with a permission_callback that unconditionally returns true, bypassing WordPress's authentication framework. When invoked with the query parameter ?page=gravitysmtp-settings, the register_connector_data() method in class-config-collection-service-provider.php populates and returns the plugin's complete System Report. This report aggregates environment metadata intended for internal diagnostics but exposed through the public REST API. The affected product (CPE: cpe:2.3:a:rocketgenius:gravity_smtp:*:*:*:*:*:*:*:*) is a WordPress plugin written in PHP that manages SMTP email delivery configurations, making API credential exposure particularly critical for attackers conducting reconnaissance or lateral movement.

RemediationAI

Update Gravity SMTP to the latest patched version immediately by accessing WordPress admin dashboard → Plugins → Installed Plugins, locating Gravity SMTP, and clicking Update. The official changelog at https://docs.gravitysmtp.com/gravity-smtp-changelog/ should list fixed versions (consult post-2.1.4 releases). If automatic updates are disabled, download the latest version from the WordPress plugin repository and manually replace the /wp-content/plugins/gravitysmtp/ directory. Until patching, implement a temporary workaround by blocking external access to /wp-json/gravitysmtp/v1/tests/mock-data via web server configuration (Apache .htaccess or Nginx location blocks) or a WordPress security plugin with REST API filtering capabilities. After updating, immediately rotate any API keys or SMTP credentials that were configured in the plugin prior to patching, as they may have been exposed. Review web server access logs for requests to /wp-json/gravitysmtp/v1/tests/mock-data?page=gravitysmtp-settings to identify potential prior exploitation. Additional technical details available in Wordfence Threat Intelligence report at https://www.wordfence.com/threat-intel/vulnerabilities/id/12a296db-ecc0-409b-8718-0c208504053a?source=cve.

More in PHP

View all
CVE-2019-11043 CRITICAL POC
9.8 Oct 28

In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it

CVE-2012-1823 CRITICAL POC
9.8 May 11

sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not

CVE-2016-1555 CRITICAL POC
9.8 Apr 21

(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear

CVE-2018-11138 CRITICAL POC
9.8 May 31

The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by

CVE-2024-11680 CRITICAL POC
9.8 Nov 26

ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C

CVE-2025-49113 CRITICAL POC
9.9 Jun 02

Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au

CVE-2017-9841 CRITICAL POC
9.8 Jun 27

Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP c

CVE-2025-0108 HIGH POC
8.8 Feb 12

Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers

CVE-2021-25298 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2021-25296 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2013-4983 CRITICAL POC
10.0 Sep 10

The get_referers function in /opt/ws/bin/sblistpack in Sophos Web Appliance before 3.7.9.1 and 3.8 before 3.8.1.1 allows

CVE-2023-6553 CRITICAL POC
9.8 Dec 15

The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1

Share

CVE-2026-4020 vulnerability details – vuln.today

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy