{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2025-30216","id":"CVE-2025-30216","title":"CryptoLib Has Heap Overflow in Crypto_TM_ProcessSecurity due to Unchecked Secondary Header Length","description":"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 versions 1.3.3 and prior, a Heap Overflow vulnerability occurs in the `Crypto_TM_ProcessSecurity` function (`crypto_tm.c:1735:8`). When processing the Secondary Heade","descriptionLong":"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 versions 1.3.3 and prior, a Heap Overflow vulnerability occurs in the `Crypto_TM_ProcessSecurity` function (`crypto_tm.c:1735:8`). When processing the Secondary Header Length of a TM protocol packet, if the Secondary Header Length exceeds the packet's total length, a heap overflow is triggered during the memcpy operation that copies packet data into the dynamically allocated buffer `p_new_dec_frame`. This allows an attacker to overwrite adjacent heap memory, potentially leading to arbitrary code execution or system instability. A patch is available at commit 810fd66d592c883125272fef123c3240db2f170f.","published":"2025-03-25T19:22:22.645Z","updated":"2026-10-28T02:30:29.740089576Z","reserved":"2025-03-18T18:15:13.850Z","status":"Analyzed","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":9.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:H","rating":"critical","source":"GitHub_M"},"metrics":[{"version":"3.1","score":9.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:H","rating":"critical","source":"GitHub_M"},{"version":"3.1","score":9.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:H","rating":"critical","source":"github.com"},{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H","rating":"critical","source":"NVD"},{"version":"3.1","score":9.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:H","rating":"critical","source":"OSV"}],"rating":"critical","products":["nasa CryptoLib"],"affectedProducts":[{"vendor":"nasa","product":"CryptoLib","defaultStatus":null,"versions":[{"version":"<= 1.3.3","status":"affected"}],"platforms":[]}],"packages":[],"cwes":["CWE-122","CWE-787"],"aliases":["GHSA-v3jc-5j74-hcjv"],"references":[{"url":"https://github.com/nasa/CryptoLib/security/advisories/GHSA-v3jc-5j74-hcjv","tags":["x_refsource_CONFIRM","Exploit","Vendor Advisory","advisory"]},{"url":"https://github.com/nasa/CryptoLib/commit/810fd66d592c883125272fef123c3240db2f170f","tags":["x_refsource_MISC","Patch","fix"]},{"url":"https://github.com/user-attachments/assets/d49cea04-ce84-4d60-bb3a-987e843f09c4","tags":["x_refsource_MISC","Broken Link","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/30xxx/CVE-2025-30216.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-30216","tags":["advisory"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"total"},"epss":0.0265,"epssPercentile":0.85951,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2025-30216","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-30216","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2025-30216","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2025-30216","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}