Skip to content
Heist/ feed
Back to feed
UnratedFix available

ghostscript vulnerabilities

Type: advisorySources: OSV

It was discovered that Ghostscript incorrectly handled certain PostScript files. If a user or automated system were tricked into processing a specially crafted file, a remote attacker could possibly use this issue to cause Ghostscript to crash, resulting in a denial of service, or possibly execute arbitrary code.

Products
ghostscript
Affected versions
9.21~dfsg+1-0ubuntu3, 9.22~dfsg+1-0ubuntu1, 9.22~dfsg+1-0ubuntu1.1, 9.22~dfsg+1-0ubuntu1.2, 9.25~dfsg+1-0ubuntu0.18.04.1, 9.25~dfsg+1-0ubuntu0.18.04.2, 9.26~dfsg+0-0ubuntu0.18.04.1, 9.26~dfsg+0-0ubuntu0.18.04.10, 9.26~dfsg+0-0ubuntu0.18.04.11, 9.26~dfsg+0-0ubuntu0.18.04.12, 9.26~dfsg+0-0ubuntu0.18.04.13, 9.26~dfsg+0-0ubuntu0.18.04.14, 9.26~dfsg+0-0ubuntu0.18.04.3, 9.26~dfsg+0-0ubuntu0.18.04.4, 9.26~dfsg+0-0ubuntu0.18.04.5, 9.26~dfsg+0-0ubuntu0.18.04.6, 9.26~dfsg+0-0ubuntu0.18.04.7, 9.26~dfsg+0-0ubuntu0.18.04.8, 9.26~dfsg+0-0ubuntu0.18.04.9, 9.27~dfsg+0-0ubuntu3, 9.27~dfsg+0-0ubuntu4, 9.50~dfsg-5ubuntu1, 9.50~dfsg-5ubuntu2, 9.50~dfsg-5ubuntu3, 9.50~dfsg-5ubuntu4, 9.50~dfsg-5ubuntu4.1, 9.50~dfsg-5ubuntu4.2, 9.50~dfsg-5ubuntu4.3, 9.50~dfsg-5ubuntu4.4
Fixed versions
9.26~dfsg+0-0ubuntu0.18.04.15, 9.50~dfsg-5ubuntu4.5
CVEs
CVE-2021-45944, CVE-2021-45949
Confirmed fixed CVEs
Not specified
Updated in this feed
28 Oct 2026, 10:04 UTC · Revision 1

Source evidence

ghostscript vulnerabilities

core-osv · Original source

Published 12 Jan 2022, 12:15 UTC

It was discovered that Ghostscript incorrectly handled certain PostScript files. If a user or automated system were tricked into processing a specially crafted file, a remote attacker could possibly use this issue to cause Ghostscript to crash, resulting in a denial of service, or possibly execute arbitrary code.

osv:USN-5224-1

ghostscript

Fixed versions: 9.26~dfsg+0-0ubuntu0.18.04.15

ghostscript

Fixed versions: 9.50~dfsg-5ubuntu4.5

