{"id":"CVE-2025-30356","summary":"Heap Buffer Overflow via Incomplete Length Check in `Crypto_TC_ApplySecurity`","details":"CryptoLib provides a software-only solution using the CCSDS Space Data Link Security Protocol - Extended Procedures (SDLS-EP) to secure communications between a spacecraft running the core Flight System (cFS) and a ground station. In 1.3.3 and earlier, a heap buffer overflow vulnerability persists in the Crypto_TC_ApplySecurity function due to an incomplete validation check on the fl (frame length) field. Although CVE-2025-29912 addressed an underflow issue involving fl, the patch fails to fully prevent unsafe calculations. As a result, an attacker can still craft malicious frames that cause a negative tf_payload_len, which is then interpreted as a large unsigned value, leading to a heap buffer overflow in a memcpy call.","aliases":["GHSA-6w2x-w7w3-85w2"],"modified":"2026-08-12T03:51:47.966986265Z","published":"2025-04-01T22:06:22.576Z","database_specific":{"cna_assigner":"GitHub_M","cwe_ids":["CWE-191","CWE-787"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/30xxx/CVE-2025-30356.json"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/30xxx/CVE-2025-30356.json"},{"type":"ADVISORY","url":"https://github.com/nasa/CryptoLib/security/advisories/GHSA-6w2x-w7w3-85w2"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-30356"},{"type":"FIX","url":"https://github.com/nasa/CryptoLib/commit/59d1bce7608c94c6131ef4877535075b0649799c"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/nasa/cryptolib","events":[{"introduced":"0"},{"fixed":"0d58c9a8cb9f7e96d67858d7ac125daaec0ca299"},{"fixed":"59d1bce7608c94c6131ef4877535075b0649799c"}],"database_specific":{"source":["CPE_RANGE","REFERENCES"],"cpe":"cpe:2.3:a:nasa:cryptolib:*:*:*:*:*:*:*:*","extracted_events":[{"introduced":"0"},{"fixed":"1.4.0"}]}}],"versions":["v1.3.3","v1.3.2","v1.3.1","v1.3.0","v1.2.3","v1.2.2","v1.2.1","v1.2.0","v1.1.1","v1.1.0","v1.0.3"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-30356.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"}]}