CVE-2025-47737: Trailer Trailer Mishandles Allocating With A Vulnerability

LOW
Advisory Identifier: GHSA-6x45-r4pr-5362
CVSS 2.9
CWE-762
Published
Advisory Summary

CVE-2025-47737 is a LOW (CVSS 2.9) trailer mishandles allocating with a vulnerability (CWE-762: Mismatched Memory Management Routines) affecting Trailer libraries in the crates.io ecosystem. The issue involves trailer mishandles allocating with a size of zero. Remediation is available in the latest vendor maintenance releases.

CVE-2025-47737 at a Glance

CVE Identifier CVE-2025-47737
GHSA Identifier GHSA-6x45-r4pr-5362
Severity LOW
CVSS v3.1 Base Score 2.9
CWE Classification CWE-762: Mismatched Memory Management Routines
Affected Product Trailer
Package Ecosystem crates.io
Published Date
Last Updated

Security Impact

CVSS: 2.9

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L).

Attack Vector Local (AV:L)
Attack Complexity High (AC:H)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity None (I:N)
Availability Low (A:L)

How to Fix CVE-2025-47737

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

trailer fixed: Latest secure release
Upgrade trailer to Latest secure release
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 trailer

How to Check if You Are Affected

To determine whether your application is affected by CVE-2025-47737, inspect your project dependencies for Trailer:

inspect dependencies for trailer

Analyze the terminal output to locate any version of Trailer in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), 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-762: Mismatched Memory Management Routines, where the product attempts to return a memory resource to the system, but it calls a release function that is not compatible with the function that was originally used to allocate that resource. In Trailer, 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

lib.rs in the trailer crate through 0.1.2 for Rust mishandles allocating with a size of zero.

CVE-2025-47737 Affected Trailer Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
trailer
crates.io
≤ 0.1.2

References

Frequently Asked Questions

What is CVE-2025-47737?
CVE-2025-47737 is a security vulnerability in Trailer involving trailer mishandles allocating with a size of zero under CWE-762: Mismatched Memory Management Routines.
Which Trailer versions are affected?
Affected versions include releases prior to current release patches across affected packages: trailer.
What version fixes CVE-2025-47737?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is trailer affected?
Yes, trailer is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of CVE-2025-47737?
CVE-2025-47737 has a CVSS v3.1 base score of 2.9 (LOW) with vector string CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L.
What CWE is associated with CVE-2025-47737?
CVE-2025-47737 is classified under CWE-762: Mismatched Memory Management Routines (The product attempts to return a memory resource to the system, but it calls a release function that is not compatible with the function that was originally used to allocate that resource.).
How can I check crates.io dependencies for CVE-2025-47737?
Run the dependency tree command: 'inspect dependencies for trailer'. 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-6x45-r4pr-5362",
  "modified" : "2026-06-09T11:57:41Z",
  "published" : "2025-05-09T06:32:36Z",
  "aliases" : [ "CVE-2025-47737" ],
  "summary" : "trailer mishandles allocating with a size of zero",
  "details" : "lib.rs in the trailer crate through 0.1.2 for Rust mishandles allocating with a size of zero.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "crates.io",
      "name" : "trailer"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "0.1.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-47737"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/Geal/trailer/issues/2"
  }, {
    "type" : "WEB",
    "url" : "https://crates.io/crates/trailer"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/Geal/trailer"
  }, {
    "type" : "WEB",
    "url" : "https://rustsec.org/advisories/RUSTSEC-2025-0163.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-762" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-05-09T15:54:02Z",
    "nvd_published_at" : "2025-05-09T05:15:51Z"
  }
}