Security Vulnerability Report
中文
CVE-2026-44927 CVSS 2.9 LOW

CVE-2026-44927

Published: 2026-05-08 08:16:44
Last Modified: 2026-05-12 15:12:05

Description

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

CVSS Details

CVSS Score
2.9
Severity
LOW
CVSS Vector
CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N

Configurations (Affected Products)

cpe:2.3:a:uriparser_project:uriparser:*:*:*:*:*:*:*:* - VULNERABLE
uriparser < 1.0.2

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
#include <stdio.h> #include <stdlib.h> #include <stdint.h> // Simulate the pointer difference truncation vulnerability void vulnerable_function(char* start, char* end) { // Vulnerability: Casting pointer difference (ptrdiff_t/size_t) to int int diff = (int)(end - start); printf("Actual pointer difference: %ld\n", end - start); printf("Truncated int value: %d\n", diff); if (diff > 0) { // Potential misuse of the truncated value leading to logic error or memory issue printf("Processing %d bytes based on truncated value.\n", diff); } } int main() { // Allocate a buffer larger than INT_MAX to trigger truncation on 64-bit systems size_t size = (size_t)1 << 31; // 2GB char* buffer = (char*)malloc(size); if (buffer) { vulnerable_function(buffer, buffer + size); free(buffer); } else { printf("Memory allocation failed.\n"); } return 0; }

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-44927", "sourceIdentifier": "[email protected]", "published": "2026-05-08T08:16:43.973", "lastModified": "2026-05-12T15:12:04.613", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "In uriparser before 1.0.2, there is pointer difference truncation to int in various places."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N", "baseScore": 2.9, "baseSeverity": "LOW", "attackVector": "LOCAL", "attackComplexity": "HIGH", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 1.4, "impactScore": 1.4}, {"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N", "baseScore": 5.3, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 3.9, "impactScore": 1.4}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-197"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:uriparser_project:uriparser:*:*:*:*:*:*:*:*", "versionEndExcluding": "1.0.2", "matchCriteriaId": "069C54F3-2AD5-4384-8DBD-FD4D001F8DD5"}]}]}], "references": [{"url": "https://github.com/uriparser/uriparser/pull/304", "source": "[email protected]", "tags": ["Issue Tracking", "Patch"]}]}}