Improper Handling of Syntactically Invalid Structure Affecting php-tidy package, versions <0:5.3.3-14.el6_3


Severity

Recommended
medium

Based on Red Hat Enterprise Linux security rating.

Threat Intelligence

EPSS
3.55% (92nd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-RHEL6-PHPTIDY-1443583
  • published26 Jul 2021
  • disclosed3 May 2012

Introduced: 3 May 2012

CVE-2012-2336  (opens in a new tab)
CWE-228  (opens in a new tab)
CWE-400  (opens in a new tab)

How to fix?

Upgrade RHEL:6 php-tidy to version 0:5.3.3-14.el6_3 or higher.
This issue was patched in RHSA-2012:1046.

NVD Description

Note: Versions mentioned in the description apply only to the upstream php-tidy package and not the php-tidy package as distributed by RHEL. See How to fix? for RHEL:6 relevant fixed versions and status.

sapi/cgi/cgi_main.c in PHP before 5.3.13 and 5.4.x before 5.4.3, when configured as a CGI script (aka php-cgi), does not properly handle query strings that lack an = (equals sign) character, which allows remote attackers to cause a denial of service (resource consumption) by placing command-line options in the query string, related to lack of skipping a certain php_getopt for the 'T' case. NOTE: this vulnerability exists because of an incomplete fix for CVE-2012-1823.

CVSS Scores

version 3.1