CVE-2025-47737: Trailer Trailer Mishandles Allocating With A Vulnerability
LOWCVE-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
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).
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.
Upgrade trailer to Latest secure release
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
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?
Which Trailer versions are affected?
What version fixes CVE-2025-47737?
Is trailer affected?
What is the CVSS score of CVE-2025-47737?
What CWE is associated with CVE-2025-47737?
How can I check crates.io dependencies for CVE-2025-47737?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}