ubuntu-cve-2020-7065
Vulnerability from osv_ubuntu
Published
2020-04-01 04:15
Modified
2026-04-22 07:39
Summary
Details

In PHP versions 7.3.x below 7.3.16 and 7.4.x below 7.4.4, while using mb_strtolower() function with UTF-32LE encoding, certain invalid strings could cause PHP to overwrite stack-allocated buffer. This could lead to memory corruption, crashes and potentially code execution.


{
  "affected": [
    {
      "ecosystem_specific": {
        "availability": "No subscription required",
        "binaries": [
          {
            "binary_name": "libapache2-mod-php7.4",
            "binary_version": "7.4.3-4ubuntu1.1"
          },
          {
            "binary_name": "libphp7.4-embed",
            "binary_version": "7.4.3-4ubuntu1.1"
          },
          {
            "binary_name": "php7.4",
            "binary_version": "7.4.3-4ubuntu1.1"
          },
          {
            "binary_name": "php7.4-bcmath",
            "binary_version": "7.4.3-4ubuntu1.1"
          },
          {
            "binary_name": "php7.4-bz2",
            "binary_version": "7.4.3-4ubuntu1.1"
          },
          {
            "binary_name": "php7.4-cgi",
            "binary_version": "7.4.3-4ubuntu1.1"
          },
          {
            "binary_name": "php7.4-cli",
            "binary_version": "7.4.3-4ubuntu1.1"
          },
          {
            "binary_name": "php7.4-common",
            "binary_version": "7.4.3-4ubuntu1.1"
          },
          {
            "binary_name": "php7.4-curl",
            "binary_version": "7.4.3-4ubuntu1.1"
          },
          {
            "binary_name": "php7.4-dba",
            "binary_version": "7.4.3-4ubuntu1.1"
          },
          {
            "binary_name": "php7.4-enchant",
            "binary_version": "7.4.3-4ubuntu1.1"
          },
          {
            "binary_name": "php7.4-fpm",
            "binary_version": "7.4.3-4ubuntu1.1"
          },
          {
            "binary_name": "php7.4-gd",
            "binary_version": "7.4.3-4ubuntu1.1"
          },
          {
            "binary_name": "php7.4-gmp",
            "binary_version": "7.4.3-4ubuntu1.1"
          },
          {
            "binary_name": "php7.4-imap",
            "binary_version": "7.4.3-4ubuntu1.1"
          },
          {
            "binary_name": "php7.4-interbase",
            "binary_version": "7.4.3-4ubuntu1.1"
          },
          {
            "binary_name": "php7.4-intl",
            "binary_version": "7.4.3-4ubuntu1.1"
          },
          {
            "binary_name": "php7.4-json",
            "binary_version": "7.4.3-4ubuntu1.1"
          },
          {
            "binary_name": "php7.4-ldap",
            "binary_version": "7.4.3-4ubuntu1.1"
          },
          {
            "binary_name": "php7.4-mbstring",
            "binary_version": "7.4.3-4ubuntu1.1"
          },
          {
            "binary_name": "php7.4-mysql",
            "binary_version": "7.4.3-4ubuntu1.1"
          },
          {
            "binary_name": "php7.4-odbc",
            "binary_version": "7.4.3-4ubuntu1.1"
          },
          {
            "binary_name": "php7.4-opcache",
            "binary_version": "7.4.3-4ubuntu1.1"
          },
          {
            "binary_name": "php7.4-pgsql",
            "binary_version": "7.4.3-4ubuntu1.1"
          },
          {
            "binary_name": "php7.4-phpdbg",
            "binary_version": "7.4.3-4ubuntu1.1"
          },
          {
            "binary_name": "php7.4-pspell",
            "binary_version": "7.4.3-4ubuntu1.1"
          },
          {
            "binary_name": "php7.4-readline",
            "binary_version": "7.4.3-4ubuntu1.1"
          },
          {
            "binary_name": "php7.4-snmp",
            "binary_version": "7.4.3-4ubuntu1.1"
          },
          {
            "binary_name": "php7.4-soap",
            "binary_version": "7.4.3-4ubuntu1.1"
          },
          {
            "binary_name": "php7.4-sqlite3",
            "binary_version": "7.4.3-4ubuntu1.1"
          },
          {
            "binary_name": "php7.4-sybase",
            "binary_version": "7.4.3-4ubuntu1.1"
          },
          {
            "binary_name": "php7.4-tidy",
            "binary_version": "7.4.3-4ubuntu1.1"
          },
          {
            "binary_name": "php7.4-xml",
            "binary_version": "7.4.3-4ubuntu1.1"
          },
          {
            "binary_name": "php7.4-xmlrpc",
            "binary_version": "7.4.3-4ubuntu1.1"
          },
          {
            "binary_name": "php7.4-xsl",
            "binary_version": "7.4.3-4ubuntu1.1"
          },
          {
            "binary_name": "php7.4-zip",
            "binary_version": "7.4.3-4ubuntu1.1"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:20.04:LTS",
        "name": "php7.4",
        "purl": "pkg:deb/ubuntu/php7.4@7.4.3-4ubuntu1.1?arch=source\u0026distro=focal"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "7.4.3-4ubuntu1.1"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "7.4.3-4build1",
        "7.4.3-4build2",
        "7.4.3-4ubuntu1"
      ]
    }
  ],
  "aliases": [],
  "details": "In PHP versions 7.3.x below 7.3.16 and 7.4.x below 7.4.4, while using mb_strtolower() function with UTF-32LE encoding, certain invalid strings could cause PHP to overwrite stack-allocated buffer. This could lead to memory corruption, crashes and potentially code execution.",
  "id": "UBUNTU-CVE-2020-7065",
  "modified": "2026-04-22T07:39:19Z",
  "published": "2020-04-01T04:15:00Z",
  "references": [
    {
      "type": "REPORT",
      "url": "https://ubuntu.com/security/CVE-2020-7065"
    },
    {
      "type": "REPORT",
      "url": "http://git.php.net/?p=php-src.git;a=commitdiff;h=69155120e68d2e614d5c300974a1a5610cfa2e8b;hp=e2b5f18896ca4169859c8ca058a9926aad6e3763"
    },
    {
      "type": "ADVISORY",
      "url": "https://ubuntu.com/security/notices/USN-4330-1"
    },
    {
      "type": "ADVISORY",
      "url": "https://ubuntu.com/security/notices/USN-4330-2"
    },
    {
      "type": "REPORT",
      "url": "https://www.cve.org/CVERecord?id=CVE-2020-7065"
    }
  ],
  "related": [
    "USN-4330-1",
    "USN-4330-2"
  ],
  "schema_version": "1.7.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    },
    {
      "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H",
      "type": "CVSS_V3"
    },
    {
      "score": "medium",
      "type": "Ubuntu"
    }
  ],
  "upstream": [
    "CVE-2020-7065"
  ]
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…