Skip to main content

uriparser EUVDEUVD-2026-28536

| CVE-2026-44927 MEDIUM
Numeric Truncation Error (CWE-197)
2026-05-08 mitre GHSA-gmxg-5w57-j63q
5.3
CVSS 3.1 · NVD
View

Attack ChainAIDerived

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

  1. Access
    Craft malicious URI with oversized path
  2. Delivery
    Pass URI to local uriparser function
  3. Exploit
    Trigger pointer subtraction exceeding INT_MAX
  4. Execution
    Integer truncation to int
  5. Persist
    Use corrupted length in buffer operation
  6. Impact
    Corrupt URI data or bypass validation

Vulnerability Assessment

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

Exploitation requires the following specific conditions: (1) Local access to the system running uriparser; (2) Ability to provide input URIs to the vulnerable library, typically through local file paths (file:// URIs), local IPC, or local HTTP requests; (3) Crafted URI input containing pointer arithmetic results exceeding INT_MAX in at least one of the affected functions (RangeEquals, RemoveDotSegmentsEx, FilenameToUriString, LowercaseInplaceExceptPercentEncoding, FixPercentEncodingEngine, FixPercentEncodingMalloc, ComposeQueryEngine, or AppendQueryItem); (4) Non-default configuration: exploitation is most practical on systems with large address spaces or memory layouts where pointer differences naturally exceed INT_MAX, or where attacker control over URI content is unrestricted. No special configuration flags or non-default builds are required by the library itself - vulnerability exists in all standard compilations of affected versions. Attack complexity is high because crafting a URI that simultaneously triggers integer overflow and causes downstream memory corruption requires precise knowledge of application memory layout and the affected function's context.

Impact

CVSS score of 2.9 reflects low real-world risk due to local attack vector (AV:L), high attack complexity (AC:H), no privileges required (PR:N), and limited impact (I:L only - no confidentiality or availability loss per the vector). However, this CVSS underrepresents risk in specific deployment contexts: embedded systems with large contiguous memory regions, long-running URI parsing servers, or applications processing untrusted URI data from local sources (e.g., desktop applications parsing file:// URIs or local HTTP caches). The fix's extensive overflow detection across five source files indicates developers considered this a genuine integrity concern, not theoretical. No EPSS, KEV status, or POC data provided; absence of public exploitation does not eliminate risk in targeted scenarios. The 'Integrity' impact (I:L) combined with integer overflow could allow attackers to corrupt URI fields, bypass validation checks, or trigger downstream processing errors. AC:H (high complexity) suggests exploitation requires specific pointer arithmetic conditions - realistic only when attacker controls URI content and memory layout. Real risk is moderate-to-high for library maintainers and developers using uriparser with untrusted local input; low for typical web service deployments processing remote URIs (network-based, not local file parsing).

Exploit ScenarioDerived

An attacker crafts a malicious file:// URI with an extremely long path component (or embedded pointer arithmetic-inducing data) and passes it to a vulnerable uriparser library instance on a local system, e.g., a desktop application parsing file URLs or a local HTTP proxy. The pointer subtraction for path length calculation (afterLast - first) exceeds INT_MAX due to the long path, triggering integer truncation to a small or negative int value. This corrupted length is then used in a subsequent memcpy() or buffer size validation, causing a buffer overflow or skipped security checks, allowing integrity corruption of parsed URI fields or adjacent memory. Exploitation requires local access and high complexity (AC:H) due to precise memory layout and path length requirements.

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 – May 08, 2026

Pointer difference truncation to signed int in uriparser before version 1.0.2 allows local attackers to cause integer overflow and data integrity issues through specially crafted URI inputs. The vulnerability stems from unsafe casting of pointer arithmetic results (afterLast - first) to int, which can overflow on systems where pointer differences exceed INT_MAX, leading to buffer overflows, incorrect memory calculations, and potential information disclosure. While CVSS score is low (2.9) due to local attack vector and high complexity, the fix adds comprehensive overflow detection using SIZE_MAX checks, indicating real risk in applications processing untrusted URIs locally.

RemediationAI

Upgrade uriparser to version 1.0.2 or later, which includes comprehensive overflow detection using SIZE_MAX and size_t types across all affected functions. If immediate upgrade is not feasible, apply the patch from GitHub PR #304 (https://github.com/uriparser/uriparser/pull/304) to your codebase; critical changes include: (1) Replace int length variables with size_t in UriCommon.c (RangeEquals, RemoveDotSegmentsEx), UriFile.c (FilenameToUriString), UriNormalize.c (LowercaseInplaceExceptPercentEncoding, FixPercentEncodingEngine, FixPercentEncodingMalloc), and UriQuery.c (ComposeQueryEngine, AppendQueryItem); (2) Add overflow checks using SIZE_MAX / sizeof(URI_CHAR) before all size-based memory operations; (3) Return URI_ERROR_OUTPUT_TOO_LARGE or URI_FALSE on overflow detection. Recompile dependent applications after patching. As a temporary compensating control, restrict uriparser usage to trusted, locally-generated URI inputs and avoid processing URIs from untrusted local sources (file uploads, IPC) until patched; this control is imperfect and does not prevent all attack scenarios.

Affected VersionsENISA

uriparser 0 <1.0.2

Affected Packages

euvd uriparser fix: 1.0.2

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 that parses and manipulates Uniform Resource Identifiers (URIs) according to RFC 3986. The vulnerability resides in multiple parsing and normalization functions (UriCommon.c, UriFile.c, UriNormalize.c, UriQuery.c) that calculate buffer lengths by subtracting pointer values (pointer arithmetic). In C, pointer subtraction yields a ptrdiff_t value; the vulnerable code unsafely casts these results to signed int via (int)(ptr_b - ptr_a). On systems where pointer arithmetic results exceed INT_MAX (e.g., processing large buffers or due to memory layout), this truncation causes integer overflow, leading to negative or wrapped values used in subsequent size calculations and memory operations. CWE-197 (Numeric Truncation Error) describes this exact flaw: loss of information during type conversion. The fix replaces int with size_t for length variables, adds stdint.h includes for SIZE_MAX, and implements explicit overflow checks before memory operations, preventing wrapped values from corrupting downstream logic.

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.3 MEDIUM
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
Red Hat 2.2 LOW

Primary rating from NVD.

CVSS VectorNVD

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
Low
Availability
None

Lifecycle Timeline

4
Severity Changed
Nov 11, 2026 - 20:22 NVD
LOW MEDIUM
CVSS changed
Nov 11, 2026 - 20:22 NVD
2.9 (LOW) 5.3 (MEDIUM)
Patch available
May 08, 2026 - 09:02 EUVD
CVE Published
May 08, 2026 - 07:13 nvd
LOW 2.9

DescriptionNVD

In uriparser before 1.0.2, there is pointer difference truncation to int in various places.

Threat Intelligence Overview

EPSS Score
0.0%
Top 100% exploitable
Social Media
1
Sightings
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor CIRCL 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
Open
Automatable
No
Human Impact· derived
Low
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

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