Access of Resource Using Incompatible Type ('Type Confusion') Affecting php-odbc package, versions <0:5.4.16-23.el7_0


Severity

Recommended
medium

Based on Red Hat Enterprise Linux security rating.

Threat Intelligence

EPSS
1.15% (85th 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 Learn

Learn about Access of Resource Using Incompatible Type ('Type Confusion') vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-RHEL7-PHPODBC-4483983
  • published26 Jul 2021
  • disclosed23 Jun 2014

Introduced: 23 Jun 2014

CVE-2014-4721  (opens in a new tab)
CWE-843  (opens in a new tab)
CWE-822  (opens in a new tab)
CWE-201  (opens in a new tab)

How to fix?

Upgrade RHEL:7 php-odbc to version 0:5.4.16-23.el7_0 or higher.
This issue was patched in RHSA-2014:1013.

NVD Description

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

The phpinfo implementation in ext/standard/info.c in PHP before 5.4.30 and 5.5.x before 5.5.14 does not ensure use of the string data type for the PHP_AUTH_PW, PHP_AUTH_TYPE, PHP_AUTH_USER, and PHP_SELF variables, which might allow context-dependent attackers to obtain sensitive information from process memory by using the integer data type with crafted values, related to a "type confusion" vulnerability, as demonstrated by reading a private SSL key in an Apache HTTP Server web-hosting environment with mod_ssl and a PHP 5.3.x mod_php.

CVSS Scores

version 3.1