Skip to content

add rustls-ffi GHSA-rc3f-4j82-cmrg advisory - #3447

Merged
djc merged 1 commit into
rustsec:mainfrom
cpu:rustls-ffi-GHSA-rc3f-4j82-cmrg
Oct 27, 2026
Merged

djc merged 1 commit into
rustsec:mainfrom
cpu:rustls-ffi-GHSA-rc3f-4j82-cmrg

Conversation

@cpu

@cpu cpu commented Oct 26, 2026

Copy link
Copy Markdown
Contributor

Affected crate(s)

  • rustls-ffi (96,825 recent downloads per crates.io)

Links to upstream issue(s) or PR(s)

Severity

In rustls-ffi 0.12.0 through 0.15.6, rustls_client_connection_new() and rustls_client_connection_new_alpn() retained a reference to the caller's server_name buffer after returning, rather than copying it. The API documentation did not require the buffer to outlive the call and as a result if the caller freed or reused the buffer, later TLS processing read freed memory.

Clients that free or reuse the server_name buffer after the constructor returns are affected. This is most likely for language bindings that pass temporary strings. Callers that keep the server_name buffer alive for the lifetime of the rustls_client_config are not affected.

Versions 0.12.0 through 0.15.6 are affected. Version 0.15.7+ changed these APIs to copy the input buffer.

Checklist

  • Advisory filename(s) starts with RUSTSEC-0000-0000 as the ID
  • date field is set to the public disclosure date
  • Contains a concise and descriptive title after advisory metadata
  • Asked maintainer(s) if publishing an advisory is appropriate

@djc
djc merged commit ec94443 into rustsec:main Oct 27, 2026
1 check passed
@cpu
cpu deleted the rustls-ffi-GHSA-rc3f-4j82-cmrg branch October 27, 2026 14:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants