Skip to content
Heist/ feed
Back to feed
High

Security advisory

Type: advisorySources: OSVCVE: CVE-2022-41981

A stack-based buffer overflow vulnerability exists in the TGA file format parser of OpenImageIO v2.3.19.0. A specially-crafted targa file can lead to out of bounds read and write on the process stack, which can lead to arbitrary code execution. An attacker can provide a malicious file to trigger this vulnerability.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2022-41981
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 11:05 UTC · Revision 1

Source evidence

CVE-2022-41981

core-osv · Original source

Published 22 Dec 2022, 22:15 UTC

A stack-based buffer overflow vulnerability exists in the TGA file format parser of OpenImageIO v2.3.19.0. A specially-crafted targa file can lead to out of bounds read and write on the process stack, which can lead to arbitrary code execution. An attacker can provide a malicious file to trigger this vulnerability.

osv:CVE-2022-41981
Complete source record
{
  "id": "ec1cb84989a55a7fa9ac1fc48b42fff0e6a857d45f340325945d4222e08459aa",
  "url": "https://osv.dev/vulnerability/CVE-2022-41981",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2022-41981",
    "summary": "A stack-based buffer overflow vulnerability exists in the TGA file format parser of OpenImageIO v2.3.19.0. A specially-crafted targa file can lead to out of bounds read and write on the process stack, which can lead to arbitrary code execution. An attacker can provide a malicious file to trigger this vulnerability.",
    "evidence": "osv:CVE-2022-41981",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2022-41981",
      "aliases": [
        "CVE-2022-41981"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/AcademySoftwareFoundation/OpenImageIO",
              "type": "GIT",
              "events": [
                {
                  "introduced": "9ba61609c2c7e0e223cc26b189e19821dfad2101"
                },
                {
                  "last_affected": "9ba61609c2c7e0e223cc26b189e19821dfad2101"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:openimageio:openimageio:2.3.19.0:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "2.3.19.0"
                      },
                      {
                        "last_affected": "2.3.19.0"
                      }
                    ],
                    "source": "CPE_STRING"
                  }
                ]
              }
            }
          ],
          "versions": [
            "2.3.19.0",
            "v2.3.19.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-41981.json"
          }
        },
        {
          "ranges": [
            {
              "repo": "https://github.com/academysoftwarefoundation/openimageio",
              "type": "GIT",
              "events": [
                {
                  "introduced": "9ba61609c2c7e0e223cc26b189e19821dfad2101"
                },
                {
                  "last_affected": "9ba61609c2c7e0e223cc26b189e19821dfad2101"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:openimageio:openimageio:2.3.19.0:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "2.3.19.0"
                      },
                      {
                        "last_affected": "2.3.19.0"
                      }
                    ],
                    "source": "CPE_STRING"
                  }
                ]
              }
            }
          ],
          "versions": [
            "2.3.19.0",
            "v2.3.19.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-41981.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:27.984906743Z",
      "provider": "osv",
      "references": [
        "https://talosintelligence.com/vulnerability_reports/TALOS-2022-1628",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/41xxx/CVE-2022-41981.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2022-41981"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-121"
        ],
        "cna_assigner": "talos",
        "unresolved_ranges": [
          {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "v2.3.19.0"
                  },
                  {
                    "last_affected": "v2.3.19.0"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandaloneSingleVersion"
              }
            ]
          }
        ],
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/41xxx/CVE-2022-41981.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2022-41981",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 494844,
  "published_at": "2022-12-22T22:15:15.893+00:00"
}