CVE-2023-50245: Afichet/openexr viewer Memory Overflow Vulnerability Vulnerability

CRITICAL
Advisory Identifier: GHSA-99jg-r3f4-rpxj
CVSS 9.8
CWE-120
Published
Advisory Summary

CVE-2023-50245 is a CRITICAL (CVSS 9.8) memory overflow vulnerability vulnerability (CWE-120: Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')) affecting Afichet/openexr viewer libraries in the GitHub Actions ecosystem. The issue involves memory overflow vulnerability in openexr-viewer. Remediation is available by upgrading affected packages to version 0.6.1.

CVE-2023-50245 at a Glance

CVE Identifier CVE-2023-50245
GHSA Identifier GHSA-99jg-r3f4-rpxj
Severity CRITICAL
CVSS v3.1 Base Score 9.8
CWE Classification CWE-120: Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')
Affected Product Afichet/openexr viewer
Package Ecosystem GitHub Actions
Published Date
Last Updated

Security Impact

CVSS: 9.8

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2023-50245

To remediate this vulnerability, upgrade all affected Afichet/openexr viewer dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

afichet/openexr-viewer fixed: 0.6.1
Upgrade afichet/openexr-viewer to 0.6.1
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for afichet/openexr-viewer

How to Check if You Are Affected

To determine whether your application is affected by CVE-2023-50245, inspect your project dependencies for Afichet/openexr viewer:

inspect dependencies for afichet/openexr-viewer

Analyze the terminal output to locate any version of Afichet/openexr viewer in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.6.1), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-120: Buffer Copy without Checking Size of Input ('Classic Buffer Overflow'), where the product copies an input buffer to an output buffer without verifying that the size of the input buffer is less than the size of the output buffer. In Afichet/openexr viewer, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

Just open this exr file through openexr-viewer. ( poc send by email ) This is windbg log file. [ POC 2 ] (8660.7e44): Access violation - code c0000005 (!!! second chance !!!) openexr_viewer+0x27be4: 00007ff7`13ff7be4 c744880c0000803f mov dword ptr [rax+rcx*4+0Ch],3F800000h ds:0000020a`3ac8000c=???????? Attempt to write the value 1.0 to the memory address 0x20A3AC8000C [ POC 1 ] (1404.9264): Access violation - code c0000005 (first chance) First chance exceptions are reported before any exception handling. This exception may be expected and handled. openexr_viewer+0x27be4: 00007ff7`13ff7be4 c744880c0000803f mov dword ptr [rax+rcx*4+0Ch],3F800000h ds:0000029c`b371600c=???????? Attempt to write the value 1.0 to the memory address 0x29CB371600C Credits Team : ZeroPointer 이동하 ( Lee Dong Ha of ZeroPointer Lab ) 정지민    ( Jeong Jimin of ZeroPointer Lab ) 박우진    ( Park Woojin of ZeroPointer Lab ) 전우진    ( Jeon Woojin of ZeroPointer Lab )

CVE-2023-50245 Affected Afichet/openexr viewer Versions

1 component(s)
Fixed Versions:
0.6.1
Product / Package Ecosystem Affected Versions Fixed Version
afichet/openexr-viewer
GitHub Actions
< 0.6.1
0.6.1

References

Frequently Asked Questions

What is CVE-2023-50245?
CVE-2023-50245 is a security vulnerability in Afichet/openexr viewer involving memory overflow vulnerability in OpenEXR-viewer under CWE-120: Buffer Copy without Checking Size of Input ('Classic Buffer Overflow').
Which Afichet/openexr viewer versions are affected?
Affected versions include releases prior to 0.6.1 across affected packages: afichet/openexr-viewer.
What version fixes CVE-2023-50245?
Upgrading to 0.6.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is afichet/openexr-viewer affected?
Yes, afichet/openexr-viewer is affected in releases prior to 0.6.1. Upgrade your dependency to 0.6.1 or later.
What is the CVSS score of CVE-2023-50245?
CVE-2023-50245 has a CVSS v3.1 base score of 9.8 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2023-50245?
CVE-2023-50245 is classified under CWE-120: Buffer Copy without Checking Size of Input ('Classic Buffer Overflow') (The product copies an input buffer to an output buffer without verifying that the size of the input buffer is less than the size of the output buffer.).
How can I check GitHub Actions dependencies for CVE-2023-50245?
Run the dependency tree command: 'inspect dependencies for afichet/openexr-viewer'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-99jg-r3f4-rpxj",
  "modified" : "2023-12-12T13:20:29Z",
  "published" : "2023-12-12T13:20:29Z",
  "aliases" : [ "CVE-2023-50245" ],
  "summary" : "memory overflow vulnerability in OpenEXR-viewer",
  "details" : "Just open this exr file through openexr-viewer.\n\n( poc send by email )\n\nThis is windbg log file.\n\n[ POC 2 ]\n(8660.7e44): Access violation - code c0000005 (!!! second chance !!!)\nopenexr_viewer+0x27be4:\n00007ff7`13ff7be4 c744880c0000803f mov     dword ptr [rax+rcx*4+0Ch],3F800000h ds:0000020a`3ac8000c=????????\n\nAttempt to write the value 1.0 to the memory address 0x20A3AC8000C\n\n[ POC 1 ]\n(1404.9264): Access violation - code c0000005 (first chance)\nFirst chance exceptions are reported before any exception handling.\nThis exception may be expected and handled.\nopenexr_viewer+0x27be4:\n00007ff7`13ff7be4 c744880c0000803f mov     dword ptr [rax+rcx*4+0Ch],3F800000h ds:0000029c`b371600c=????????\n\nAttempt to write the value 1.0 to the memory address 0x29CB371600C\n\n\nCredits\nTeam : ZeroPointer\n이동하 ( Lee Dong Ha of ZeroPointer Lab )\n정지민    ( Jeong Jimin of ZeroPointer Lab )\n박우진    ( Park Woojin of ZeroPointer Lab )\n전우진    ( Jeon Woojin of ZeroPointer Lab )\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "GitHub Actions",
      "name" : "afichet/openexr-viewer"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.6.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/afichet/openexr-viewer/security/advisories/GHSA-99jg-r3f4-rpxj"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-50245"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/afichet/openexr-viewer/commit/d0a7e85dfeb519951fb8a8d70f73f30d41cdd3d9"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/afichet/openexr-viewer"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-120" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-12-12T13:20:29Z",
    "nvd_published_at" : "2023-12-11T23:15:08Z"
  }
}