CVE-2020-7069Wrong ciphertext/tag in AES-CCM encryption for a 12 bytes IV
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.
What to do
Fixed builds are available from AlmaLinux, Alpine, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 20.04 | php7.4 | Fixed | 7.4.3-4ubuntu2.4 | UBUNTU-CVE-2020-7069 |
| Ubuntu 18.04 | php7.2 | Fixed | 7.2.24-0ubuntu0.18.04.7 | UBUNTU-CVE-2020-7069 |
| Ubuntu 16.04 | php7.0 | Not affected vulnerable_code_not_present | ||
| Ubuntu 14.04 | php5 | Fix pending | 5.5.9+dfsg-1ubuntu4.29+esm13 (Ubuntu Pro) | UBUNTU-CVE-2020-7069 |
| Red Hat Enterprise Linux 8 | apcu-panel | Fixed Will not fix | 0:5.1.18-1.module+el8.3.0+6678+b09f589e | RHSA-2021:4213 |
| Red Hat Enterprise Linux 8 | libzip | Fixed Will not fix | 0:1.6.1-1.module+el8.3.0+6678+b09f589e | RHSA-2021:4213 |
| Red Hat Enterprise Linux 8 | libzip-devel | Fixed Will not fix | 0:1.6.1-1.module+el8.3.0+6678+b09f589e | RHSA-2021:4213 |
| Red Hat Enterprise Linux 8 | libzip-tools | Fixed Will not fix | 0:1.6.1-1.module+el8.3.0+6678+b09f589e | RHSA-2021:4213 |
| Red Hat Enterprise Linux 8 | php | Fixed Will not fix | 0:7.4.19-1.module+el8.5.0+11143+cc873159 | RHSA-2021:4213 |
| Red Hat Enterprise Linux 8 | php-bcmath | Fixed Will not fix | 0:7.4.19-1.module+el8.5.0+11143+cc873159 | RHSA-2021:4213 |
| Red Hat Enterprise Linux 8 | php-cli | Fixed Will not fix | 0:7.4.19-1.module+el8.5.0+11143+cc873159 | RHSA-2021:4213 |
| Red Hat Enterprise Linux 8 | php-common | Fixed Will not fix | 0:7.4.19-1.module+el8.5.0+11143+cc873159 | RHSA-2021:4213 |
| Red Hat Enterprise Linux 8 | php-dba | Fixed Will not fix | 0:7.4.19-1.module+el8.5.0+11143+cc873159 | RHSA-2021:4213 |
| Red Hat Enterprise Linux 8 | php-dbg | Fixed Will not fix | 0:7.4.19-1.module+el8.5.0+11143+cc873159 | RHSA-2021:4213 |
| Red Hat Enterprise Linux 8 | php-devel | Fixed Will not fix | 0:7.4.19-1.module+el8.5.0+11143+cc873159 | RHSA-2021:4213 |
| Red Hat Enterprise Linux 8 | php-embedded | Fixed Will not fix | 0:7.4.19-1.module+el8.5.0+11143+cc873159 | RHSA-2021:4213 |
| Red Hat Enterprise Linux 8 | php-enchant | Fixed Will not fix | 0:7.4.19-1.module+el8.5.0+11143+cc873159 | RHSA-2021:4213 |
| Red Hat Enterprise Linux 8 | php-ffi | Fixed Will not fix | 0:7.4.19-1.module+el8.5.0+11143+cc873159 | RHSA-2021:4213 |
| Red Hat Enterprise Linux 8 | php-fpm | Fixed Will not fix | 0:7.4.19-1.module+el8.5.0+11143+cc873159 | RHSA-2021:4213 |
| Red Hat Enterprise Linux 8 | php-gd | Fixed Will not fix | 0:7.4.19-1.module+el8.5.0+11143+cc873159 | RHSA-2021:4213 |
| Red Hat Enterprise Linux 8 | php-gmp | Fixed Will not fix | 0:7.4.19-1.module+el8.5.0+11143+cc873159 | RHSA-2021:4213 |
| Red Hat Enterprise Linux 8 | php-intl | Fixed Will not fix | 0:7.4.19-1.module+el8.5.0+11143+cc873159 | RHSA-2021:4213 |
| Red Hat Enterprise Linux 8 | php-json | Fixed Will not fix | 0:7.4.19-1.module+el8.5.0+11143+cc873159 | RHSA-2021:4213 |
| Red Hat Enterprise Linux 8 | php-ldap | Fixed Will not fix | 0:7.4.19-1.module+el8.5.0+11143+cc873159 | RHSA-2021:4213 |
| Red Hat Enterprise Linux 8 | php-mbstring | Fixed Will not fix | 0:7.4.19-1.module+el8.5.0+11143+cc873159 | RHSA-2021:4213 |
| Red Hat Enterprise Linux 8 | php-mysqlnd | Fixed Will not fix | 0:7.4.19-1.module+el8.5.0+11143+cc873159 | RHSA-2021:4213 |
| Red Hat Enterprise Linux 8 | php-odbc | Fixed Will not fix | 0:7.4.19-1.module+el8.5.0+11143+cc873159 | RHSA-2021:4213 |
| Red Hat Enterprise Linux 8 | php-opcache | Fixed Will not fix | 0:7.4.19-1.module+el8.5.0+11143+cc873159 | RHSA-2021:4213 |
| Red Hat Enterprise Linux 8 | php-pdo | Fixed Will not fix | 0:7.4.19-1.module+el8.5.0+11143+cc873159 | RHSA-2021:4213 |
| Red Hat Enterprise Linux 8 | php-pear | Fixed Will not fix | 1:1.10.12-1.module+el8.3.0+6678+b09f589e | RHSA-2021:4213 |
| Red Hat Enterprise Linux 8 | php-pecl-apcu | Fixed Will not fix | 0:5.1.18-1.module+el8.3.0+6678+b09f589e | RHSA-2021:4213 |
| Red Hat Enterprise Linux 8 | php-pecl-apcu-devel | Fixed Will not fix | 0:5.1.18-1.module+el8.3.0+6678+b09f589e | RHSA-2021:4213 |
| Red Hat Enterprise Linux 8 | php-pecl-rrd | Fixed Will not fix | 0:2.0.1-1.module+el8.3.0+6678+b09f589e | RHSA-2021:4213 |
| Red Hat Enterprise Linux 8 | php-pecl-xdebug | Fixed Will not fix | 0:2.9.5-1.module+el8.3.0+6678+b09f589e | RHSA-2021:4213 |
| Red Hat Enterprise Linux 8 | php-pecl-xdebug3 | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | php-pecl-zip | Fixed Will not fix | 0:1.18.2-1.module+el8.3.0+6678+b09f589e | RHSA-2021:4213 |
| Red Hat Enterprise Linux 8 | php-pgsql | Fixed Will not fix | 0:7.4.19-1.module+el8.5.0+11143+cc873159 | RHSA-2021:4213 |
| Red Hat Enterprise Linux 8 | php-process | Fixed Will not fix | 0:7.4.19-1.module+el8.5.0+11143+cc873159 | RHSA-2021:4213 |
| Red Hat Enterprise Linux 8 | php-recode | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | php-snmp | Fixed Will not fix | 0:7.4.19-1.module+el8.5.0+11143+cc873159 | RHSA-2021:4213 |
| Red Hat Enterprise Linux 8 | php-soap | Fixed Will not fix | 0:7.4.19-1.module+el8.5.0+11143+cc873159 | RHSA-2021:4213 |
| Red Hat Enterprise Linux 8 | php-xml | Fixed Will not fix | 0:7.4.19-1.module+el8.5.0+11143+cc873159 | RHSA-2021:4213 |
| Red Hat Enterprise Linux 8 | php-xmlrpc | Fixed Will not fix | 0:7.4.19-1.module+el8.5.0+11143+cc873159 | RHSA-2021:4213 |
| Red Hat Enterprise Linux 7 | php | Not affected | ||
| Red Hat Enterprise Linux 7 | php-bcmath | Not affected | ||
| Red Hat Enterprise Linux 7 | php-cli | Not affected | ||
| Red Hat Enterprise Linux 7 | php-common | Not affected | ||
| Red Hat Enterprise Linux 7 | php-dba | Not affected | ||
| Red Hat Enterprise Linux 7 | php-devel | Not affected | ||
| Red Hat Enterprise Linux 7 | php-embedded | Not affected | ||
| Red Hat Enterprise Linux 7 | php-enchant | Not affected | ||
| Red Hat Enterprise Linux 7 | php-fpm | Not affected | ||
| Red Hat Enterprise Linux 7 | php-gd | Not affected | ||
| Red Hat Enterprise Linux 7 | php-intl | Not affected | ||
| Red Hat Enterprise Linux 7 | php-ldap | Not affected | ||
| Red Hat Enterprise Linux 7 | php-mbstring | Not affected | ||
| Red Hat Enterprise Linux 7 | php-mysql | Not affected | ||
| Red Hat Enterprise Linux 7 | php-mysqlnd | Not affected | ||
| Red Hat Enterprise Linux 7 | php-odbc | Not affected | ||
| Red Hat Enterprise Linux 7 | php-pdo | Not affected | ||
| Red Hat Enterprise Linux 7 | php-pgsql | Not affected | ||
| Red Hat Enterprise Linux 7 | php-process | Not affected | ||
| Red Hat Enterprise Linux 7 | php-pspell | Not affected | ||
| Red Hat Enterprise Linux 7 | php-recode | Not affected | ||
| Red Hat Enterprise Linux 7 | php-snmp | Not affected | ||
| Red Hat Enterprise Linux 7 | php-soap | Not affected | ||
| Red Hat Enterprise Linux 7 | php-xml | Not affected | ||
| Red Hat Enterprise Linux 7 | php-xmlrpc | Not affected | ||
| Red Hat Enterprise Linux 6 | php | Not affected | ||
| Red Hat Enterprise Linux 6 | php-bcmath | Not affected | ||
| Red Hat Enterprise Linux 6 | php-cli | Not affected | ||
| Red Hat Enterprise Linux 6 | php-common | Not affected | ||
| Red Hat Enterprise Linux 6 | php-dba | Not affected | ||
| Red Hat Enterprise Linux 6 | php-devel | Not affected | ||
| Red Hat Enterprise Linux 6 | php-embedded | Not affected | ||
| Red Hat Enterprise Linux 6 | php-enchant | Not affected | ||
| Red Hat Enterprise Linux 6 | php-fpm | Not affected | ||
| Red Hat Enterprise Linux 6 | php-gd | Not affected | ||
| Red Hat Enterprise Linux 6 | php-imap | Not affected | ||
| Red Hat Enterprise Linux 6 | php-intl | Not affected | ||
| Red Hat Enterprise Linux 6 | php-ldap | Not affected | ||
| Red Hat Enterprise Linux 6 | php-mbstring | Not affected | ||
| Red Hat Enterprise Linux 6 | php-mysql | Not affected | ||
| Red Hat Enterprise Linux 6 | php-odbc | Not affected | ||
| Red Hat Enterprise Linux 6 | php-pdo | Not affected | ||
| Red Hat Enterprise Linux 6 | php-pgsql | Not affected | ||
| Red Hat Enterprise Linux 6 | php-process | Not affected | ||
| Red Hat Enterprise Linux 6 | php-pspell | Not affected | ||
| Red Hat Enterprise Linux 6 | php-recode | Not affected | ||
| Red Hat Enterprise Linux 6 | php-snmp | Not affected | ||
| Red Hat Enterprise Linux 6 | php-soap | Not affected | ||
| Red Hat Enterprise Linux 6 | php-tidy | Not affected | ||
| Red Hat Enterprise Linux 6 | php-xml | Not affected | ||
| Red Hat Enterprise Linux 6 | php-xmlrpc | Not affected | ||
| Red Hat Enterprise Linux 6 | php-zts | Not affected | ||
| Red Hat Enterprise Linux 5 | php | Not affected | ||
| Red Hat Enterprise Linux 5 | php53 | Not affected | ||
| AlmaLinux 8 | apcu-panel | Fixed | 5.1.18-1.module_el8.6.0+2750+78feabcb | ALSA-2021:4213 |
| AlmaLinux 8 | libzip | Fixed | 1.6.1-1.module_el8.6.0+2750+78feabcb | ALSA-2021:4213 |
| AlmaLinux 8 | libzip-devel | Fixed | 1.6.1-1.module_el8.6.0+2750+78feabcb | ALSA-2021:4213 |
| AlmaLinux 8 | libzip-tools | Fixed | 1.6.1-1.module_el8.6.0+2750+78feabcb | ALSA-2021:4213 |
| AlmaLinux 8 | php | Fixed | 7.4.19-3.module_el8.6.0+2976+8b9a0d08 | ALSA-2021:4213 |
| AlmaLinux 8 | php-bcmath | Fixed | 7.4.19-3.module_el8.6.0+2976+8b9a0d08 | ALSA-2021:4213 |
| AlmaLinux 8 | php-cli | Fixed | 7.4.19-3.module_el8.6.0+2976+8b9a0d08 | ALSA-2021:4213 |
| AlmaLinux 8 | php-common | Fixed | 7.4.19-3.module_el8.6.0+2976+8b9a0d08 | ALSA-2021:4213 |
| AlmaLinux 8 | php-dba | Fixed | 7.4.19-3.module_el8.6.0+2976+8b9a0d08 | ALSA-2021:4213 |
| AlmaLinux 8 | php-dbg | Fixed | 7.4.19-3.module_el8.6.0+2976+8b9a0d08 | ALSA-2021:4213 |
| AlmaLinux 8 | php-devel | Fixed | 7.4.19-3.module_el8.6.0+2976+8b9a0d08 | ALSA-2021:4213 |
| AlmaLinux 8 | php-embedded | Fixed | 7.4.19-3.module_el8.6.0+2976+8b9a0d08 | ALSA-2021:4213 |
| AlmaLinux 8 | php-enchant | Fixed | 7.4.19-3.module_el8.6.0+2976+8b9a0d08 | ALSA-2021:4213 |
| AlmaLinux 8 | php-ffi | Fixed | 7.4.19-3.module_el8.6.0+2976+8b9a0d08 | ALSA-2021:4213 |
| AlmaLinux 8 | php-fpm | Fixed | 7.4.19-3.module_el8.6.0+2976+8b9a0d08 | ALSA-2021:4213 |
| AlmaLinux 8 | php-gd | Fixed | 7.4.19-3.module_el8.6.0+2976+8b9a0d08 | ALSA-2021:4213 |
| AlmaLinux 8 | php-gmp | Fixed | 7.4.19-3.module_el8.6.0+2976+8b9a0d08 | ALSA-2021:4213 |
| AlmaLinux 8 | php-intl | Fixed | 7.4.19-3.module_el8.6.0+2976+8b9a0d08 | ALSA-2021:4213 |
| AlmaLinux 8 | php-json | Fixed | 7.4.19-3.module_el8.6.0+2976+8b9a0d08 | ALSA-2021:4213 |
| AlmaLinux 8 | php-ldap | Fixed | 7.4.19-3.module_el8.6.0+2976+8b9a0d08 | ALSA-2021:4213 |
| AlmaLinux 8 | php-mbstring | Fixed | 7.4.19-3.module_el8.6.0+2976+8b9a0d08 | ALSA-2021:4213 |
| AlmaLinux 8 | php-mysqlnd | Fixed | 7.4.19-3.module_el8.6.0+2976+8b9a0d08 | ALSA-2021:4213 |
| AlmaLinux 8 | php-odbc | Fixed | 7.4.19-3.module_el8.6.0+2976+8b9a0d08 | ALSA-2021:4213 |
| AlmaLinux 8 | php-opcache | Fixed | 7.4.19-3.module_el8.6.0+2976+8b9a0d08 | ALSA-2021:4213 |
| AlmaLinux 8 | php-pdo | Fixed | 7.4.19-3.module_el8.6.0+2976+8b9a0d08 | ALSA-2021:4213 |
| AlmaLinux 8 | php-pear | Fixed | 1:1.10.12-1.module_el8.6.0+2750+78feabcb | ALSA-2021:4213 |
| AlmaLinux 8 | php-pecl-apcu | Fixed | 5.1.18-1.module_el8.6.0+2750+78feabcb | ALSA-2021:4213 |
| AlmaLinux 8 | php-pecl-apcu-devel | Fixed | 5.1.18-1.module_el8.6.0+2750+78feabcb | ALSA-2021:4213 |
| AlmaLinux 8 | php-pecl-rrd | Fixed | 2.0.1-1.module_el8.3.0+2009+b272fdef | ALSA-2021:4213 |
| AlmaLinux 8 | php-pecl-xdebug | Fixed | 2.9.5-1.module_el8.6.0+2750+78feabcb | ALSA-2021:4213 |
| AlmaLinux 8 | php-pecl-zip | Fixed | 1.18.2-1.module_el8.6.0+2750+78feabcb | ALSA-2021:4213 |
| AlmaLinux 8 | php-pgsql | Fixed | 7.4.19-3.module_el8.6.0+2976+8b9a0d08 | ALSA-2021:4213 |
| AlmaLinux 8 | php-process | Fixed | 7.4.19-3.module_el8.6.0+2976+8b9a0d08 | ALSA-2021:4213 |
| AlmaLinux 8 | php-snmp | Fixed | 7.4.19-3.module_el8.6.0+2976+8b9a0d08 | ALSA-2021:4213 |
| AlmaLinux 8 | php-soap | Fixed | 7.4.19-3.module_el8.6.0+2976+8b9a0d08 | ALSA-2021:4213 |
| AlmaLinux 8 | php-xml | Fixed | 7.4.19-3.module_el8.6.0+2976+8b9a0d08 | ALSA-2021:4213 |
| AlmaLinux 8 | php-xmlrpc | Fixed | 7.4.19-3.module_el8.6.0+2976+8b9a0d08 | ALSA-2021:4213 |
| Rocky Linux 8 | libzip | Fixed | 0:1.6.1-1.module+el8.6.0+789+2130c178 | RLSA-2021:4213 |
| Rocky Linux 8 | php | Fixed | 0:7.4.19-1.module+el8.5.0+696+61e7c9ba | RLSA-2021:4213 |
| Rocky Linux 8 | php-pear | Fixed | 1:1.10.12-1.module+el8.4.0+415+e936cba3 | RLSA-2021:4213 |
| Rocky Linux 8 | php-pecl-apcu | Fixed | 0:5.1.18-1.module+el8.6.0+789+2130c178 | RLSA-2021:4213 |
| Rocky Linux 8 | php-pecl-rrd | Fixed | 0:2.0.1-1.module+el8.4.0+414+2e7afcdd | RLSA-2021:4213 |
| Rocky Linux 8 | php-pecl-xdebug | Fixed | 0:2.9.5-1.module+el8.4.0+415+e936cba3 | RLSA-2021:4213 |
| Rocky Linux 8 | php-pecl-zip | Fixed | 0:1.18.2-1.module+el8.4.0+415+e936cba3 | RLSA-2021:4213 |
| Alpine Linux 3.15 | php7 | Fixed | 7.4.11-r0 | ALPINE-CVE-2020-7069 |
| Alpine Linux 3.14 | php7 | Fixed | 7.4.11-r0 | ALPINE-CVE-2020-7069 |
| Alpine Linux 3.13 | php7 | Fixed | 7.4.11-r0 | ALPINE-CVE-2020-7069 |
| Alpine Linux 3.12 | php7 | Fixed | 7.3.23-r0 | ALPINE-CVE-2020-7069 |
What the vendor says
As published in the CVE record by php, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- PHP Group PHP: affected: 7.3.x to before 7.3.23, 7.4.x to before 7.4.11, 7.2.x to before 7.2.34; fixed in
7.3.23,7.4.11,7.2.34
Vendor advisories:
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
- http://lists.opensuse.org/opensuse-security-announce/2020-10/msg00045.html (vendor-advisory)
- https://usn.ubuntu.com/4583-1/ (vendor-advisory)
- http://lists.opensuse.org/opensuse-security-announce/2020-10/msg00067.html (vendor-advisory)
References
- https://bugs.php.net/bug.php?id=79601
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/RRU57N3OSYZPOMFWPRDNVH7EMYOTSZ66/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/7EVDN7D3IB4EAI4D3ZOM2OJKQ5SD7K4E/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/P2J3ZZDHCSX65T5QWV4AHBN7MOJXBEKG/
- http://lists.opensuse.org/opensuse-security-announce/2020-10/msg00045.html
- https://usn.ubuntu.com/4583-1/
- http://lists.opensuse.org/opensuse-security-announce/2020-10/msg00067.html
- https://security.gentoo.org/glsa/202012-16
- https://www.debian.org/security/2021/dsa-4856
- https://www.oracle.com/security-alerts/cpuApr2021.html
- https://security.netapp.com/advisory/ntap-20201016-0001/
- https://www.oracle.com/security-alerts/cpuoct2021.html
- https://www.tenable.com/security/tns-2021-14
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.