Bug 1885735 (CVE-2020-7069)

Summary: CVE-2020-7069 php: Wrong ciphertext/tag in AES-CCM encryption for a 12 bytes IV
Product: [Other] Security Response Reporter: Guilherme de Almeida Suckevicz <gsuckevi>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: fedora, hhorak, jlyle, jorton, nbhumkar, rcollet, surpatil
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: php 7.4.11, php 7.3.23, php 7.2.34 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-08-03 13:06:58 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1885736, 1888319, 1888320, 1888321, 1888365, 1888366, 1977766    
Bug Blocks: 1885753    

Description Guilherme de Almeida Suckevicz 2020-10-06 20:14:05 UTC
In PHP versions 7.2.x below 7.2.34, 7.3.x below 7.3.23 and 7.4.x below 7.4.11, when AES-CCM mode is used with openssl_encrypt() function with 12 bytes IV, only first 7 bytes of the IV is actually used. This can lead to both decreased security and incorrect encryption data.

Reference:
https://bugs.php.net/bug.php?id=79601

Comment 1 Guilherme de Almeida Suckevicz 2020-10-06 20:14:22 UTC
Created php tracking bugs for this issue:

Affects: fedora-all [bug 1885736]

Comment 2 Remi Collet 2020-10-07 05:17:35 UTC
Notice: Only PHP versions >= 7.1 are affected, older version are not.

Comment 5 Marco Benatto 2020-10-14 16:58:16 UTC
Upstream commit for this issue: http://git.php.net/?p=php-src.git;a=commit;h=0216630ea2815a5789a24279a1211ac398d4de79

Comment 8 errata-xmlrpc 2021-08-03 09:15:49 UTC
This issue has been addressed in the following products:

  Red Hat Software Collections for Red Hat Enterprise Linux 7
  Red Hat Software Collections for Red Hat Enterprise Linux 7.7 EUS

Via RHSA-2021:2992 https://access.redhat.com/errata/RHSA-2021:2992

Comment 9 Product Security DevOps Team 2021-08-03 13:06:58 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2020-7069

Comment 10 errata-xmlrpc 2021-11-09 17:45:12 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2021:4213 https://access.redhat.com/errata/RHSA-2021:4213