CVE-2025-7381: Exposure of sensitive PHP information to an unauthorized control sphere in mautic/mautic images

Published Jul 9, 2025
·
Updated

ImpactThis is an information disclosure vulnerability originating from PHP's base image. This vulnerability exposes the PHP version through an X-Powered-By header, which attackers could exploit to fingerprint the server and identify potential weaknesses.

WorkaroundsThe mitigation requires changing the exposephp variable from "On" to "Off" in the file located at /usr/local/etc/php/php.ini.

Affected Software

2 affected components
Mautic Mautic
PHP PHP

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Configuration

    In /usr/local/etc/php/php.ini, change expose_php from "On" to "Off" to prevent PHP from disclosing the PHP version via the X-Powered-By header.

    PHP (php.ini) expose_php = Off

Event History

Jul 9, 2025
CVE Published
via MITRE·03:16 PM
Data Sourced
via MITRE·03:16 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·04:15 PM
DescriptionSeverityWeakness
Jun 28, 57578
Event
via FIRST·06:09 AM

Frequently Asked Questions

1

What is the severity of CVE-2025-7381?

CVE-2025-7381 is classified as an information disclosure vulnerability.

2

How does CVE-2025-7381 expose vulnerabilities?

CVE-2025-7381 exposes the PHP version through the X-Powered-By header, enabling attackers to fingerprint the server.

3

What software is affected by CVE-2025-7381?

CVE-2025-7381 affects PHP and Mautic installations.

4

How can I mitigate the risk of CVE-2025-7381?

To mitigate CVE-2025-7381, remove or obscure the X-Powered-By header in your server configuration.

5

Is CVE-2025-7381 exploitable remotely?

Yes, attackers can exploit CVE-2025-7381 remotely if the X-Powered-By header is present.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203