GHSA-qr9h-x63w-vqfm: Openmls OpenMLS Improper Persistence Of The Vulnerability

MODERATE
CWE-200
Published
Advisory Summary

GHSA-qr9h-x63w-vqfm is a MODERATE openmls improper persistence of the vulnerability (CWE-200: Exposure of Sensitive Information to an Unauthorized Actor) affecting Openmls libraries in the crates.io ecosystem. The issue involves openmls improper persistence of the secret tree during message processing. Remediation is available by upgrading affected packages to version 0.7.1.

GHSA-qr9h-x63w-vqfm at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-qr9h-x63w-vqfm
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
Affected Product Openmls
Package Ecosystem crates.io
Published Date
Last Updated

How to Fix GHSA-qr9h-x63w-vqfm

To remediate this vulnerability, upgrade all affected Openmls dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

openmls fixed: 0.7.1
Upgrade openmls to 0.7.1
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for openmls

How to Check if You Are Affected

To determine whether your application is affected by GHSA-qr9h-x63w-vqfm, inspect your project dependencies for Openmls:

inspect dependencies for openmls

Analyze the terminal output to locate any version of Openmls in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.7.1), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor, where the product exposes sensitive information to an actor that is not explicitly authorized to have access to that information. In Openmls, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Summary A bug in the OpenMLS library prevented private key material from being updated in storage during message processing. The key material in question are the keys stored in the MLS secret tree, which are used for decryption of private MLS messages. The effects of the bug are limited in scope, but can affect forward secrecy and limit how many messages can be decrypted. ### Technical details #### Scope The scope of the bug is limited to private messages (application and handshake messages) received in groups. Furthermore, the scope is limited to one epoch and the effects are reset with each epoch transition, or through consecutive group operations without reloading group state in between. #### Functional impact Within each epoch of a group, there is a maximum number of private messages per sender that can be skipped before an error is thrown. The number of messages is set through maximum_forward_distance in the SenderRatchetConfiguration and the default value is 1000. The bug causes the library to think that private messages have been processed, even when that's not the case. This can cause an error to be returned during message processing. #### Security impact This bug can be exploited only if an adversary gains access to the client’s state. The risk for exploitation is thus relatively low in typical use cases. The bug can be exploited to decrypt more messages than intended by the client. The number of additional messages that can be decrypted is limited to the number of messages that can be skipped, which is maximum_forward_distance. This means that if an adversary gains access to a client’s state, they can decrypt up to maximum_forward_distance additional messages per sender in the current epoch. This affects forward secrecy, as messages that were previously considered secure can be decrypted. OpenMLS otherwise deletes message encryption keys as soon as an epoch ends if not otherwise configured via the `max_past_epochs` setting. This is still the case even in vulnerable versions. ### Affected versions Vulnerable: all versions up to and including version 0.7.0 Not vulnerable: all versions greater than and including version 0.7.1 (see below for security after upgrading from a vulnerable version to a secure one) ### Mitigation Message encryption secrets are deleted when a commit is merged, i.e. when the group transitions to the next epoch. If the client is not configured to retain message secrets for past epochs, messages decrypted in past epochs are thus secure. If past message secrets are retained, messages decrypted in past epochs are secure as soon as the relevant epoch leaves the retention window. Increasing update/commit frequency can thus help keep the window for compromise low. Another way to mitigate the effect is to create a private message (application or handshake message) for each sender of previously received messages. It is important to do that with the same MlsGroup object, withpout reloading it from storage in between. This will ensure that the message encryption keys are updated correctly. ### Security post-patch Since the bug affects persisted state, patching by itself strictly speaking doesn’t solve the issue. State written prior to patching is still vulnerable. An affected client is fully healed from the effects of this bug as soon as it either enters the next epoch (by merging a commit), or, if message encryption key retention is configured, by advancing sufficiently many epochs for pre-patch epoch state to drop out of the retention window. Additionally, the client is healed even before the next epoch, if it processes enough messages s.t. any messages decrypted pre-patch fall out of the window for out-of-order tolerance. This is 5 by default, but can be configured to an arbitrary number using the `sender_ratchet_configuration` setting during group creation. ### Acknowledgements We would like to thank [Ege Erdogan](https://github.com/erdoganege) and [Fatih Ergin](https://github.com/fatihergin) for reporting this issue.

GHSA-qr9h-x63w-vqfm Affected Openmls Versions

1 component(s)
Fixed Versions:
0.7.1
Product / Package Ecosystem Affected Versions Fixed Version
openmls
crates.io
< 0.7.1
0.7.1

References

Frequently Asked Questions

