Security Vulnerability Report
中文
CVE-2025-50361 CVSS 5.1 MEDIUM

CVE-2025-50361

Published: 2025-12-03 20:16:25
Last Modified: 2025-12-18 20:21:34

Description

Buffer Overflow was found in SmallBASIC community SmallBASIC with SDL Before v12_28, and commit sha:298a1d495355959db36451e90a0ac74bcc5593fe in the function main.cpp, which can lead to potential information leakage and crash.

CVSS Details

CVSS Score
5.1
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L

Configurations (Affected Products)

cpe:2.3:a:smallbasic:smallbasic:*:*:*:*:*:*:*:* - VULNERABLE
SmallBASIC with SDL < v12_28
SmallBASIC with SDL commit sha:298a1d495355959db36451e90a0ac74bcc5593fe之前

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
#include <iostream> #include <cstring> // This PoC demonstrates the buffer overflow condition in SmallBASIC // Target: SmallBASIC with SDL < v12_28 // File: main.cpp // Simulated vulnerable function void vulnerable_function(char* input, int size) { char buffer[256]; // Missing bounds checking - VULNERABLE memcpy(buffer, input, size); buffer[size] = '\0'; } // Trigger the overflow int main(int argc, char* argv[]) { if (argc > 1) { // Crafted input exceeding buffer size char* malicious_input = argv[1]; int input_len = strlen(malicious_input); // Attempt to trigger buffer overflow vulnerable_function(malicious_input, input_len); } return 0; } /* Usage: Compile: g++ -o poc poc.cpp Run: ./poc $(python3 -c 'print("A"*300)') Note: This PoC is for educational purposes. The actual exploitation requires analysis of the specific vulnerable code path in main.cpp of SmallBASIC with SDL versions before v12_28. */

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-50361", "sourceIdentifier": "[email protected]", "published": "2025-12-03T20:16:25.167", "lastModified": "2025-12-18T20:21:33.597", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "Buffer Overflow was found in SmallBASIC community SmallBASIC with SDL Before v12_28, and commit sha:298a1d495355959db36451e90a0ac74bcc5593fe in the function main.cpp, which can lead to potential information leakage and crash."}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L", "baseScore": 5.1, "baseSeverity": "MEDIUM", "attackVector": "LOCAL", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "LOW", "integrityImpact": "NONE", "availabilityImpact": "LOW"}, "exploitabilityScore": 2.5, "impactScore": 2.5}]}, "weaknesses": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-120"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:smallbasic:smallbasic:*:*:*:*:*:*:*:*", "versionEndExcluding": "12.28", "matchCriteriaId": "68B18401-BD91-4300-AD12-54D622402DED"}]}]}], "references": [{"url": "https://github.com/Ch1keen/CVE-2025-50361", "source": "[email protected]", "tags": ["Exploit", "Third Party Advisory", "Patch"]}, {"url": "https://github.com/smallbasic/SmallBASIC", "source": "[email protected]", "tags": ["Product"]}]}}