Skip to main content

uriparser CVE-2026-42371

| EUVDEUVD-2026-25776 MEDIUM
Numeric Truncation Error (CWE-197)
2026-04-27 mitre
5.1
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft oversized URI with gigabyte-scale length claim
  2. Delivery
    Deliver to vulnerable application
  3. Exploit
    Application parses with unpatched uriparser
  4. Execution
    Numeric truncation in range check bypasses validation
  5. Persist
    Memory exhaustion or buffer access violation
  6. Impact
    Denial of service or process crash

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Numeric truncation prevention
Exploitation Conditions

Exploitation requires three specific conditions: (1) the application must accept and forward untrusted URIs directly to uriparser without independent length validation; (2) the application must not have external limits on URI size (HTTP server limits, network layer restrictions, or application-level input bounds); and (3) the URI must contain a component with a length field exceeding integer overflow thresholds (approximately 2 GB for 32-bit signed integers or 4 GB for unsigned 32-bit). Most real-world HTTP deployments enforce strict URI length limits at the server or network layer, making this exploitation scenario rare. The high complexity (AC:H) reflects that standard web server configurations and request size limits effectively mitigate the vulnerability before it reaches the vulnerable code.

Impact

CVSS 5.1 with local attack vector (AV:L), high complexity (AC:H), no privileges required, no user interaction, and universal scope (S:U) indicates a low-severity but real denial-of-service risk. The high complexity constraint is critical - exploitation requires an application to both accept URIs with gigabyte-scale length claims AND process them without independent validation, a narrow deployment scenario. No EPSS score, KEV status, or public exploit code is documented in the provided data, suggesting this is a theoretical or low-prevalence issue rather than an active threat. The real-world impact depends entirely on whether any production application feeds untrusted, oversized URI strings directly to uriparser without pre-validation. Organizations using uriparser in constrained environments (embedded systems, web browsers, API gateways with input size limits) face minimal risk; those accepting user-supplied URIs without length checks should prioritize patching. The AC:H score appropriately reflects that most real-world deployments already limit URI size via HTTP server settings or application logic.

Exploit ScenarioDerived

An attacker crafts a malicious URI with a component length field claiming multiple gigabytes (e.g., a crafted query string header asserting 5 GB of data). If a local application or service processes this URI without pre-validating its declared size and passes it directly to uriparser, the library's range comparison overflows, truncating the large integer. The validation bypass allows the parser to treat the oversized input as valid, potentially causing heap exhaustion, buffer overrun, or process crash when the application attempts to allocate or process the claimed gigabyte-scale data.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Apr 27, 2026

uriparser before 1.0.1 suffers a numeric truncation vulnerability in text range comparison that causes denial of service when processing URIs with gigabyte-scale lengths. The flaw occurs because internal range comparisons truncate large numeric values, allowing maliciously crafted oversized URIs to bypass length validation and trigger memory exhaustion or processing failures. Local attackers can exploit this via specially constructed input, though practical exploitation requires an application to accept and process URIs of exceptional size.

RemediationAI

Upgrade uriparser to version 1.0.1 or later. This release fixes the numeric truncation in range comparison by properly handling large integer values during URI length validation. Applications should verify they are using the patched version via package manager or dependency scanning tools. As a temporary compensating control, if upgrade is delayed, restrict maximum URI length at the application or HTTP server layer - for example, set LimitRequestLine in Apache or client_max_body_size in nginx to a reasonable value (typically 8 KB or less for standard URIs), preventing gigabyte-scale inputs from reaching the parser. This mitigation reduces exploitability but does not address the underlying flaw and should not replace patching. Additionally, applications should validate URI length independently before passing to uriparser, ensuring local checks prevent the edge case of truncated numeric comparisons.

Affected VersionsENISA

uriparser 0 <1.0.1

Affected Packages

euvd uriparser fix: 1.0.1

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

uriparser is a C library for parsing and validating Uniform Resource Identifiers (URIs) according to RFC 3986. The vulnerability stems from numeric truncation in text range comparison functions (CWE-197), where signed or unsigned integer overflow occurs when comparing URI component lengths. When a URI component claims a length approaching or exceeding gigabytes, internal integer variables truncate, causing the range check to underflow or bypass validation. This allows oversized buffers or memory regions to be accessed as if they were within valid bounds. The affected product is identified by CPE cpe:2.3:a:uriparser:uriparser:*:*:*:*:*:*:*:* with fix available in version 1.0.1 per GitHub PR #298.

Know when Uriparser gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

NVD PRIMARY 5.1 MEDIUM
AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
SUSE MEDIUM
Red Hat 4.7 MEDIUM

Primary rating from NVD.

CVSS VectorNVD

Attack Vector
Local
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

Lifecycle Timeline

3
Patch released
Apr 27, 2026 - 18:57 nvd
Patch available
Patch available
Apr 27, 2026 - 08:01 EUVD
CVE Published
Apr 27, 2026 - 05:50 nvd
MEDIUM 5.1

DescriptionNVD

uriparser before 1.0.1 has numeric truncation in text range comparison, if an application accepts URIs with a length in gigabytes.

Threat Intelligence Overview

EPSS Score
0.0%
Top 98% exploitable
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

26
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Vendor StatusVendor

SUSE

Severity: Medium
Product Status
SUSE Linux Enterprise Module for Package Hub 15 SP7 Fixed
SUSE Linux Enterprise Server 16.0 Fixed
SUSE Linux Enterprise Server 16.1 Fixed
SUSE Linux Enterprise Server for SAP applications 16.0 Fixed
SUSE Linux Enterprise Server for SAP applications 16.1 Fixed

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy