Skip to content
Heist/ feed
Back to feed
High

openexr — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2025-12840

Academy Software Foundation OpenEXR EXR File Parsing Heap-based Buffer Overflow Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of Academy Software Foundation OpenEXR. User interaction is required to exploit this vulnerability in that the target must visit a malicious page or open a malicious file. The specific flaw exists within the parsing of EXR files. The issue results from the lack of proper validation of the length of user-supplied data prior to copying it to a heap-based buffer. An attacker can leverage this vulnerability to execute code in the context of the current process. Was ZDI-CAN-27948.

Products
openexr
Affected versions
3.1.13-2, 3.1.13-2build1, 3.1.13-2ubuntu0.26.04.1~esm1, 3.4.6+ds-4ubuntu3
Fixed versions
Not specified
CVEs
CVE-2025-12840
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 01:24 UTC · Revision 1

Source evidence

UBUNTU-CVE-2025-12840

core-osv · Original source

Published 23 Dec 2025, 22:15 UTC

Academy Software Foundation OpenEXR EXR File Parsing Heap-based Buffer Overflow Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of Academy Software Foundation OpenEXR. User interaction is required to exploit this vulnerability in that the target must visit a malicious page or open a malicious file. The specific flaw exists within the parsing of EXR files. The issue results from the lack of proper validation of the length of user-supplied data prior to copying it to a heap-based buffer. An attacker can leverage this vulnerability to execute code in the context of the current process. Was ZDI-CAN-27948.

osv:UBUNTU-CVE-2025-12840

openexr

Fixed versions: Not specified

openexr

Fixed versions: Not specified

openexr

Fixed versions: Not specified

Complete source record
{
  "id": "747f179658b25ab0fccbe6814127ee3fa1d746df4f7d1d435677d7055cd7977e",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2025-12840",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2025-12840",
    "summary": "Academy Software Foundation OpenEXR EXR File Parsing Heap-based Buffer Overflow Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of Academy Software Foundation OpenEXR. User interaction is required to exploit this vulnerability in that the target must visit a malicious page or open a malicious file. The specific flaw exists within the parsing of EXR files. The issue results from the lack of proper validation of the length of user-supplied data prior to copying it to a heap-based buffer. An attacker can leverage this vulnerability to execute code in the context of the current process. Was ZDI-CAN-27948.",
    "evidence": "osv:UBUNTU-CVE-2025-12840",
    "products": [
      {
        "name": {
          "value": "openexr",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "3.1.13-2",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "openexr",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "3.1.13-2build1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "3.4.6+ds-4ubuntu3",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "openexr",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "3.1.13-2",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "3.1.13-2build1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "3.1.13-2ubuntu0.26.04.1~esm1",
            "evidence": "/affected/2/versions"
          }
        ]
      }
    ],
    "severity": "high",
    "structured": {
      "id": "UBUNTU-CVE-2025-12840",
      "aliases": [
        "UBUNTU-CVE-2025-12840"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "openexr",
            "purl": "pkg:deb/ubuntu/openexr?arch=source&distro=questing",
            "ecosystem": "Ubuntu:25.10"
          },
          "versions": [
            "3.1.13-2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-12840.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libopenexr-3-1-30",
                "binary_version": "3.1.13-2"
              },
              {
                "binary_name": "openexr",
                "binary_version": "3.1.13-2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "openexr",
            "purl": "pkg:deb/ubuntu/openexr?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "3.1.13-2build1",
            "3.4.6+ds-4ubuntu3"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-12840.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libopenexr-3-4-33",
                "binary_version": "3.4.6+ds-4ubuntu3"
              },
              {
                "binary_name": "openexr",
                "binary_version": "3.4.6+ds-4ubuntu3"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "openexr",
            "purl": "pkg:deb/ubuntu/openexr?arch=source&distro=esm-apps%2Fresolute",
            "ecosystem": "Ubuntu:Pro:26.04:LTS"
          },
          "versions": [
            "3.1.13-2",
            "3.1.13-2build1",
            "3.1.13-2ubuntu0.26.04.1~esm1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-12840.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libopenexr-3-1-30",
                "binary_version": "3.1.13-2ubuntu0.26.04.1~esm1"
              },
              {
                "binary_name": "openexr",
                "binary_version": "3.1.13-2ubuntu0.26.04.1~esm1"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T12:56:48.032179246Z",
      "provider": "osv",
      "upstream": [
        "CVE-2025-12840"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2025-12840",
        "https://www.cve.org/CVERecord?id=CVE-2025-12840",
        "https://www.zerodayinitiative.com/advisories/ZDI-25-991/"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2025-12840",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 356301,
  "published_at": "2025-12-23T22:15:00+00:00"
}