Bug 1885735 (CVE-2020-7069) - CVE-2020-7069 php: Wrong ciphertext/tag in AES-CCM encryption for a 12 bytes IV
Summary: CVE-2020-7069 php: Wrong ciphertext/tag in AES-CCM encryption for a 12 bytes IV
Keywords:
Status: NEW
Alias: CVE-2020-7069
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 1888321 1888366 1977766 1885736 1888319 1888320 1888365
Blocks: 1885753
TreeView+ depends on / blocked
 
Reported: 2020-10-06 20:14 UTC by Guilherme de Almeida Suckevicz
Modified: 2021-07-15 17:02 UTC (History)
7 users (show)

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:
Clone Of:
Environment:
Last Closed:


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.