Skip to content
Memory corruption Advisory Advanced CVE-2022-22137

Accusoft ImageGear ioca_mys_rgb_allocate memory corruption vulnerability

A memory corruption vulnerability exists in the ioca_mys_rgb_allocate functionality of Accusoft ImageGear 19.10. A specially-crafted malformed file can lead to an arbitrary free, allowing an attacker to potentially execute arbitrary code.

Emmanuel Tacheau Follow

Originally disclosed on Cisco Talos

Critical 9.8 View original

A memory corruption vulnerability exists in the iocamysrgballocate functionality of Accusoft ImageGear 19.10. A specially-crafted malformed file can lead to an arbitrary free.

Emmanuel Tacheau, on Cisco Talos

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely, the code allocates a zero-sized buffer when the image height is zero, then later frees an uninitialized pointer from that buffer.

Impact

An attacker could exploit this to cause a denial of service or potentially execute arbitrary code.

What the attacker needed

Victim opens a malformed IOCA file

The fix

The vendor patched the vulnerability in version 20.0.

How it was found

  1. Craft a malformed IOCA file with a zero height value.
  2. Load the file using the ImageGear library.
  3. The library allocates a zero-sized buffer and does not initialize the table.
  4. During processing, the library attempts to free an uninitialized pointer, causing a crash.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

This report describes a bug in an image processing library. When the library opens a specially crafted image file, it can be tricked into freeing a memory address that it does not own. This can crash the program or, in the worst case, let an attacker run their own code.

What is Memory corruption?

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.

More by Emmanuel Tacheau

View all

58 more disclosed reports, best first.

More from Cisco Talos

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.