GHSA-w65j-g6c7-g3m4: Actix web Multiple Memory Safety Issues Vulnerability

MODERATE
CWE-362
Published
Advisory Summary

GHSA-w65j-g6c7-g3m4 is a MODERATE multiple memory safety issues vulnerability (CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')) affecting Actix web libraries in the crates.io ecosystem. The issue involves multiple memory safety issues in actix-web. Remediation is available by upgrading affected packages to version 0.7.19.

GHSA-w65j-g6c7-g3m4 at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-w65j-g6c7-g3m4
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')
Affected Product Actix web
Package Ecosystem crates.io
Published Date
Last Updated

How to Fix GHSA-w65j-g6c7-g3m4

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

actix-web fixed: 0.7.19
Upgrade actix-web to 0.7.19
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 actix-web

How to Check if You Are Affected

To determine whether your application is affected by GHSA-w65j-g6c7-g3m4, inspect your project dependencies for Actix web:

inspect dependencies for actix-web

Analyze the terminal output to locate any version of Actix web in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.7.19), 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-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition'), where the product contains a concurrent code sequence that requires temporary, exclusive access to a shared resource, but a timing window exists in which the shared resource can be modified by another code sequence operating concurrently. In Actix web, 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

Affected versions contain multiple memory safety issues, such as: - Unsoundly coercing immutable references to mutable references - Unsoundly extending lifetimes of strings - Adding the `Send` marker trait to objects that cannot be safely sent between threads This may result in a variety of memory corruption scenarios, most likely use-after-free. A signficant refactoring effort has been conducted to resolve these issues.

GHSA-w65j-g6c7-g3m4 Affected Actix web Versions

1 component(s)
Fixed Versions:
0.7.19
Product / Package Ecosystem Affected Versions Fixed Version
actix-web
crates.io
< 0.7.19
0.7.19

References

Frequently Asked Questions

What is GHSA-w65j-g6c7-g3m4?
GHSA-w65j-g6c7-g3m4 is a security vulnerability in Actix web involving Multiple memory safety issues in actix-web under CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition').
Which Actix web versions are affected?
Affected versions include releases prior to 0.7.19 across affected packages: actix-web.
What version fixes GHSA-w65j-g6c7-g3m4?
Upgrading to 0.7.19 (or the latest patched release for your respective branch) resolves the vulnerability.
Is actix-web affected?
Yes, actix-web is affected in releases prior to 0.7.19. Upgrade your dependency to 0.7.19 or later.
What CWE is associated with GHSA-w65j-g6c7-g3m4?
GHSA-w65j-g6c7-g3m4 is classified under CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition') (The product contains a concurrent code sequence that requires temporary, exclusive access to a shared resource, but a timing window exists in which the shared resource can be modified by another code sequence operating concurrently.).
How can I check crates.io dependencies for GHSA-w65j-g6c7-g3m4?
Run the dependency tree command: 'inspect dependencies for actix-web'. 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-w65j-g6c7-g3m4",
  "modified" : "2026-06-09T10:46:24Z",
  "published" : "2021-08-25T20:42:50Z",
  "aliases" : [ ],
  "summary" : "Multiple memory safety issues in actix-web",
  "details" : "Affected versions contain multiple memory safety issues, such as:\n\n - Unsoundly coercing immutable references to mutable references\n - Unsoundly extending lifetimes of strings\n - Adding the `Send` marker trait to objects that cannot be safely sent between threads\n\nThis may result in a variety of memory corruption scenarios, most likely use-after-free.\n \nA signficant refactoring effort has been conducted to resolve these issues.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "crates.io",
      "name" : "actix-web"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.7.19"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/actix/actix-web/issues/289"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/actix/actix-web"
  }, {
    "type" : "WEB",
    "url" : "https://rustsec.org/advisories/RUSTSEC-2018-0019.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-362" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2021-08-24T19:13:30Z",
    "nvd_published_at" : null
  }
}