{"id":"CVE-2025-70085","details":"An issue was discovered in OpenSatKit 2.2.1. The EventErrStr buffer has a fixed size of 256 bytes. The code uses sprintf to format two filenames (Source1Filename and the string returned by FileUtil_FileStateStr) into this buffer without any length checking and without using bounded format specifiers such as %.*s. If the filename length approaches OS_MAX_PATH_LEN (commonly 64-256 bytes), the combined formatted string together with constant text can exceed 256 bytes, resulting in a stack buffer overflow. Such unsafe sprintf calls are scattered across multiple functions in file.c, including FILE_ConcatenateCmd() and ConcatenateFiles(), all of which fail to validate the output length.","modified":"2026-08-12T03:51:43.554249519Z","published":"2026-02-11T00:00:00Z","database_specific":{"cna_assigner":"mitre","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/70xxx/CVE-2025-70085.json"},"references":[{"type":"WEB","url":"https://gist.github.com/jonafk555"},{"type":"WEB","url":"https://github.com/OpenSatKit/OpenSatKit/releases/tag/v2.2.1"},{"type":"WEB","url":"https://raw.githubusercontent.com/OpenSatKit/OpenSatKit/master/cfs/apps/filemgr/fsw/src/file.c"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/70xxx/CVE-2025-70085.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-70085"},{"type":"PACKAGE","url":"https://github.com/OpenSatKit/OpenSatKit"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/opensatkit/opensatkit","events":[{"introduced":"0c8d552dd0585a00593c08717845267d979a4951"},{"fixed":"0c8d552dd0585a00593c08717845267d979a4951"}],"database_specific":{"extracted_events":[{"introduced":"2.2.1"},{"last_affected":"2.2.1"}],"source":["CPE_STRING","REFERENCES"],"cpe":"cpe:2.3:a:opensatkit:opensatkit:2.2.1:*:*:*:*:*:*:*"}}],"versions":["2.2.1"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-70085.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}