ubuntu-cve-2021-39212
Vulnerability from osv_ubuntu
Published
2021-09-13 18:15
Modified
2026-04-22 07:40
Summary
Details

ImageMagick is free software delivered as a ready-to-run binary distribution or as source code that you may use, copy, modify, and distribute in both open and proprietary applications. In affected versions and in certain cases, Postscript files could be read and written when specifically excluded by a module policy in policy.xml. ex. . The issue has been resolved in ImageMagick 7.1.0-7 and in 6.9.12-22. Fortunately, in the wild, few users utilize the module policy and instead use the coder policy that is also our workaround recommendation: .


{
  "affected": [
    {
      "ecosystem_specific": {
        "availability": "No subscription required",
        "binaries": [
          {
            "binary_name": "imagemagick",
            "binary_version": "8:6.9.10.23+dfsg-2.1ubuntu11.9"
          },
          {
            "binary_name": "imagemagick-6-common",
            "binary_version": "8:6.9.10.23+dfsg-2.1ubuntu11.9"
          },
          {
            "binary_name": "imagemagick-6.q16",
            "binary_version": "8:6.9.10.23+dfsg-2.1ubuntu11.9"
          },
          {
            "binary_name": "imagemagick-6.q16hdri",
            "binary_version": "8:6.9.10.23+dfsg-2.1ubuntu11.9"
          },
          {
            "binary_name": "imagemagick-common",
            "binary_version": "8:6.9.10.23+dfsg-2.1ubuntu11.9"
          },
          {
            "binary_name": "libimage-magick-perl",
            "binary_version": "8:6.9.10.23+dfsg-2.1ubuntu11.9"
          },
          {
            "binary_name": "libimage-magick-q16-perl",
            "binary_version": "8:6.9.10.23+dfsg-2.1ubuntu11.9"
          },
          {
            "binary_name": "libimage-magick-q16hdri-perl",
            "binary_version": "8:6.9.10.23+dfsg-2.1ubuntu11.9"
          },
          {
            "binary_name": "libmagick++-6-headers",
            "binary_version": "8:6.9.10.23+dfsg-2.1ubuntu11.9"
          },
          {
            "binary_name": "libmagick++-6.q16-8",
            "binary_version": "8:6.9.10.23+dfsg-2.1ubuntu11.9"
          },
          {
            "binary_name": "libmagick++-6.q16hdri-8",
            "binary_version": "8:6.9.10.23+dfsg-2.1ubuntu11.9"
          },
          {
            "binary_name": "libmagickcore-6-arch-config",
            "binary_version": "8:6.9.10.23+dfsg-2.1ubuntu11.9"
          },
          {
            "binary_name": "libmagickcore-6-headers",
            "binary_version": "8:6.9.10.23+dfsg-2.1ubuntu11.9"
          },
          {
            "binary_name": "libmagickcore-6.q16-6",
            "binary_version": "8:6.9.10.23+dfsg-2.1ubuntu11.9"
          },
          {
            "binary_name": "libmagickcore-6.q16-6-extra",
            "binary_version": "8:6.9.10.23+dfsg-2.1ubuntu11.9"
          },
          {
            "binary_name": "libmagickcore-6.q16hdri-6",
            "binary_version": "8:6.9.10.23+dfsg-2.1ubuntu11.9"
          },
          {
            "binary_name": "libmagickcore-6.q16hdri-6-extra",
            "binary_version": "8:6.9.10.23+dfsg-2.1ubuntu11.9"
          },
          {
            "binary_name": "libmagickwand-6-headers",
            "binary_version": "8:6.9.10.23+dfsg-2.1ubuntu11.9"
          },
          {
            "binary_name": "libmagickwand-6.q16-6",
            "binary_version": "8:6.9.10.23+dfsg-2.1ubuntu11.9"
          },
          {
            "binary_name": "libmagickwand-6.q16hdri-6",
            "binary_version": "8:6.9.10.23+dfsg-2.1ubuntu11.9"
          },
          {
            "binary_name": "perlmagick",
            "binary_version": "8:6.9.10.23+dfsg-2.1ubuntu11.9"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:20.04:LTS",
        "name": "imagemagick",
        "purl": "pkg:deb/ubuntu/imagemagick@8:6.9.10.23+dfsg-2.1ubuntu11.9?arch=source\u0026distro=focal"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "8:6.9.10.23+dfsg-2.1ubuntu11.9"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "8:6.9.10.23+dfsg-2.1ubuntu3",
        "8:6.9.10.23+dfsg-2.1ubuntu8",
        "8:6.9.10.23+dfsg-2.1ubuntu9",
        "8:6.9.10.23+dfsg-2.1ubuntu10",
        "8:6.9.10.23+dfsg-2.1ubuntu11",
        "8:6.9.10.23+dfsg-2.1ubuntu11.1",
        "8:6.9.10.23+dfsg-2.1ubuntu11.2",
        "8:6.9.10.23+dfsg-2.1ubuntu11.4",
        "8:6.9.10.23+dfsg-2.1ubuntu11.5",
        "8:6.9.10.23+dfsg-2.1ubuntu11.6",
        "8:6.9.10.23+dfsg-2.1ubuntu11.7"
      ]
    },
    {
      "ecosystem_specific": {
        "availability": "Available with Ubuntu Pro: https://ubuntu.com/pro",
        "binaries": [
          {
            "binary_name": "imagemagick",
            "binary_version": "8:6.9.11.60+dfsg-1.3ubuntu0.22.04.1+esm1"
          },
          {
            "binary_name": "imagemagick-6-common",
            "binary_version": "8:6.9.11.60+dfsg-1.3ubuntu0.22.04.1+esm1"
          },
          {
            "binary_name": "imagemagick-6.q16",
            "binary_version": "8:6.9.11.60+dfsg-1.3ubuntu0.22.04.1+esm1"
          },
          {
            "binary_name": "imagemagick-6.q16hdri",
            "binary_version": "8:6.9.11.60+dfsg-1.3ubuntu0.22.04.1+esm1"
          },
          {
            "binary_name": "imagemagick-common",
            "binary_version": "8:6.9.11.60+dfsg-1.3ubuntu0.22.04.1+esm1"
          },
          {
            "binary_name": "libimage-magick-perl",
            "binary_version": "8:6.9.11.60+dfsg-1.3ubuntu0.22.04.1+esm1"
          },
          {
            "binary_name": "libimage-magick-q16-perl",
            "binary_version": "8:6.9.11.60+dfsg-1.3ubuntu0.22.04.1+esm1"
          },
          {
            "binary_name": "libimage-magick-q16hdri-perl",
            "binary_version": "8:6.9.11.60+dfsg-1.3ubuntu0.22.04.1+esm1"
          },
          {
            "binary_name": "libmagick++-6-headers",
            "binary_version": "8:6.9.11.60+dfsg-1.3ubuntu0.22.04.1+esm1"
          },
          {
            "binary_name": "libmagick++-6.q16-8",
            "binary_version": "8:6.9.11.60+dfsg-1.3ubuntu0.22.04.1+esm1"
          },
          {
            "binary_name": "libmagick++-6.q16hdri-8",
            "binary_version": "8:6.9.11.60+dfsg-1.3ubuntu0.22.04.1+esm1"
          },
          {
            "binary_name": "libmagickcore-6-arch-config",
            "binary_version": "8:6.9.11.60+dfsg-1.3ubuntu0.22.04.1+esm1"
          },
          {
            "binary_name": "libmagickcore-6-headers",
            "binary_version": "8:6.9.11.60+dfsg-1.3ubuntu0.22.04.1+esm1"
          },
          {
            "binary_name": "libmagickcore-6.q16-6",
            "binary_version": "8:6.9.11.60+dfsg-1.3ubuntu0.22.04.1+esm1"
          },
          {
            "binary_name": "libmagickcore-6.q16-6-extra",
            "binary_version": "8:6.9.11.60+dfsg-1.3ubuntu0.22.04.1+esm1"
          },
          {
            "binary_name": "libmagickcore-6.q16hdri-6",
            "binary_version": "8:6.9.11.60+dfsg-1.3ubuntu0.22.04.1+esm1"
          },
          {
            "binary_name": "libmagickcore-6.q16hdri-6-extra",
            "binary_version": "8:6.9.11.60+dfsg-1.3ubuntu0.22.04.1+esm1"
          },
          {
            "binary_name": "libmagickwand-6-headers",
            "binary_version": "8:6.9.11.60+dfsg-1.3ubuntu0.22.04.1+esm1"
          },
          {
            "binary_name": "libmagickwand-6.q16-6",
            "binary_version": "8:6.9.11.60+dfsg-1.3ubuntu0.22.04.1+esm1"
          },
          {
            "binary_name": "libmagickwand-6.q16hdri-6",
            "binary_version": "8:6.9.11.60+dfsg-1.3ubuntu0.22.04.1+esm1"
          },
          {
            "binary_name": "perlmagick",
            "binary_version": "8:6.9.11.60+dfsg-1.3ubuntu0.22.04.1+esm1"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:Pro:22.04:LTS",
        "name": "imagemagick",
        "purl": "pkg:deb/ubuntu/imagemagick@8:6.9.11.60+dfsg-1.3ubuntu0.22.04.1+esm1?arch=source\u0026distro=esm-apps/jammy"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "8:6.9.11.60+dfsg-1.3ubuntu0.22.04.1+esm1"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "8:6.9.11.60+dfsg-1ubuntu1",
        "8:6.9.11.60+dfsg-1.3",
        "8:6.9.11.60+dfsg-1.3build1",
        "8:6.9.11.60+dfsg-1.3build2",
        "8:6.9.11.60+dfsg-1.3ubuntu0.22.04.1"
      ]
    }
  ],
  "aliases": [],
  "details": "ImageMagick is free software delivered as a ready-to-run binary distribution or as source code that you may use, copy, modify, and distribute in both open and proprietary applications. In affected versions and in certain cases, Postscript files could be read and written when specifically excluded by a `module` policy in `policy.xml`. ex. \u003cpolicy domain=\"module\" rights=\"none\" pattern=\"PS\" /\u003e. The issue has been resolved in ImageMagick 7.1.0-7 and in 6.9.12-22. Fortunately, in the wild, few users utilize the `module` policy and instead use the `coder` policy that is also our workaround recommendation: \u003cpolicy domain=\"coder\" rights=\"none\" pattern=\"{PS,EPI,EPS,EPSF,EPSI}\" /\u003e.",
  "id": "UBUNTU-CVE-2021-39212",
  "modified": "2026-04-22T07:40:08Z",
  "published": "2021-09-13T18:15:00Z",
  "references": [
    {
      "type": "REPORT",
      "url": "https://ubuntu.com/security/CVE-2021-39212"
    },
    {
      "type": "REPORT",
      "url": "https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-qvhr-jj4p-j2qr"
    },
    {
      "type": "ADVISORY",
      "url": "https://ubuntu.com/security/notices/USN-5736-1"
    },
    {
      "type": "ADVISORY",
      "url": "https://ubuntu.com/security/notices/USN-5736-2"
    },
    {
      "type": "ADVISORY",
      "url": "https://ubuntu.com/security/notices/USN-6200-1"
    },
    {
      "type": "REPORT",
      "url": "https://www.cve.org/CVERecord?id=CVE-2021-39212"
    }
  ],
  "related": [
    "USN-5736-1",
    "USN-5736-2",
    "USN-6200-1"
  ],
  "schema_version": "1.7.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N",
      "type": "CVSS_V3"
    },
    {
      "score": "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N",
      "type": "CVSS_V3"
    },
    {
      "score": "low",
      "type": "Ubuntu"
    }
  ],
  "upstream": [
    "CVE-2021-39212"
  ]
}



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…