GCVE Workshop - 22 September 2026 (14:00-18:00), Luxembourg Before The Vulnopticon Conference - Registration
ubuntu-cve-2018-12882
Vulnerability from osv_ubuntu
Published
2018-06-25 00:00
Modified
2026-04-22 07:38
Summary
Details

exif_read_from_impl in ext/exif/exif.c in PHP 7.2.x through 7.2.7 allows attackers to trigger a use-after-free (in exif_read_from_file) because it closes a stream that it is not responsible for closing. The vulnerable code is reachable through the PHP exif_read_data function.

Severity

{
  "affected": [
    {
      "ecosystem_specific": {
        "availability": "No subscription required",
        "binaries": [
          {
            "binary_name": "libapache2-mod-php7.2",
            "binary_version": "7.2.7-0ubuntu0.18.04.2"
          },
          {
            "binary_name": "libphp7.2-embed",
            "binary_version": "7.2.7-0ubuntu0.18.04.2"
          },
          {
            "binary_name": "php7.2",
            "binary_version": "7.2.7-0ubuntu0.18.04.2"
          },
          {
            "binary_name": "php7.2-bcmath",
            "binary_version": "7.2.7-0ubuntu0.18.04.2"
          },
          {
            "binary_name": "php7.2-bz2",
            "binary_version": "7.2.7-0ubuntu0.18.04.2"
          },
          {
            "binary_name": "php7.2-cgi",
            "binary_version": "7.2.7-0ubuntu0.18.04.2"
          },
          {
            "binary_name": "php7.2-cli",
            "binary_version": "7.2.7-0ubuntu0.18.04.2"
          },
          {
            "binary_name": "php7.2-common",
            "binary_version": "7.2.7-0ubuntu0.18.04.2"
          },
          {
            "binary_name": "php7.2-curl",
            "binary_version": "7.2.7-0ubuntu0.18.04.2"
          },
          {
            "binary_name": "php7.2-dba",
            "binary_version": "7.2.7-0ubuntu0.18.04.2"
          },
          {
            "binary_name": "php7.2-enchant",
            "binary_version": "7.2.7-0ubuntu0.18.04.2"
          },
          {
            "binary_name": "php7.2-fpm",
            "binary_version": "7.2.7-0ubuntu0.18.04.2"
          },
          {
            "binary_name": "php7.2-gd",
            "binary_version": "7.2.7-0ubuntu0.18.04.2"
          },
          {
            "binary_name": "php7.2-gmp",
            "binary_version": "7.2.7-0ubuntu0.18.04.2"
          },
          {
            "binary_name": "php7.2-imap",
            "binary_version": "7.2.7-0ubuntu0.18.04.2"
          },
          {
            "binary_name": "php7.2-interbase",
            "binary_version": "7.2.7-0ubuntu0.18.04.2"
          },
          {
            "binary_name": "php7.2-intl",
            "binary_version": "7.2.7-0ubuntu0.18.04.2"
          },
          {
            "binary_name": "php7.2-json",
            "binary_version": "7.2.7-0ubuntu0.18.04.2"
          },
          {
            "binary_name": "php7.2-ldap",
            "binary_version": "7.2.7-0ubuntu0.18.04.2"
          },
          {
            "binary_name": "php7.2-mbstring",
            "binary_version": "7.2.7-0ubuntu0.18.04.2"
          },
          {
            "binary_name": "php7.2-mysql",
            "binary_version": "7.2.7-0ubuntu0.18.04.2"
          },
          {
            "binary_name": "php7.2-odbc",
            "binary_version": "7.2.7-0ubuntu0.18.04.2"
          },
          {
            "binary_name": "php7.2-opcache",
            "binary_version": "7.2.7-0ubuntu0.18.04.2"
          },
          {
            "binary_name": "php7.2-pgsql",
            "binary_version": "7.2.7-0ubuntu0.18.04.2"
          },
          {
            "binary_name": "php7.2-phpdbg",
            "binary_version": "7.2.7-0ubuntu0.18.04.2"
          },
          {
            "binary_name": "php7.2-pspell",
            "binary_version": "7.2.7-0ubuntu0.18.04.2"
          },
          {
            "binary_name": "php7.2-readline",
            "binary_version": "7.2.7-0ubuntu0.18.04.2"
          },
          {
            "binary_name": "php7.2-recode",
            "binary_version": "7.2.7-0ubuntu0.18.04.2"
          },
          {
            "binary_name": "php7.2-snmp",
            "binary_version": "7.2.7-0ubuntu0.18.04.2"
          },
          {
            "binary_name": "php7.2-soap",
            "binary_version": "7.2.7-0ubuntu0.18.04.2"
          },
          {
            "binary_name": "php7.2-sqlite3",
            "binary_version": "7.2.7-0ubuntu0.18.04.2"
          },
          {
            "binary_name": "php7.2-sybase",
            "binary_version": "7.2.7-0ubuntu0.18.04.2"
          },
          {
            "binary_name": "php7.2-tidy",
            "binary_version": "7.2.7-0ubuntu0.18.04.2"
          },
          {
            "binary_name": "php7.2-xml",
            "binary_version": "7.2.7-0ubuntu0.18.04.2"
          },
          {
            "binary_name": "php7.2-xmlrpc",
            "binary_version": "7.2.7-0ubuntu0.18.04.2"
          },
          {
            "binary_name": "php7.2-xsl",
            "binary_version": "7.2.7-0ubuntu0.18.04.2"
          },
          {
            "binary_name": "php7.2-zip",
            "binary_version": "7.2.7-0ubuntu0.18.04.2"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:18.04:LTS",
        "name": "php7.2",
        "purl": "pkg:deb/ubuntu/php7.2@7.2.7-0ubuntu0.18.04.2?arch=source\u0026distro=bionic"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "7.2.7-0ubuntu0.18.04.2"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "7.2.1-1ubuntu2",
        "7.2.2-1ubuntu1",
        "7.2.2-1ubuntu2",
        "7.2.3-1ubuntu1",
        "7.2.5-0ubuntu0.18.04.1",
        "7.2.7-0ubuntu0.18.04.1"
      ]
    }
  ],
  "aliases": [],
  "details": "exif_read_from_impl in ext/exif/exif.c in PHP 7.2.x through 7.2.7 allows attackers to trigger a use-after-free (in exif_read_from_file) because it closes a stream that it is not responsible for closing. The vulnerable code is reachable through the PHP exif_read_data function.",
  "id": "UBUNTU-CVE-2018-12882",
  "modified": "2026-04-22T07:38:39Z",
  "published": "2018-06-25T00:00:00Z",
  "references": [
    {
      "type": "REPORT",
      "url": "https://ubuntu.com/security/CVE-2018-12882"
    },
    {
      "type": "ADVISORY",
      "url": "https://ubuntu.com/security/notices/USN-3702-1"
    },
    {
      "type": "ADVISORY",
      "url": "https://ubuntu.com/security/notices/USN-3702-2"
    },
    {
      "type": "REPORT",
      "url": "https://www.cve.org/CVERecord?id=CVE-2018-12882"
    }
  ],
  "related": [
    "USN-3702-1",
    "USN-3702-2"
  ],
  "schema_version": "1.7.0",
  "severity": [
    {
      "score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    },
    {
      "score": "medium",
      "type": "Ubuntu"
    }
  ],
  "upstream": [
    "CVE-2018-12882"
  ]
}



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…

Loading…