Skip to content
Heist/ feed
Back to feed
Medium

libjpeg — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2022-31796

libjpeg 1.63 has a heap-based buffer over-read in HierarchicalBitmapRequester::FetchRegion in hierarchicalbitmaprequester.cpp because the MCU size can be different between allocation and use.

Products
libjpeg
Affected versions
0.0~git20190821.87636f3b26b4-1, 0.0~git20190821.87636f3b26b4-1.1, 0.0~git20210129.91985dc-1build1, 0.0~git20210908.58455ca-1, 0.0~git20211115.76133b7-1, 0.0~git20211203.966a8ed-1, 0.0~git20220805.54ec643-1, 0.0~git20241105.c719010-1, 0.0~git20250815.25f7128-1, 0.0~git20250815.25f7128-2, 0.0~git20250815.25f7128-3
Fixed versions
Not specified
CVEs
CVE-2022-31796
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 00:55 UTC · Revision 1

Source evidence

UBUNTU-CVE-2022-31796

core-osv · Original source

Published 2 Jun 2022, 14:15 UTC

libjpeg 1.63 has a heap-based buffer over-read in HierarchicalBitmapRequester::FetchRegion in hierarchicalbitmaprequester.cpp because the MCU size can be different between allocation and use.

osv:UBUNTU-CVE-2022-31796

libjpeg

Fixed versions: Not specified

libjpeg

Fixed versions: Not specified

libjpeg

Fixed versions: Not specified

libjpeg

Fixed versions: Not specified

libjpeg

Fixed versions: Not specified

libjpeg

Fixed versions: Not specified

Complete source record
{
  "id": "847bdbd6e1e31054f67fec074339d5e7b949d4add73c1ed5b61002abd06f30ea",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2022-31796",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2022-31796",
    "summary": "libjpeg 1.63 has a heap-based buffer over-read in HierarchicalBitmapRequester::FetchRegion in hierarchicalbitmaprequester.cpp because the MCU size can be different between allocation and use.",
    "evidence": "osv:UBUNTU-CVE-2022-31796",
    "products": [
      {
        "name": {
          "value": "libjpeg",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.0~git20190821.87636f3b26b4-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "0.0~git20190821.87636f3b26b4-1.1",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "libjpeg",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.0~git20210129.91985dc-1build1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "0.0~git20210908.58455ca-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "0.0~git20211115.76133b7-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "0.0~git20211203.966a8ed-1",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "libjpeg",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.0~git20220805.54ec643-1",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "libjpeg",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.0~git20241105.c719010-1",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "libjpeg",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.0~git20250815.25f7128-2",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "0.0~git20250815.25f7128-3",
            "evidence": "/affected/4/versions"
          }
        ]
      },
      {
        "name": {
          "value": "libjpeg",
          "evidence": "/affected/5/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.0~git20241105.c719010-1",
            "evidence": "/affected/5/versions"
          },
          {
            "value": "0.0~git20250815.25f7128-1",
            "evidence": "/affected/5/versions"
          },
          {
            "value": "0.0~git20250815.25f7128-2",
            "evidence": "/affected/5/versions"
          }
        ]
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "UBUNTU-CVE-2022-31796",
      "aliases": [
        "UBUNTU-CVE-2022-31796"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"
        },
        {
          "type": "Ubuntu",
          "score": "low"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "libjpeg",
            "purl": "pkg:deb/ubuntu/libjpeg?arch=source&distro=focal",
            "ecosystem": "Ubuntu:20.04:LTS"
          },
          "versions": [
            "0.0~git20190821.87636f3b26b4-1",
            "0.0~git20190821.87636f3b26b4-1.1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-31796.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libjpeg-tools",
                "binary_version": "0.0~git20190821.87636f3b26b4-1.1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "libjpeg",
            "purl": "pkg:deb/ubuntu/libjpeg?arch=source&distro=jammy",
            "ecosystem": "Ubuntu:22.04:LTS"
          },
          "versions": [
            "0.0~git20210129.91985dc-1build1",
            "0.0~git20210908.58455ca-1",
            "0.0~git20211115.76133b7-1",
            "0.0~git20211203.966a8ed-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-31796.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libjpeg-tools",
                "binary_version": "0.0~git20211203.966a8ed-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "libjpeg",
            "purl": "pkg:deb/ubuntu/libjpeg?arch=source&distro=noble",
            "ecosystem": "Ubuntu:24.04:LTS"
          },
          "versions": [
            "0.0~git20220805.54ec643-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-31796.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libjpeg-tools",
                "binary_version": "0.0~git20220805.54ec643-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "libjpeg",
            "purl": "pkg:deb/ubuntu/libjpeg?arch=source&distro=questing",
            "ecosystem": "Ubuntu:25.10"
          },
          "versions": [
            "0.0~git20241105.c719010-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-31796.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libjpeg-tools",
                "binary_version": "0.0~git20241105.c719010-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "libjpeg",
            "purl": "pkg:deb/ubuntu/libjpeg?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "0.0~git20250815.25f7128-2",
            "0.0~git20250815.25f7128-3"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-31796.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libjpeg-tools",
                "binary_version": "0.0~git20250815.25f7128-3"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "libjpeg",
            "purl": "pkg:deb/ubuntu/libjpeg?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "0.0~git20241105.c719010-1",
            "0.0~git20250815.25f7128-1",
            "0.0~git20250815.25f7128-2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-31796.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libjpeg-tools",
                "binary_version": "0.0~git20250815.25f7128-2"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T12:56:17.043615558Z",
      "provider": "osv",
      "upstream": [
        "CVE-2022-31796"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2022-31796",
        "https://www.cve.org/CVERecord?id=CVE-2022-31796"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2022-31796",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 355125,
  "published_at": "2022-06-02T14:15:00+00:00"
}