REDHAT-BUG-2317051: Medium severity The PHP Group PHP vulnerability

Published Oct 7, 2024
·
Updated

According to https://www.php.net/manual/en/security.cgi-bin.force-redirect.php, the configuration directive cgi.forceredirect prevents anyone from calling PHP directly with a URL like http://host.example/cgi-bin/php/secretdir/script.php. The default value of cgi.forceredirect is 1.

But there is a bug that can cause attackers to bypass restrictions and access php-cgi directly.

Affected Software

1 affected component
The PHP Group PHP

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Configuration

    Ensure the PHP configuration directive cgi.force_redirect is set to its default value of 1 to prevent direct PHP access via URLs like /cgi-bin/php/.../script.php.

    PHP cgi.force_redirect = 1

Event History

Oct 7, 2024
Data Sourced
via Red Hat·07:56 PM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of REDHAT-BUG-2317051?

The severity of REDHAT-BUG-2317051 is considered to be high due to the potential for unauthorized access to PHP scripts.

2

How do I fix REDHAT-BUG-2317051?

To fix REDHAT-BUG-2317051, ensure that the cgi.force_redirect directive is properly configured in your PHP settings.

3

What software is affected by REDHAT-BUG-2317051?

The vulnerability REDHAT-BUG-2317051 affects the PHP software from The PHP Group.

4

What are the potential risks of REDHAT-BUG-2317051?

The potential risks of REDHAT-BUG-2317051 include the possibility of script execution and unauthorized access to sensitive data.

5

Is there a patch available for REDHAT-BUG-2317051?

Yes, a patch or security update is typically provided by Red Hat for REDHAT-BUG-2317051.

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