Check provider logo

App Engine serving version runs a supported PHP runtime

appengine_version_php_runtime_supported

Severitycritical
Serviceappengine
by Prowler

App Engine serving versions that run PHP are evaluated to confirm the runtime is a supported branch (appengine_php_min_version, 8.2 by default). Standard environment runtimes such as php82 are compared directly; flexible environment versions are reported for manual verification because their PHP binary lives in a customer-built image that is not patched in place.

Risk

PHP runtimes older than the supported branches are vulnerable to unauthenticated remote code execution through crafted web requests and receive no fixes, so a serving version pinned to one of them stays exploitable. Flexible environment versions keep the vulnerable binary until they are redeployed on a fixed release.

Run this check with Prowler CLI

prowler gcp --checks appengine_version_php_runtime_supported

Recommendation

Deploy every App Engine service on a supported PHP runtime and redeploy whenever a branch approaches end of support. Standard environment runtimes on supported branches receive security fixes automatically; flexible environment images must be rebuilt and redeployed, so prefer the standard environment for PHP workloads where possible.

Remediation

CLI

gcloud app deploy app.yaml --project <PROJECT_ID> # with runtime: php84 in app.yaml

Terraform
Other
  1. Edit the service's app.yaml and set runtime to a supported PHP branch (for example php84)
  2. For flexible environment services, rebuild the image on a fixed PHP release
  3. Run gcloud app deploy to create a new version
  4. Route traffic to the new version and stop or delete versions still on unsupported runtimes

Source Code

Resource Type

appengine.googleapis.com/Version

References