Bug 1978790 (CVE-2021-21704)

Summary: CVE-2021-21704 php: security issues in pdo_firebase module
Product: [Other] Security Response Reporter: Guilherme de Almeida Suckevicz <gsuckevi>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: fedora, hhorak, jorton, rcollet
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Several flaws has been found in php. The pdo_firebase module does not check the length of the server version string in a response packet causing a stack buffer overflow, does not verify the data and uses the wrong type to cast length leading to a crash, and does not validate the response before calculation of the exec procedure leading to a crash. The highest threat from this vulnerability is to system availability.
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-07-07 14:37:23 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On: 1978791, 1979973, 1979974, 1979975    
Bug Blocks: 1978792    

Description Guilherme de Almeida Suckevicz 2021-07-02 18:14:05 UTC
Security vulnerabilities in PHP in pdo_firebase module allows attackers to crash PHP.

References:
https://bugs.php.net/bug.php?id=76448
https://bugs.php.net/bug.php?id=76449
https://bugs.php.net/bug.php?id=76450
https://bugs.php.net/bug.php?id=76452

Comment 1 Guilherme de Almeida Suckevicz 2021-07-02 18:14:23 UTC
Created php tracking bugs for this issue:

Affects: fedora-all [bug 1978791]

Comment 3 Marco Benatto 2021-07-07 14:22:42 UTC
Upstream patch for this issue:
https://github.com/php/php-src/commit/08da7c73726f7b86b67d6f0ff87c73c585a7834a