ubuntu-cve-2022-38171
Vulnerability from osv_ubuntu
Published
2022-08-22 19:15
Modified
2026-05-20 14:56
Summary
Details

Xpdf prior to version 4.04 contains an integer overflow in the JBIG2 decoder (JBIG2Stream::readTextRegionSeg() in JBIG2Stream.cc). Processing a specially crafted PDF file or JBIG2 image could lead to a crash or the execution of arbitrary code. This is similar to the vulnerability described by CVE-2021-30860 (Apple CoreGraphics).


{
  "affected": [
    {
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "libkpathsea6",
            "binary_version": "2015.20160222.37495-1ubuntu0.1+esm1"
          },
          {
            "binary_name": "libptexenc1",
            "binary_version": "2015.20160222.37495-1ubuntu0.1+esm1"
          },
          {
            "binary_name": "libsynctex1",
            "binary_version": "2015.20160222.37495-1ubuntu0.1+esm1"
          },
          {
            "binary_name": "libtexlua52",
            "binary_version": "2015.20160222.37495-1ubuntu0.1+esm1"
          },
          {
            "binary_name": "libtexluajit2",
            "binary_version": "2015.20160222.37495-1ubuntu0.1+esm1"
          },
          {
            "binary_name": "texlive-binaries",
            "binary_version": "2015.20160222.37495-1ubuntu0.1+esm1"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:Pro:16.04:LTS",
        "name": "texlive-bin",
        "purl": "pkg:deb/ubuntu/texlive-bin@2015.20160222.37495-1ubuntu0.1+esm1?arch=source\u0026distro=esm-infra/xenial"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "2015.20150524.37493-5build1",
        "2015.20150524.37493-7",
        "2015.20150524.37493-7build1",
        "2015.20150524.37493-7build4",
        "2015.20160222.37495-1",
        "2015.20160222.37495-1ubuntu0.1",
        "2015.20160222.37495-1ubuntu0.1+esm1"
      ]
    },
    {
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "ipe",
            "binary_version": "7.1.10-1.1"
          },
          {
            "binary_name": "libipe7.1.10",
            "binary_version": "7.1.10-1.1"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:16.04:LTS",
        "name": "ipe",
        "purl": "pkg:deb/ubuntu/ipe@7.1.10-1.1?arch=source\u0026distro=xenial"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "7.1.4-2.1",
        "7.1.8-1",
        "7.1.10-1",
        "7.1.10-1.1"
      ]
    },
    {
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "xpdf",
            "binary_version": "3.04-1ubuntu1.1"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:16.04:LTS",
        "name": "xpdf",
        "purl": "pkg:deb/ubuntu/xpdf@3.04-1ubuntu1.1?arch=source\u0026distro=xenial"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "3.03-17ubuntu2",
        "3.03-17ubuntu3",
        "3.03-17ubuntu5",
        "3.03-18",
        "3.04-1",
        "3.04-1build1",
        "3.04-1ubuntu1",
        "3.04-1ubuntu1.1"
      ]
    },
    {
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "libkpathsea6",
            "binary_version": "2017.20170613.44572-8ubuntu0.2+esm1"
          },
          {
            "binary_name": "libptexenc1",
            "binary_version": "2017.20170613.44572-8ubuntu0.2+esm1"
          },
          {
            "binary_name": "libsynctex1",
            "binary_version": "2017.20170613.44572-8ubuntu0.2+esm1"
          },
          {
            "binary_name": "libtexlua52",
            "binary_version": "2017.20170613.44572-8ubuntu0.2+esm1"
          },
          {
            "binary_name": "libtexluajit2",
            "binary_version": "2017.20170613.44572-8ubuntu0.2+esm1"
          },
          {
            "binary_name": "texlive-binaries",
            "binary_version": "2017.20170613.44572-8ubuntu0.2+esm1"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:Pro:18.04:LTS",
        "name": "texlive-bin",
        "purl": "pkg:deb/ubuntu/texlive-bin@2017.20170613.44572-8ubuntu0.2+esm1?arch=source\u0026distro=esm-infra/bionic"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "2017.20170613.44572-5build1",
        "2017.20170613.44572-5build2",
        "2017.20170613.44572-6",
        "2017.20170613.44572-6build1",
        "2017.20170613.44572-6ubuntu1",
        "2017.20170613.44572-8build1",
        "2017.20170613.44572-8ubuntu0.1",
        "2017.20170613.44572-8ubuntu0.2",
        "2017.20170613.44572-8ubuntu0.2+esm1"
      ]
    },
    {
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "ipe",
            "binary_version": "7.2.7-3"
          },
          {
            "binary_name": "libipe7.2.7",
            "binary_version": "7.2.7-3"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:18.04:LTS",
        "name": "ipe",
        "purl": "pkg:deb/ubuntu/ipe@7.2.7-3?arch=source\u0026distro=bionic"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "7.2.7-2",
        "7.2.7-3"
      ]
    },
    {
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "xpdf",
            "binary_version": "3.04-7"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:18.04:LTS",
        "name": "xpdf",
        "purl": "pkg:deb/ubuntu/xpdf@3.04-7?arch=source\u0026distro=bionic"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "3.04-4build1",
        "3.04-5",
        "3.04-5ubuntu2",
        "3.04-6ubuntu1",
        "3.04-7"
      ]
    },
    {
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "libkpathsea6",
            "binary_version": "2019.20190605.51237-3ubuntu0.2+esm1"
          },
          {
            "binary_name": "libptexenc1",
            "binary_version": "2019.20190605.51237-3ubuntu0.2+esm1"
          },
          {
            "binary_name": "libsynctex2",
            "binary_version": "2019.20190605.51237-3ubuntu0.2+esm1"
          },
          {
            "binary_name": "libtexlua53",
            "binary_version": "2019.20190605.51237-3ubuntu0.2+esm1"
          },
          {
            "binary_name": "libtexluajit2",
            "binary_version": "2019.20190605.51237-3ubuntu0.2+esm1"
          },
          {
            "binary_name": "texlive-binaries",
            "binary_version": "2019.20190605.51237-3ubuntu0.2+esm1"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:Pro:20.04:LTS",
        "name": "texlive-bin",
        "purl": "pkg:deb/ubuntu/texlive-bin@2019.20190605.51237-3ubuntu0.2+esm1?arch=source\u0026distro=esm-infra/focal"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "2019.20190605.51237-2build1",
        "2019.20190605.51237-3",
        "2019.20190605.51237-3build1",
        "2019.20190605.51237-3build2",
        "2019.20190605.51237-3ubuntu0.1",
        "2019.20190605.51237-3ubuntu0.2",
        "2019.20190605.51237-3ubuntu0.2+esm1"
      ]
    },
    {
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "ipe",
            "binary_version": "7.2.13-2build1"
          },
          {
            "binary_name": "libipe7.2.13",
            "binary_version": "7.2.13-2build1"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:20.04:LTS",
        "name": "ipe",
        "purl": "pkg:deb/ubuntu/ipe@7.2.13-2build1?arch=source\u0026distro=focal"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "7.2.9-1",
        "7.2.13-2",
        "7.2.13-2build1"
      ]
    },
    {
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "ipe",
            "binary_version": "7.2.24+dfsg1-1build1"
          },
          {
            "binary_name": "libipe7.2.24",
            "binary_version": "7.2.24+dfsg1-1build1"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:22.04:LTS",
        "name": "ipe",
        "purl": "pkg:deb/ubuntu/ipe@7.2.24+dfsg1-1build1?arch=source\u0026distro=jammy"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "7.2.23+dfsg1-2",
        "7.2.24+dfsg1-1",
        "7.2.24+dfsg1-1build1"
      ]
    },
    {
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "libkpathsea6",
            "binary_version": "2021.20210626.59705-1ubuntu0.3"
          },
          {
            "binary_name": "libptexenc1",
            "binary_version": "2021.20210626.59705-1ubuntu0.3"
          },
          {
            "binary_name": "libsynctex2",
            "binary_version": "2021.20210626.59705-1ubuntu0.3"
          },
          {
            "binary_name": "libtexlua53",
            "binary_version": "2021.20210626.59705-1ubuntu0.3"
          },
          {
            "binary_name": "libtexluajit2",
            "binary_version": "2021.20210626.59705-1ubuntu0.3"
          },
          {
            "binary_name": "texlive-binaries",
            "binary_version": "2021.20210626.59705-1ubuntu0.3"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:22.04:LTS",
        "name": "texlive-bin",
        "purl": "pkg:deb/ubuntu/texlive-bin@2021.20210626.59705-1ubuntu0.3?arch=source\u0026distro=jammy"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "2020.20200327.54578-7",
        "2020.20200327.54578-7build1",
        "2021.20210626.59705-1",
        "2021.20210626.59705-1build1",
        "2021.20210626.59705-1ubuntu0.1",
        "2021.20210626.59705-1ubuntu0.2",
        "2021.20210626.59705-1ubuntu0.3"
      ]
    },
    {
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "ipe",
            "binary_version": "7.2.28-2.1build4"
          },
          {
            "binary_name": "libipe7.2.28t64",
            "binary_version": "7.2.28-2.1build4"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:24.04:LTS",
        "name": "ipe",
        "purl": "pkg:deb/ubuntu/ipe@7.2.28-2.1build4?arch=source\u0026distro=noble"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "7.2.27+dfsg1-2",
        "7.2.28-2",
        "7.2.28-2.1build2",
        "7.2.28-2.1build3",
        "7.2.28-2.1build4"
      ]
    },
    {
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "libkpathsea6",
            "binary_version": "2023.20230311.66589-9build3"
          },
          {
            "binary_name": "libptexenc1",
            "binary_version": "2023.20230311.66589-9build3"
          },
          {
            "binary_name": "libsynctex2",
            "binary_version": "2023.20230311.66589-9build3"
          },
          {
            "binary_name": "libtexlua53",
            "binary_version": "2023.20230311.66589-9build3"
          },
          {
            "binary_name": "libtexlua53-5",
            "binary_version": "2023.20230311.66589-9build3"
          },
          {
            "binary_name": "libtexluajit2",
            "binary_version": "2023.20230311.66589-9build3"
          },
          {
            "binary_name": "texlive-binaries",
            "binary_version": "2023.20230311.66589-9build3"
          },
          {
            "binary_name": "texlive-binaries-sse2",
            "binary_version": "2023.20230311.66589-9build3"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:24.04:LTS",
        "name": "texlive-bin",
        "purl": "pkg:deb/ubuntu/texlive-bin@2023.20230311.66589-9build3?arch=source\u0026distro=noble"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "2023.20230311.66589-6",
        "2023.20230311.66589-7",
        "2023.20230311.66589-8",
        "2023.20230311.66589-8build1",
        "2023.20230311.66589-9",
        "2023.20230311.66589-9build2",
        "2023.20230311.66589-9build3"
      ]
    },
    {
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "ipe",
            "binary_version": "7.2.30-1build1"
          },
          {
            "binary_name": "libipe7.2.30",
            "binary_version": "7.2.30-1build1"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:25.10",
        "name": "ipe",
        "purl": "pkg:deb/ubuntu/ipe@7.2.30-1build1?arch=source\u0026distro=questing"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "7.2.30-1build1"
      ]
    },
    {
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "libkpathsea6",
            "binary_version": "2024.20240313.70630+ds-6ubuntu2"
          },
          {
            "binary_name": "libptexenc1",
            "binary_version": "2024.20240313.70630+ds-6ubuntu2"
          },
          {
            "binary_name": "libsynctex2",
            "binary_version": "2024.20240313.70630+ds-6ubuntu2"
          },
          {
            "binary_name": "libtexlua53",
            "binary_version": "2024.20240313.70630+ds-6ubuntu2"
          },
          {
            "binary_name": "libtexlua53-5",
            "binary_version": "2024.20240313.70630+ds-6ubuntu2"
          },
          {
            "binary_name": "libtexluajit2",
            "binary_version": "2024.20240313.70630+ds-6ubuntu2"
          },
          {
            "binary_name": "texlive-binaries",
            "binary_version": "2024.20240313.70630+ds-6ubuntu2"
          },
          {
            "binary_name": "texlive-binaries-sse2",
            "binary_version": "2024.20240313.70630+ds-6ubuntu2"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:25.10",
        "name": "texlive-bin",
        "purl": "pkg:deb/ubuntu/texlive-bin@2024.20240313.70630+ds-6ubuntu2?arch=source\u0026distro=questing"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "2024.20240313.70630+ds-6",
        "2024.20240313.70630+ds-6ubuntu2"
      ]
    },
    {
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "ipe",
            "binary_version": "7.2.30-1build2"
          },
          {
            "binary_name": "libipe7.2.30",
            "binary_version": "7.2.30-1build2"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:26.04:LTS",
        "name": "ipe",
        "purl": "pkg:deb/ubuntu/ipe@7.2.30-1build2?arch=source\u0026distro=resolute"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "7.2.30-1build1",
        "7.2.30-1build2"
      ]
    },
    {
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "libkpathsea6",
            "binary_version": "2025.20250727.75242+ds-5build1"
          },
          {
            "binary_name": "libptexenc1",
            "binary_version": "2025.20250727.75242+ds-5build1"
          },
          {
            "binary_name": "libsynctex2",
            "binary_version": "2025.20250727.75242+ds-5build1"
          },
          {
            "binary_name": "libtexlua53-5",
            "binary_version": "2025.20250727.75242+ds-5build1"
          },
          {
            "binary_name": "libtexluajit2",
            "binary_version": "2025.20250727.75242+ds-5build1"
          },
          {
            "binary_name": "texlive-binaries",
            "binary_version": "2025.20250727.75242+ds-5build1"
          },
          {
            "binary_name": "texlive-binaries-sse2",
            "binary_version": "2025.20250727.75242+ds-5build1"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:26.04:LTS",
        "name": "texlive-bin",
        "purl": "pkg:deb/ubuntu/texlive-bin@2025.20250727.75242+ds-5build1?arch=source\u0026distro=resolute"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "2024.20240313.70630+ds-6ubuntu2",
        "2025.20250727.75242+ds-4ubuntu2",
        "2025.20250727.75242+ds-5",
        "2025.20250727.75242+ds-5build1"
      ]
    }
  ],
  "aliases": [],
  "details": "Xpdf prior to version 4.04 contains an integer overflow in the JBIG2 decoder (JBIG2Stream::readTextRegionSeg() in JBIG2Stream.cc). Processing a specially crafted PDF file or JBIG2 image could lead to a crash or the execution of arbitrary code. This is similar to the vulnerability described by CVE-2021-30860 (Apple CoreGraphics).",
  "id": "UBUNTU-CVE-2022-38171",
  "modified": "2026-05-20T14:56:08Z",
  "published": "2022-08-22T19:15:00Z",
  "references": [
    {
      "type": "REPORT",
      "url": "https://ubuntu.com/security/CVE-2022-38171"
    },
    {
      "type": "REPORT",
      "url": "https://googleprojectzero.blogspot.com/2021/12/a-deep-dive-into-nso-zero-click.html"
    },
    {
      "type": "REPORT",
      "url": "https://github.com/jeffssh/CVE-2021-30860"
    },
    {
      "type": "REPORT",
      "url": "https://dl.xpdfreader.com/old/xpdf-4.04.tar.gz"
    },
    {
      "type": "REPORT",
      "url": "https://www.cve.org/CVERecord?id=CVE-2021-30860"
    },
    {
      "type": "REPORT",
      "url": "http://www.xpdfreader.com/security-fixes.html"
    },
    {
      "type": "REPORT",
      "url": "https://dl.xpdfreader.com/xpdf-4.04.tar.gz"
    },
    {
      "type": "REPORT",
      "url": "https://www.cve.org/CVERecord?id=CVE-2022-38171"
    }
  ],
  "related": [],
  "schema_version": "1.7.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    },
    {
      "score": "medium",
      "type": "Ubuntu"
    }
  ],
  "upstream": [
    "CVE-2022-38171"
  ]
}



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…