CVE-2025-50361 Details
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.
A buffer overflow vulnerability has been identified in SmallBASIC community SmallBASIC with SDL, prior to version 12_28. The issue arises in the 'main' function of 'main.cpp', where 'strcpy' is used to copy command line arguments into a global variable, 'opt_command'. This variable has a fixed size of 1024 bytes, as defined by the 'OPT_CMD_CZ' macro. The use of 'strcpy' creates a vulnerability because it does not limit the number of bytes copied, allowing for more than 1024 bytes to be written to 'opt_command'. This overflow can overwrite other global variables, potentially leading to information leakage and program crashes.
Users can update to SmallBASIC version 12_28 or later, where this vulnerability has been fixed by replacing 'strcpy' with 'strlcpy', which includes proper bounds checking.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Dec 3, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/Ch1keen/CVE-2025-50361 | [email protected] | ExploitPatchThird Party Advisory |
| https://github.com/smallbasic/SmallBASIC | [email protected] | Product |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-120 | Buffer Copy without Checking Size of Input ('Classic Buffer Overflow') | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| smallbasic smallbasic | < 12.28 |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Nov 4, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Dec 18, 2025 | Initial Analysis | [email protected] |
| Dec 3, 2025 | New CVE Received | [email protected] |
| Dec 3, 2025 | CVE Modified | CISA-ADP |