{"id":"CVE-2025-30356","state":"PUBLISHED","title":"Heap Buffer Overflow via Incomplete Length Check in `Crypto_TC_ApplySecurity`","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 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.","publishedAt":"2025-04-01T22:06:22.576Z","updatedAt":"2025-04-02T13:46:42.702Z","severity":{"score":9.3,"label":"Critical","version":"4.0","vector":"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","source":"GitHub_M"},"assigner":"GitHub_M","products":["nasa CryptoLib"],"affected":[{"vendor":"nasa","product":"CryptoLib","versions":[{"version":"<= 1.3.3","status":"affected"}]}],"references":["https://github.com/nasa/CryptoLib/security/advisories/GHSA-6w2x-w7w3-85w2","https://github.com/nasa/CryptoLib/commit/59d1bce7608c94c6131ef4877535075b0649799c"],"weaknesses":["CWE-191","CWE-787"],"ingestedAt":"2026-10-29T20:08:55.257Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/30xxx/CVE-2025-30356.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2025-30356","state":"PUBLISHED","datePublished":"2025-04-01T22:06:22.576Z","dateUpdated":"2025-04-02T13:46:42.702Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2025-03-21T14:12:06.270Z"},"containers":{"cna":{"title":"Heap Buffer Overflow via Incomplete Length Check in `Crypto_TC_ApplySecurity`","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"nasa","product":"CryptoLib","versions":[{"version":"<= 1.3.3","status":"affected"}]}],"references":[{"url":"https://github.com/nasa/CryptoLib/security/advisories/GHSA-6w2x-w7w3-85w2","name":"https://github.com/nasa/CryptoLib/security/advisories/GHSA-6w2x-w7w3-85w2","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/nasa/CryptoLib/commit/59d1bce7608c94c6131ef4877535075b0649799c","name":"https://github.com/nasa/CryptoLib/commit/59d1bce7608c94c6131ef4877535075b0649799c","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV4_0":{"attackVector":"NETWORK","attackComplexity":"LOW","attackRequirements":"NONE","privilegesRequired":"NONE","userInteraction":"NONE","vulnConfidentialityImpact":"HIGH","vulnIntegrityImpact":"HIGH","vulnAvailabilityImpact":"HIGH","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","subAvailabilityImpact":"NONE","baseScore":9.3,"baseSeverity":"CRITICAL","vectorString":"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","version":"4.0"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-191","lang":"en","description":"CWE-191: Integer Underflow (Wrap or Wraparound)","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-787","lang":"en","description":"CWE-787: Out-of-bounds Write","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2025-04-01T22:06:22.576Z"},"source":{"advisory":"GHSA-6w2x-w7w3-85w2","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","references":[{"url":"https://github.com/nasa/CryptoLib/security/advisories/GHSA-6w2x-w7w3-85w2","tags":["exploit"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2025-04-02T13:46:23.793681Z","id":"CVE-2025-30356","options":[{"Exploitation":"poc"},{"Automatable":"yes"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-04-02T13:46:42.702Z"}}]}}}