Security Research

Security Blog

Page 13

high9 min

Buffer Overflow in tmpnam.c: Why strcpy Still Haunts Us in 2024

A high-severity buffer overflow vulnerability was discovered and patched in a custom musl libc implementation used within a Zig toolchain, where the `tmpnam()` function used the unsafe `strcpy()` to copy temporary file names without any bounds checking. This classic CWE-120 flaw could allow attackers to corrupt memory by overflowing destination buffers, potentially leading to arbitrary code execution. The fix replaces the unbounded copy with a size-aware alternative, eliminating the risk of stac

#buffer-overflow#c-security#cwe-120+4 more
O
orbisai0security
May 15, 2026
critical8 min

Stack Buffer Overflow in count.c: How sprintf() Can Lead to Arbitrary Code Execution

A critical stack buffer overflow vulnerability was discovered and patched in count.c, where unsafe sprintf() calls wrote into fixed-size stack buffers without bounds checking, potentially allowing attackers to overwrite the stack and achieve arbitrary code execution. This fix eliminates a classic but dangerous class of memory corruption bugs that has plagued C programs for decades. Understanding how this vulnerability works — and how to prevent it — is essential knowledge for any developer worki

#c#buffer-overflow#memory-safety+4 more
O
orbisai0security
May 15, 2026
high8 min

Shell Injection via Unsafe sprintf in C: How a Missing Escape Broke Everything

A high-severity shell injection vulnerability was discovered and patched in `src/vt100.c`, where user-controlled values were directly interpolated into shell command strings without any sanitization or escaping. An attacker who could influence command arguments or configuration values could execute arbitrary shell commands on the host system. The fix eliminates the unsafe construction pattern, closing a critical code execution pathway.

#shell-injection#command-injection#c-security+4 more
O
orbisai0security
May 15, 2026
critical8 min

Critical Buffer Overflow in OJ's fast.c: How an Unsafe strcpy Nearly Opened the Door to RCE

A critical buffer overflow vulnerability was discovered and patched in the popular OJ Ruby JSON library's fast.c parser, where an unbounded strcpy call allowed attacker-controlled JSON input to overwrite adjacent memory. Left unpatched, this classic CWE-120 flaw could enable arbitrary code execution in any application parsing untrusted JSON with the affected library. The fix eliminates the unsafe copy operation, closing a potential remote code execution vector that affected countless Ruby applic

#buffer-overflow#c#ruby+4 more
O
orbisai0security
May 15, 2026
critical9 min

Critical Buffer Overflow in C: How strcpy Without Bounds Checking Opens the Door to Exploitation

A critical buffer overflow vulnerability was discovered and patched in `src/core/hir.c`, where an unchecked `strcpy()` call allowed attacker-controlled input to overflow heap or stack buffers during source code processing. This class of vulnerability — catalogued as CWE-120 — is one of the oldest and most dangerous bugs in systems programming, and its presence in a compiler or language toolchain pipeline makes it especially severe. The fix eliminates the unsafe copy operation, closing a potentia

#buffer-overflow#c-security#cwe-120+4 more
O
orbisai0security
May 15, 2026
critical9 min

Stack Buffer Overflow in vzic-parse.c: How Unbounded sprintf() Calls Enable Arbitrary Code Execution

A critical stack buffer overflow vulnerability was discovered and patched in vzic-parse.c, where unbounded sprintf() calls constructed file paths from timezone data fields into fixed-size stack buffers without any length validation. An attacker supplying a malicious timezone data file could overflow the stack buffer, overwrite the return address, and achieve arbitrary code execution. This fix serves as a timely reminder of why safe string-handling functions are non-negotiable in C code.

#c#buffer-overflow#stack-overflow+4 more
O
orbisai0security
May 15, 2026
high8 min

Integer Overflow in malloc: How a Silent Bug Becomes a Heap Overflow

A high-severity integer overflow vulnerability was discovered and fixed in `src/coredump/_UCD_create.c`, where arithmetic multiplication used to compute a memory allocation size lacked overflow protection. If the multiplication wrapped around, an undersized buffer would be allocated, opening the door to a heap overflow attack. This fix closes a subtle but dangerous code path that could lead to memory corruption and potential code execution.

#integer-overflow#heap-overflow#memory-safety+4 more
O
orbisai0security
May 15, 2026
critical9 min

Stack Buffer Overflow in tpl.c: How strcpy Without Bounds Checking Enables Full Control Flow Hijacking

A critical stack buffer overflow vulnerability was discovered and patched in tpl.c, where command-line arguments were copied into fixed-size stack buffers using strcpy without any length validation. An attacker supplying an oversized argument could overwrite the saved return address on the stack, achieving complete control flow hijacking. The fix eliminates this classic but devastatingly effective vulnerability class that has plagued C programs for decades.

#buffer-overflow#c-security#stack-smashing+4 more
O
orbisai0security
May 14, 2026
high8 min

Buffer Overflow in RF24Network: When Radio Frames Go Rogue

A critical buffer overflow vulnerability was discovered and patched in RF24Network, a popular C++ library for mesh networking over nRF24L01 radio modules. Unvalidated attacker-controlled size values in `memcpy` calls allowed any nearby attacker to trigger memory corruption by transmitting malformed radio frames — no authentication required. This post breaks down how the vulnerability works, how it was fixed, and what developers can learn from it.

#buffer-overflow#c-cpp#embedded-security+4 more
O
orbisai0security
May 14, 2026
high8 min

Command Injection in Privileged Nginx Scripts: A High-Severity Fix

A high-severity command injection vulnerability (CWE-78) was discovered and patched in an nginx harness maintenance script that used `subprocess.check_output()` without proper input sanitization. Because maintenance scripts like this frequently run with elevated privileges, an attacker who could influence the input arguments could execute arbitrary system commands as root. This post breaks down how the vulnerability works, how it was fixed, and what you can do to prevent similar issues in your o

#security#command-injection#python+4 more
O
orbisai0security
May 14, 2026
critical8 min

Stack Overflow in C: How strcpy and strcat Put Games at Risk

A critical buffer overflow vulnerability was discovered and patched in a shared C header file (common.h) used across an entire suite of games, where unbounded strcpy and strcat calls could allow attackers to overwrite stack memory and hijack program execution. The fix eliminates dangerous unbounded string operations, protecting every game binary that includes this shared header. Understanding this vulnerability is essential for any developer working with C/C++ string handling.

#c-programming#buffer-overflow#cwe-120+4 more
O
orbisai0security
May 14, 2026
critical8 min

Heap Buffer Overflow in tzsp_forwarder.c: When Packets Attack

A critical heap buffer overflow vulnerability (CWE-120) was discovered and patched in `contrib/tzsp_forwarder.c`, where an attacker-controlled `caplen` value from a crafted network packet could overwrite adjacent heap memory structures. This class of vulnerability can lead to remote code execution, process crashes, or sensitive data disclosure. The fix introduces proper bounds validation before the dangerous `memcpy` operation, closing the door on this attack vector.

#c#buffer-overflow#heap-overflow+4 more
O
orbisai0security
May 14, 2026