Jo Nakashima Bug: Unveiling the Truth

Thomas Jul 10, 2026

The Jo Nakashima bug, named after its discoverer, is a critical security vulnerability that affects the popular web server software, Apache HTTP Server. This bug, identified as CVE-2017-7658, allows remote attackers to cause a denial of service (DoS) condition, making it a significant threat to any system running vulnerable versions of Apache.

Jo Nakashima
Jo Nakashima

First reported in 2017, the Jo Nakashima bug has since been patched, but its impact is still felt today, with many systems potentially still at risk. This article delves into the details of the Jo Nakashima bug, its impact, and how to protect your systems from it.

NAMURO7
NAMURO7

Understanding the Jo Nakashima Bug

The Jo Nakashima bug is a vulnerability in the way Apache HTTP Server handles certain HTTP requests. Specifically, it occurs due to an integer overflow in the mod_rewrite module, which is responsible for URL rewriting in Apache.

an origami insect sitting on top of a table
an origami insect sitting on top of a table

When a specially crafted HTTP request is sent to a vulnerable Apache server, it can cause a buffer overflow, leading to a crash or hang. This results in a denial of service condition, as the server becomes unavailable or unresponsive to legitimate requests.

Vulnerable Apache Versions

a golden origami insect sitting on top of a table
a golden origami insect sitting on top of a table

The Jo Nakashima bug affects Apache HTTP Server versions 2.4.6 to 2.4.25. Systems running these versions are potentially at risk and should be prioritized for patching.

It's crucial to note that the bug does not affect all configurations of Apache. It only impacts systems where the mod_rewrite module is enabled and configured to use the 'RewriteBase' directive.

Exploiting the Jo Nakashima Bug

a hand holding an origami insect in it's palm
a hand holding an origami insect in it's palm

Exploiting the Jo Nakashima bug involves sending a specially crafted HTTP request to the vulnerable Apache server. This request triggers the integer overflow, leading to the DoS condition.

While the specifics of the exploit are complex and involve low-level details of HTTP requests and Apache's internal workings, it's important to understand that the bug can be exploited remotely, without requiring any authentication or authorization.

Mitigating the Jo Nakashima Bug

ORIGAMI CHAMELEON (Jo Nakashima )
ORIGAMI CHAMELEON (Jo Nakashima )

The primary mitigation strategy for the Jo Nakashima bug is to apply the available patch. Apache has released patches for all affected versions, and system administrators are strongly encouraged to apply these patches as soon as possible.

In addition to patching, there are a few other steps that can be taken to mitigate the risk posed by the Jo Nakashima bug:

Origami Beetle (Jo Nakashima)
Origami Beetle (Jo Nakashima)
Origami Toad (Jo Nakashima)
Origami Toad (Jo Nakashima)
How to make an origami Bride / Wedding (Tadashi Mori)
How to make an origami Bride / Wedding (Tadashi Mori)
Видео уроки 📺 - Страница 12 из 81 | Планета Оригами
Видео уроки 📺 - Страница 12 из 81 | Планета Оригами
Origami 2$ House (Jo Nakashima)
Origami 2$ House (Jo Nakashima)
Origami Horse - Jo Nakashima Horse Origami Easy, Colorful Origami Horses, Brown Origami Horse Craft, Blue And Pink Origami Horse, Origami Horse Step By Step, Origami Horse Instructions, Simple Origami Horse, Pink Origami Horse, Origami Flipping Horse
Origami Horse - Jo Nakashima Horse Origami Easy, Colorful Origami Horses, Brown Origami Horse Craft, Blue And Pink Origami Horse, Origami Horse Step By Step, Origami Horse Instructions, Simple Origami Horse, Pink Origami Horse, Origami Flipping Horse
Origami Mouse (Jo Nakashima)
Origami Mouse (Jo Nakashima)
Origami FLY by Jo Nakashima 🪰 How to make a paper fly
Origami FLY by Jo Nakashima 🪰 How to make a paper fly
a pink origami butterfly sitting on top of a white surface with one wing folded
a pink origami butterfly sitting on top of a white surface with one wing folded
Origami Hercules Beetle (Jo Nakashima)
Origami Hercules Beetle (Jo Nakashima)
Origami Bloxy - Little Girl (Jo Nakashima) - Remake
Origami Bloxy - Little Girl (Jo Nakashima) - Remake
Origami Giveaway #1 - Unicorn (Román Díaz)
Origami Giveaway #1 - Unicorn (Román Díaz)
Origami Rabbit (Seth Friedman)
Origami Rabbit (Seth Friedman)
Origami Duck (Jo Nakashima & Camila Zeymer)
Origami Duck (Jo Nakashima & Camila Zeymer)
an origami penguin made out of paper on a white background with the title penguin designed by jo kashima
an origami penguin made out of paper on a white background with the title penguin designed by jo kashima
Origami BEETLE tutorial by Jo Nakashima | How to fold a paper beetle
Origami BEETLE tutorial by Jo Nakashima | How to fold a paper beetle
Origami Duck - Time-lapse (Jo Nakashima & Camila Zeymer)
Origami Duck - Time-lapse (Jo Nakashima & Camila Zeymer)
Origami Angel's Wings (by Jo Nakashima)
Origami Angel's Wings (by Jo Nakashima)

Disable mod_rewrite

If the mod_rewrite module is not required for your system's operation, disabling it can prevent the Jo Nakashima bug from being exploited. However, this may also impact the functionality of your website or application.

To disable mod_rewrite, simply comment out the 'LoadModule rewrite_module modules/mod_rewrite.so' line in your Apache configuration file (httpd.conf or apache2.conf).

Implement Rate Limiting

Rate limiting can help prevent an attacker from sending a large number of malicious requests, making it more difficult for them to exploit the Jo Nakashima bug. Many web application firewalls (WAFs) and reverse proxies offer rate limiting functionality.

Implementing rate limiting should be done in conjunction with other security measures, as it is not a silver bullet for preventing the Jo Nakashima bug.

In conclusion, the Jo Nakashima bug is a serious security threat that can lead to denial of service conditions on vulnerable Apache servers. While the bug has been patched, many systems may still be at risk. System administrators are urged to apply the available patches and consider other mitigation strategies to protect their systems from this vulnerability. Regular security audits and timely patch management are key to maintaining a secure and reliable web infrastructure.