CVEReports
CVEReports

Automated vulnerability intelligence platform. Comprehensive reports for high-severity CVEs generated by AI.

Product

  • Home
  • Sitemap
  • RSS Feed

Company

  • About
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CVEReports. All rights reserved.

Made with love by Amit Schendel & Alon Barad



CVE-2026-24398

Hono IP Spoofing: When 255 + 100 Equals Access

Alon Barad
Alon Barad
Software Engineer

Jan 28, 2026·5 min read·57 visits

Executive Summary (TL;DR)

Hono versions prior to 4.11.7 used a lazy regular expression to validate IPv4 addresses, accepting values > 255 in octets. When processed, these large values overflow into adjacent octets (e.g., `1.2.2.355` becomes `1.2.3.99`), allowing attackers to spoof trusted IPs or bypass blocklists.

A logic flaw in Hono's IP address validation middleware allows attackers to bypass IP-based access controls by supplying malformed IPv4 addresses that trigger an integer overflow during binary conversion.

The Hook: Speed Kills (Your ACLs)

Hono has built a reputation as the "Ultrafast" web framework for the edge, running on Cloudflare Workers, Deno, and Bun. It is sleek, minimal, and generally delightful to use. However, when you prioritize speed and minimalism, sometimes the boring, gritty details of input validation get glossed over.

In the world of middleware, the IP Restriction Middleware is the bouncer. It checks your ID (IP address) against a list of VIPs (allowlist) or troublemakers (blocklist). If the bouncer is doing their job, only the right people get in.

But in Hono versions prior to 4.11.7, the bouncer had a serious vision problem. They weren't checking if your ID was valid; they were just checking if it looked like an ID from a distance. This vulnerability isn't a complex memory corruption in C; it's a beautiful example of how loose Regular Expressions and loose typing in JavaScript can combine to create a perfect logic flaw.

The Flaw: The Regex That Didn't Care

The root of the issue lies in how Hono decided what constitutes a valid IPv4 address. You might expect a strict check ensuring four octets, each between 0 and 255. Instead, the developers used a regex that was... optimistic.

Here is the culprit found in src/utils/ipaddr.ts:

const IPV4_REGEX = /^[0-9]{0,3}\.[0-9]{0,3}\.[0-9]{0,3}\.[0-9]{0,3}$/

See the problem? [0-9]{0,3} matches any 0 to 3 digit number. That includes 0, 255, and unfortunately, 999. It creates a syntactic check (is it digit-dot-digit?) rather than a semantic check (is it a valid byte?).

If the validation stopped there, the application might just crash or throw an error when handling invalid IPs. But the second part of the flaw is how this string is converted into a number for comparison. Hono converts IPs to binary integers to perform fast CIDR matching. The math used to convert these octets assumed that no input would ever exceed 255. When that assumption fails, we enter the realm of integer overflows.

The Code: Alchemy via Bitwise Operations

Let's look at the convertIPv4ToBinary function. This is where the magic happens—and by magic, I mean the unintended transmutation of numbers.

// The vulnerable logic
return (parts[0] << 24) + (parts[1] << 16) + (parts[2] << 8) + parts[3]

In a strongly typed language, putting 355 into a uint8 container would throw an error or wrap around immediately. In JavaScript, parts[3] is just a number. If parts[3] is 355, it is added to the total sum.

Here is the kicker: parts[2] << 8 shifts the third octet 8 bits to the left. If parts[3] is larger than 255 (8 bits), it spills over into the space occupied by parts[2].

It is effectively performing addition where the developer intended concatenation. This allows an attacker to modify the third octet by overloading the fourth octet.

The Exploit: Doing the Math

Let's construct a Proof of Concept. Suppose there is an internal admin panel allowlisted strictly for the IP 1.2.3.99. You are an attacker sitting at 1.2.2.x. You cannot natively change your IP to 1.2.3.99 without routing issues, but you can send a header (if the server trusts proxies) or spoof a packet that Hono interprets as the target.

We need to construct an IP 1.2.2.X that resolves to 1.2.3.99.

The Target: Octet 3 = 3 Octet 4 = 99

The Input: Octet 3 = 2 Octet 4 = ?

We need (2 << 8) + X to equal (3 << 8) + 99.

  1. Target Value: (3 * 256) + 99 = 768 + 99 = 867
  2. Current Value: (2 * 256) = 512
  3. The Difference: 867 - 512 = 355

So, if we send the IP 1.2.2.355:

The middleware sees 1.2.3.99, checks the allowlist, sees a match, and opens the door. You have successfully spoofed an IP address without actually spoofing any packets on the network layer.

The Fix: Strict Regex

The remediation is straightforward: stop accepting garbage input. The Hono team patched this in version 4.11.7 by replacing the lazy regex with a strict one that validates the 0-255 range.

Commit edbf6eea8e6c26a3937518d4ed91d8666edeec37 changes:

// The Fix
const IPV4_OCTET_PART = '(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])'
const IPV4_REGEX = new RegExp(`^(?:${IPV4_OCTET_PART}\\.){3}${IPV4_OCTET_PART}$`)

This new regex explicitly matches:

  • 250-255
  • 200-249
  • 100-199
  • 0-99

By ensuring the octets never exceed 255 strictly at the parsing stage, the bitwise math downstream is safe from overflow. It is a classic example of "Input Validation 101": validate constraints at the boundary, not deep in the business logic.

