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

EIP Stack Group OpENer GetAttributeList attribute_count_request out-of-bounds write vulnerability

An out-of-bounds write vulnerability exists in the GetAttributeList functionality of OpENer. A specially crafted EtherNet/IP request with a large attribute count can cause the server to write beyond the response buffer, leading to a crash and potentially remote code execution.

Jared Rittle Follow

Originally disclosed on Cisco Talos

Critical 10.0 View original

An out-of-bounds write vulnerability exists in the GetAttributeList attributecountrequest functionality of EIP Stack Group OpENer development commit 58ee13c. A specially crafted EtherNet/IP request can lead to an out-of-bounds write, potentially causing the server to crash or allow for remote code execution.

Jared Rittle, 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

The attribute_count_request value from the request is used as a loop bound without validating that the resulting writes stay within the response buffer.

Impact

This can corrupt the stack, cause the process to crash, and potentially allow remote code execution.

What the attacker needed

Network access to the EtherNet/IP service

The fix

The fix should verify that the attribute count multiplied by two does not exceed the remaining buffer size.

How it was found

  1. Send a GetAttributeList request with an attribute_count_request greater than 0x80.
  2. The server loops over the requested attributes and writes data to the response buffer.
  3. The write position moves beyond the buffer, causing an out-of-bounds write and stack corruption.

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 a network service that handles industrial control messages. The service reads a number from the request and uses it to decide how many times to loop, but it does not check if that number is too large. As a result, it writes data past the end of a buffer, which can crash the program and possibly 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 Jared Rittle

View all

64 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.