CVE-2022-40657 Memory corruption in NIS-Elements Viewer

High 7.8 Published Updated

Remote attackers can execute arbitrary code by tricking users into opening malicious PSD files in Nikon NIS-Elements Viewer.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2022-40657?

CVE-2022-40657 is a high-severity memory corruption vulnerability in NIKON NIS-Elements Viewer, published on 15 Sep 2022. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official description

This vulnerability allows remote attackers to execute arbitrary code on affected installations of NIKON NIS-Elements Viewer 1.2100.1483.0. 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 PSD files. Crafted data in a PSD file can trigger a write past the end of an allocated buffer. An attacker can leverage this vulnerability to execute code in the context of the current process. Was ZDI-CAN-15073.

Weakness: CWE-787

Which versions are affected by CVE-2022-40657?

It affects 1 product.

Products include Nikon Nis-Elements Viewer.

How do I fix CVE-2022-40657?

No fix has been published for CVE-2022-40657 yet. Limit exposure of the affected software until one is available.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2022-40657 being exploited?

There is no known exploitation of CVE-2022-40657 in the wild and no public exploit code.

Sources

Also known as GHSA-g2pv-jwfp-hm99.

Is CVE-2022-40657 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free