Complete source record
{
  "id": "ead77e5651001770c5648a0fc549a648b3d998e7b32ae2b74cc5ce9f63311087",
  "url": "https://osv.dev/vulnerability/USN-5224-1",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "ghostscript vulnerabilities",
    "summary": "It was discovered that Ghostscript incorrectly handled certain PostScript files. If a user or automated system were tricked into processing a specially crafted file, a remote attacker could possibly use this issue to cause Ghostscript to crash, resulting in a denial of service, or possibly execute arbitrary code.",
    "evidence": "osv:USN-5224-1",
    "products": [
      {
        "name": {
          "value": "ghostscript",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "9.26~dfsg+0-0ubuntu0.18.04.15",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": [
          {
            "value": "9.21~dfsg+1-0ubuntu3",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "9.22~dfsg+1-0ubuntu1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "9.22~dfsg+1-0ubuntu1.1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "9.22~dfsg+1-0ubuntu1.2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "9.25~dfsg+1-0ubuntu0.18.04.1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "9.25~dfsg+1-0ubuntu0.18.04.2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "9.26~dfsg+0-0ubuntu0.18.04.1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "9.26~dfsg+0-0ubuntu0.18.04.3",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "9.26~dfsg+0-0ubuntu0.18.04.4",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "9.26~dfsg+0-0ubuntu0.18.04.5",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "9.26~dfsg+0-0ubuntu0.18.04.6",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "9.26~dfsg+0-0ubuntu0.18.04.7",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "9.26~dfsg+0-0ubuntu0.18.04.8",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "9.26~dfsg+0-0ubuntu0.18.04.9",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "9.26~dfsg+0-0ubuntu0.18.04.10",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "9.26~dfsg+0-0ubuntu0.18.04.11",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "9.26~dfsg+0-0ubuntu0.18.04.12",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "9.26~dfsg+0-0ubuntu0.18.04.13",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "9.26~dfsg+0-0ubuntu0.18.04.14",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "ghostscript",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "9.50~dfsg-5ubuntu4.5",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": [
          {
            "value": "9.27~dfsg+0-0ubuntu3",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "9.27~dfsg+0-0ubuntu4",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "9.50~dfsg-5ubuntu1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "9.50~dfsg-5ubuntu2",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "9.50~dfsg-5ubuntu3",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "9.50~dfsg-5ubuntu4",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "9.50~dfsg-5ubuntu4.1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "9.50~dfsg-5ubuntu4.2",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "9.50~dfsg-5ubuntu4.3",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "9.50~dfsg-5ubuntu4.4",
            "evidence": "/affected/1/versions"
          }
        ]
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "USN-5224-1",
      "aliases": [
        "USN-5224-1"
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "9.26~dfsg+0-0ubuntu0.18.04.15"
                }
              ]
            }
          ],
          "package": {
            "name": "ghostscript",
            "purl": "pkg:deb/ubuntu/ghostscript?arch=source&distro=bionic",
            "ecosystem": "Ubuntu:18.04:LTS"
          },
          "versions": [
            "9.21~dfsg+1-0ubuntu3",
            "9.22~dfsg+1-0ubuntu1",
            "9.22~dfsg+1-0ubuntu1.1",
            "9.22~dfsg+1-0ubuntu1.2",
            "9.25~dfsg+1-0ubuntu0.18.04.1",
            "9.25~dfsg+1-0ubuntu0.18.04.2",
            "9.26~dfsg+0-0ubuntu0.18.04.1",
            "9.26~dfsg+0-0ubuntu0.18.04.3",
            "9.26~dfsg+0-0ubuntu0.18.04.4",
            "9.26~dfsg+0-0ubuntu0.18.04.5",
            "9.26~dfsg+0-0ubuntu0.18.04.6",
            "9.26~dfsg+0-0ubuntu0.18.04.7",
            "9.26~dfsg+0-0ubuntu0.18.04.8",
            "9.26~dfsg+0-0ubuntu0.18.04.9",
            "9.26~dfsg+0-0ubuntu0.18.04.10",
            "9.26~dfsg+0-0ubuntu0.18.04.11",
            "9.26~dfsg+0-0ubuntu0.18.04.12",
            "9.26~dfsg+0-0ubuntu0.18.04.13",
            "9.26~dfsg+0-0ubuntu0.18.04.14"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-5224-1.json",
            "cves_map": {
              "cves": [
                {
                  "id": "CVE-2021-45944",
                  "severity": [
                    {
                      "type": "CVSS_V3",
                      "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"
                    },
                    {
                      "type": "Ubuntu",
                      "score": "medium"
                    }
                  ]
                },
                {
                  "id": "CVE-2021-45949",
                  "severity": [
                    {
                      "type": "CVSS_V3",
                      "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"
                    },
                    {
                      "type": "CVSS_V3",
                      "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:L"
                    },
                    {
                      "type": "Ubuntu",
                      "score": "medium"
                    }
                  ]
                }
              ],
              "ecosystem": "Ubuntu:18.04:LTS"
            }
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "ghostscript",
                "binary_version": "9.26~dfsg+0-0ubuntu0.18.04.15"
              },
              {
                "binary_name": "ghostscript-x",
                "binary_version": "9.26~dfsg+0-0ubuntu0.18.04.15"
              },
              {
                "binary_name": "libgs9",
                "binary_version": "9.26~dfsg+0-0ubuntu0.18.04.15"
              },
              {
                "binary_name": "libgs9-common",
                "binary_version": "9.26~dfsg+0-0ubuntu0.18.04.15"
              }
            ],
            "availability": "No subscription required"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "9.50~dfsg-5ubuntu4.5"
                }
              ]
            }
          ],
          "package": {
            "name": "ghostscript",
            "purl": "pkg:deb/ubuntu/ghostscript?arch=source&distro=focal",
            "ecosystem": "Ubuntu:20.04:LTS"
          },
          "versions": [
            "9.27~dfsg+0-0ubuntu3",
            "9.27~dfsg+0-0ubuntu4",
            "9.50~dfsg-5ubuntu1",
            "9.50~dfsg-5ubuntu2",
            "9.50~dfsg-5ubuntu3",
            "9.50~dfsg-5ubuntu4",
            "9.50~dfsg-5ubuntu4.1",
            "9.50~dfsg-5ubuntu4.2",
            "9.50~dfsg-5ubuntu4.3",
            "9.50~dfsg-5ubuntu4.4"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-5224-1.json",
            "cves_map": {
              "cves": [
                {
                  "id": "CVE-2021-45944",
                  "severity": [
                    {
                      "type": "CVSS_V3",
                      "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"
                    },
                    {
                      "type": "Ubuntu",
                      "score": "medium"
                    }
                  ]
                },
                {
                  "id": "CVE-2021-45949",
                  "severity": [
                    {
                      "type": "CVSS_V3",
                      "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"
                    },
                    {
                      "type": "CVSS_V3",
                      "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:L"
                    },
                    {
                      "type": "Ubuntu",
                      "score": "medium"
                    }
                  ]
                }
              ],
              "ecosystem": "Ubuntu:20.04:LTS"
            }
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "ghostscript",
                "binary_version": "9.50~dfsg-5ubuntu4.5"
              },
              {
                "binary_name": "ghostscript-x",
                "binary_version": "9.50~dfsg-5ubuntu4.5"
              },
              {
                "binary_name": "libgs9",
                "binary_version": "9.50~dfsg-5ubuntu4.5"
              },
              {
                "binary_name": "libgs9-common",
                "binary_version": "9.50~dfsg-5ubuntu4.5"
              }
            ],
            "availability": "No subscription required"
          }
        }
      ],
      "modified": "2026-10-08T19:46:45.339641721Z",
      "provider": "osv",
      "upstream": [
        "CVE-2021-45944",
        "CVE-2021-45949",
        "UBUNTU-CVE-2021-45944",
        "UBUNTU-CVE-2021-45949"
      ],
      "references": [
        "https://ubuntu.com/security/notices/USN-5224-1",
        "https://ubuntu.com/security/CVE-2021-45944",
        "https://ubuntu.com/security/CVE-2021-45949"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2021-45944",
        "evidence": "/upstream"
      },
      {
        "value": "CVE-2021-45949",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 104533,
  "published_at": "2022-01-12T12:15:31+00:00"
}