Official Patches

HonoHono v4.11.7 Release Notes

Fix Analysis (1)

Technical Appendix

CVSS Score
4.8/ 10
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N

Affected Systems

Hono Web Framework (JavaScript/TypeScript)Hono IP Restriction Middleware

Affected Versions Detail

Product
Affected Versions
Fixed Version
Hono
HonoJS
< 4.11.74.11.7
AttributeDetail
CWE IDCWE-185 (Incorrect Regular Expression)
CVSS4.8 (Medium)
Attack VectorNetwork
ImpactSecurity Bypass / IP Spoofing
Patch Commitedbf6eea8e6c26a3937518d4ed91d8666edeec37
Exploit ComplexityHigh (Requires knowledge of target IP/ACL)

MITRE ATT&CK Mapping

T1190Exploit Public-Facing Application
Initial Access
T1090Proxy
Command and Control
T1566Phishing
Initial Access
CWE-185
Incorrect Regular Expression

Known Exploits & Detection

ManualProof of concept involves sending an IP with octets > 255 to overflow adjacent values.

Vulnerability Timeline

Vulnerability Disclosed
2026-01-27
Patch Released (v4.11.7)
2026-01-27
CVE Assigned
2026-01-27

References & Sources

  • [1]GHSA-r354-f388-2fhh
  • [2]NVD CVE-2026-24398

Attack Flow Diagram

Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.
Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.

More Reports

•28 minutes ago•CVE-2026-105749
6.5

CVE-2026-105749: Unbounded Table Attributes in Docling Backends Leads to Resource Exhaustion

An uncontrolled resource consumption vulnerability exists in the Docling document conversion library. Maliciously structured HTML, JATS, ODS, or BoxNote inputs containing table cells with excessively large 'rowspan' or 'colspan' attribute values trigger algorithmic complexity conditions. This allows unauthenticated remote attackers to initiate resource exhaustion states, crashing or hanging the target document processing pipeline while bypassing configured timeouts.

Amit Schendel
Amit Schendel
2 views•6 min read
•about 1 hour ago•CVE-2026-105748
4.3

CVE-2026-105748: Local File Inclusion and Arbitrary File Disclosure in Docling Document Parser

A Local File Inclusion (LFI) and Arbitrary File Disclosure vulnerability exists in Docling and Docling Slim versions >= 2.16.0 up to 2.131.0. When parsing serialized DoclingDocument structures using the JSON input format, the backend fails to restrict image URI schemes, allowing remote attackers to retrieve local files and verify path existence on the host system during embedded document export.

Amit Schendel
Amit Schendel
5 views•5 min read
•about 2 hours ago•CVE-2026-105744
7.5

CVE-2026-105744: Arbitrary File Read and Remote Code Execution in Docling Tectonic Engine

Docling, a tool for parsing and processing diverse document formats, is vulnerable to arbitrary file read, arbitrary file write, and potential remote code execution (RCE) in versions 2.94.0 through 2.131.0. The vulnerability occurs when applications configure Docling to use the Tectonic engine for rendering TikZ diagrams into images. Because the compilation did not restrict hazardous TeX primitives or sandbox the environment, an attacker can supply crafted documents containing malicious TikZ definitions to access or modify local files and execute arbitrary commands under the privileges of the processing application.

Amit Schendel
Amit Schendel
7 views•7 min read
•about 4 hours ago•CVE-2026-105743
4.0

CVE-2026-105743: Server-Side Request Forgery Guard Bypass in Docling Document Conversion Engine

An SSRF guard bypass vulnerability in the Docling document conversion engine allows unauthenticated attackers to bypass internal IP access controls. The vulnerability exists due to a DNS rebinding Time-of-Check Time-of-Use (TOCTOU) condition, URL authority parsing inconsistencies, and unvalidated network requests triggered during headless browser page rendering.

Amit Schendel
Amit Schendel
6 views•6 min read
•about 4 hours ago•CVE-2026-105742
3.7

CVE-2026-105742: Sensitive Custom Header Leakage in Docling Image Resource Loader

A technical analysis of CVE-2026-105742 (GHSA-p3fw-7699-7926), a sensitive information disclosure vulnerability in the Docling document processing library. Vulnerable versions of Docling indiscriminately forward custom HTTP headers, such as authentication tokens, to arbitrary third-party origins and during cross-origin redirects while fetching remote image assets from untrusted HTML and EPUB documents.

Alon Barad
Alon Barad
6 views•6 min read
•about 6 hours ago•CVE-2026-106121
4.9

CVE-2026-106121: Denial of Service via Infinite Loop in RabbitMQ Java Client JSON Parser

CVE-2026-106121 is a Denial of Service (DoS) vulnerability in the RabbitMQ Java Client library (amqp-client) affecting versions prior to 5.37.0. The vulnerability resides in the legacy, custom JSON-RPC parsing class com.rabbitmq.tools.json.JSONReader. When parsing malformed or truncated payloads ending within a quoted string or single-line comment, the parser's scanner enters an infinite loop. This occurs because the loop lacks an exit condition for the end-of-input sentinel character returned by the iterator, leading to either CPU exhaustion or a JVM crash from an OutOfMemoryError.

Amit Schendel
Amit Schendel
8 views•6 min read