Skip to content

Exposed PHP version

Moderate
samuelwei published GHSA-q93h-5j6h-j22x Oct 27, 2025

Package

docker pilos/pilos (Docker)

Affected versions

<4.8.0

Patched versions

4.8.0

Description

Impact

This information disclosure vulnerability originates from PHP’s base image. It exposes the PHP version via the X-Powered-By header, enabling attackers to fingerprint the server and assess potential exploits.

Additionally, the PHP version can also be inferred through the PILOS version displayed in the footer and by examining the source code available on GitHub.

Patches

This information disclosure vulnerability has been patched in PILOS in v4.8.0

Workarounds

Remove header in reverse proxy.

NGINX

location / {
   proxy_pass          http://127.0.0.1:5000;
   proxy_set_header    X-Forwarded-Host $host;
   proxy_set_header    X-Forwarded-Port  $server_port;
   proxy_set_header    X-Forwarded-For   $proxy_add_x_forwarded_for;
   proxy_set_header    X-Forwarded-Proto $scheme;
+  proxy_hide_header   X-Powered-By;
   proxy_http_version  1.1;
}

APACHE

   ProxyPreserveHost On

   ProxyPass "/"  "http://127.0.0.1:5000/" nocanon
   ProxyPassReverse "/"  "http://127.0.0.1:5000/"

   RequestHeader set X-Forwarded-Proto "https"
   RequestHeader set X-Forwarded-Port "443"

+  Header unset X-Powered-By

Severity

Moderate

CVSS overall score

This score calculates overall vulnerability severity from 0 to 10 and is based on the Common Vulnerability Scoring System (CVSS).
/ 10

CVSS v3 base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
None
Availability
None

CVSS v3 base metrics

Attack vector: More severe the more the remote (logically and physically) an attacker can be in order to exploit the vulnerability.
Attack complexity: More severe for the least complex attacks.
Privileges required: More severe if no privileges are required.
User interaction: More severe when no user interaction is required.
Scope: More severe when a scope change occurs, e.g. one vulnerable component impacts resources in components beyond its security scope.
Confidentiality: More severe when loss of data confidentiality is highest, measuring the level of data access available to an unauthorized user.
Integrity: More severe when loss of data integrity is the highest, measuring the consequence of data modification possible by an unauthorized user.
Availability: More severe when the loss of impacted component availability is highest.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

CVE ID

CVE-2025-62524

Weaknesses

Exposure of Sensitive Information to an Unauthorized Actor

The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information. Learn more on MITRE.