# JLSEC-2025-98: A flaw was found in the key export functionality of libssh

- Severity: Medium 6.5 (CVSS:3.1, scored by Julia Security Advisories) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2025-10-19T18:40:48.457Z
- Modified: 2026-07-18T00:01:26.500Z
- Related: CVE-2025-5351

## Description

A flaw was found in the key export functionality of libssh. The issue occurs in the internal function responsible for converting cryptographic keys into serialized formats. During error handling, a memory structure is freed but not cleared, leading to a potential double free issue if an additional failure occurs later in the function. This condition may result in heap corruption or application instability in low-memory scenarios, posing a risk to system reliability where key export operations are performed.

(As written by Julia Security Advisories.)

## Affected

- libssh_jll (Julia): before 0.11.3+0

## References

- <https://access.redhat.com/errata/RHSA-2026:18683> (web)
- <https://access.redhat.com/security/cve/CVE-2025-5351> (web)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2369367> (web)

## Sources

- Julia Security Advisories: [JLSEC-2025-98](https://osv.dev/vulnerability/JLSEC-2025-98), CC-BY-4.0, modified 2026-07-18

---

Page: https://cve.day/JLSEC-2025-98 · Whole record: https://cve.day/JLSEC-2025-98.json · Rebuilt by cve.day 2026-11-25T22:56:25.828Z