What is GHSA-qr9h-x63w-vqfm?
GHSA-qr9h-x63w-vqfm is a security vulnerability in Openmls involving OpenMLS improper persistence of the secret tree during message processing under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor.
Which Openmls versions are affected?
Affected versions include releases prior to 0.7.1 across affected packages: openmls.
What version fixes GHSA-qr9h-x63w-vqfm?
Upgrading to 0.7.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is openmls affected?
Yes, openmls is affected in releases prior to 0.7.1. Upgrade your dependency to 0.7.1 or later.
What CWE is associated with GHSA-qr9h-x63w-vqfm?
GHSA-qr9h-x63w-vqfm is classified under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor (The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.).
How can I check crates.io dependencies for GHSA-qr9h-x63w-vqfm?
Run the dependency tree command: 'inspect dependencies for openmls'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-qr9h-x63w-vqfm",
  "modified" : "2025-09-26T15:32:21Z",
  "published" : "2025-09-26T15:32:21Z",
  "aliases" : [ ],
  "summary" : "OpenMLS improper persistence of the secret tree during message processing",
  "details" : "### Summary\n\nA bug in the OpenMLS library prevented private key material from being updated in storage during message processing. The key material in question are the keys stored in the MLS secret tree, which are used for decryption of private MLS messages. The effects of the bug are limited in scope, but can affect forward secrecy and limit how many messages can be decrypted.\n\n### Technical details\n\n#### Scope\n\nThe scope of the bug is limited to private messages (application and handshake messages) received in groups. Furthermore, the scope is limited to one epoch and the effects are reset with each epoch transition, or through consecutive group operations without reloading group state in between.\n\n#### Functional impact\n\nWithin each epoch of a group, there is a maximum number of private messages per sender that can be skipped before an error is thrown. The number of messages is set through maximum_forward_distance in the SenderRatchetConfiguration and the default value is 1000. The bug causes the library to think that private messages have been processed, even when that's not the case. This can cause an error to be returned during message processing.\n\n#### Security impact\n\nThis bug can be exploited only if an adversary gains access to the client’s state. The risk for exploitation is thus relatively low in typical use cases.\n\nThe bug can be exploited to decrypt more messages than intended by the client. The number of additional messages that can be decrypted is limited to the number of messages that can be skipped, which is maximum_forward_distance. This means that if an adversary gains access to a client’s state, they can decrypt up to maximum_forward_distance additional messages per sender in the current epoch. This affects forward secrecy, as messages that were previously considered secure can be decrypted.\n\nOpenMLS otherwise deletes message encryption keys as soon as an epoch ends if not otherwise configured via the `max_past_epochs` setting. This is still the case even in vulnerable versions.\n\n### Affected versions\n\nVulnerable: all versions up to and including version 0.7.0\n\nNot vulnerable: all versions greater than and including version 0.7.1 (see below for security after upgrading from a vulnerable version to a secure one)\n\n### Mitigation\n\nMessage encryption secrets are deleted when a commit is merged, i.e. when the group transitions to the next epoch. If the client is not configured to retain message secrets for past epochs, messages decrypted in past epochs are thus secure. If past message secrets are retained, messages decrypted in past epochs are secure as soon as the relevant epoch leaves the retention window. Increasing update/commit frequency can thus help keep the window for compromise low.\nAnother way to mitigate the effect is to create a private message (application or handshake message) for each sender of previously received messages. It is important to do that with the same MlsGroup object, withpout reloading it from storage in between. This will ensure that the message encryption keys are updated correctly.\n\n### Security post-patch\n\nSince the bug affects persisted state, patching by itself strictly speaking doesn’t solve the issue. State written prior to patching is still vulnerable. An affected client is fully healed from the effects of this bug as soon as it either enters the next epoch (by merging a commit), or, if message encryption key retention is configured, by advancing sufficiently many epochs for pre-patch epoch state to drop out of the retention window.\n\nAdditionally, the client is healed even before the next epoch, if it processes enough messages s.t. any messages decrypted pre-patch fall out of the window for out-of-order tolerance. This is 5 by default, but can be configured to an arbitrary number using the `sender_ratchet_configuration` setting during group creation.\n\n### Acknowledgements\n\nWe would like to thank [Ege Erdogan](https://github.com/erdoganege) and [Fatih Ergin](https://github.com/fatihergin) for reporting this issue.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:L/AC:H/AT:N/PR:H/UI:P/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "crates.io",
      "name" : "openmls"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.7.1"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 0.7.0"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/openmls/openmls/security/advisories/GHSA-qr9h-x63w-vqfm"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/openmls/openmls/commit/c73a074c804b30bec8284ac1e69a71b01db982ea"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/openmls/openmls"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-200" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-09-26T15:32:21Z",
    "nvd_published_at" : null
  }
}