{"id":"CVE-2025-48074","aliases":["CVE-2025-48074","GHSA-x22w-82jp-8rvf","PYSEC-2026-1749"],"related":[],"kind":"vulnerability","state":"published","title":"OpenEXR's Unbounded File Header Values can Lead to Out-Of-Memory Errors","summary":"OpenEXR provides the specification and reference implementation of the EXR file format, an image storage format for the motion picture industry. In version 3.3.2, applications trust unvalidated dataWindow size values from file headers, which can lead to excessive memory allocation and performance degradation when processing malicious files. This is fixed in version 3.3.3.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"OpenEXR provides the specification and reference implementation of the EXR file format, an image storage format for the motion picture industry. In version 3.3.2, applications trust unvalidated dataWindow size values from file headers, which can lead to excessive memory allocation and performance degradation when processing malicious files. This is fixed in version 3.3.3.","source":"cvelist"},{"lang":"en","text":"### Summary\nThe OpenEXR file format defines many information about the final image inside of the file header, such as the size of data/display window.\n\nThe application trusts the value of `dataWindow` size provided in the header of the input file, and performs computations based on this value.\n\nThis may result in unintended behaviors, such as excessively large number of iterations and/or huge memory allocations.\n\n\n### Details\nA concrete example of this issue is present in the function `readScanline()` in `ImfCheckFile.cpp` at line 235, that performs a for-loop using the `dataWindow min.y` and `max.y` coordinates that can be arbitrarily large.\n\n```cpp\nin.setFrameBuffer (i);\n\nint step = 1;\n\n//\n// try reading scanlines. Continue reading scanlines\n// even if an exception is encountered\n//\nfor (int y = dw.min.y; y <= dw.max.y; y += step) // <-- THIS LOOP IS EXCESSIVE BECAUSE OF DW.MAX\n{\n    try\n    {\n        in.readPixels (y);\n    }\n    catch (...)\n    {\n        threw = true;\n\n        //\n        // in reduceTime mode, fail immediately - the file is corrupt\n        //\n        if (reduceTime) { return threw; }\n    }\n}\n```\n\nAnother example occurs in the `EnvmapImage::resize` function that in turn calls `Array2D<T>::resizeEraseUnsafe` passing the `dataWindow` X and Y coordinates and perform a huge allocation.\n\nOn some system, the allocator will simply return `std::bad_alloc` and crash. On other systems such as macOS, the allocator will happily continue with a \"small\" pre-allocation and allocate further memory whenever it is accessed.\nThis is the case with the `EnvmapImage::clear` function that is called right after and fills the image RGB values with zeros, allocating tens of Gigabytes.\n\n### PoC\n\nNOTE: please download the `oom_crash.exr` file via the following link:\n \nhttps://github.com/ShielderSec/poc/tree/main/CVE-2025-48074\n\n1. Compile the `exrcheck` binary in a macOS or GNU/Linux machine with ASAN.\n2. Open the `oom_crash.exr` file with the following command:\n\n```\nexrcheck oom_crash.exr\n```\n\n3. Notice that `exrenvmap`/`exrcheck` crashes with ASAN stack-trace.\n\n### Impact\nAn attacker could cause a denial of service by stalling the application or exhaust memory by stalling the application in a loop which contains a memory leakage.","format":"markdown","source":"ghsa"},{"lang":"es","text":"OpenEXR proporciona la especificación y la implementación de referencia del formato de archivo EXR, un formato de almacenamiento de imágenes para la industria cinematográfica. En la versión 3.3.2, las aplicaciones confían en valores de tamaño de ventana de datos no validados de los encabezados de archivo, lo que puede provocar una asignación excesiva de memoria y una degradación del rendimiento al procesar archivos maliciosos. Esto se ha corregido en la versión 3.3.3.","source":"nvd"}],"published":"2025-07-31T19:23:18.000Z","modified":"2026-07-07T17:56:48.251Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N","score":4.6,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N","score":4.6,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N","rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N"}],"cwes":["CWE-770"],"affected":[{"ranges":[{"version":">= 3.3.2, < 3.3.3","status":"affected"}],"vendor":"AcademySoftwareFoundation","product":"openexr","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"3.3.2","status":"affected","fixed":"3.3.3"}],"ecosystem":"PyPI","package":"openexr","purl":"pkg:pypi/openexr","source":"ghsa"},{"ranges":[{"status":"affected","version":"3.3.2"}],"vendor":"openexr","product":"openexr","cpe":"cpe:2.3:a:openexr:openexr:3.3.2:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"3.3.2","status":"affected","fixed":"3.3.3"}],"ecosystem":"PyPI","package":"openexr","purl":"pkg:pypi/openexr","source":"pysec"}],"references":[{"url":"https://github.com/AcademySoftwareFoundation/openexr/security/advisories/GHSA-x22w-82jp-8rvf","tags":["exploit","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/ShielderSec/poc/tree/main/CVE-2025-48074","tags":["exploit","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-48074","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/AcademySoftwareFoundation/openexr/commit/2df7802a6421bf39ed73a607392f01b3c6da4e4a","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/AcademySoftwareFoundation/openexr","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/openexr","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-x22w-82jp-8rvf","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2025-08-01T17:07:14.465Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-48074","url":"https://www.cve.org/CVERecord?id=CVE-2025-48074","licence":"CVE Terms of Use","modified":"2025-08-01T17:09:00.696Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-x22w-82jp-8rvf","url":"https://github.com/advisories/GHSA-x22w-82jp-8rvf","licence":"CC-BY-4.0","modified":"2026-07-07T17:56:48.251Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-48074","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-48074","licence":"Public domain","modified":"2026-06-17T09:29:06.677Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-1749","url":"https://osv.dev/vulnerability/PYSEC-2026-1749","licence":"CC-BY-4.0","modified":"2026-07-07T17:47:08.296Z"}],"updatedAt":"2026-11-25T22:59:01.968Z","epss":{"score":0.00296,"percentile":0.23929,"date":"2026-12-01T12:00:22.000Z"}}