CVE-2025-49140: Github.com/pion/interceptor Remote Code Execution Vulnerability
HIGHCVE-2025-49140 is a HIGH (CVSS 7.5) remote code execution vulnerability (CWE-770: Allocation of Resources Without Limits or Throttling) affecting Github.com/pion/interceptor libraries in the Go ecosystem. The issue involves pion interceptor's improper rtp padding handling allows remote crash for sfu users (dos). Remediation is available by upgrading affected packages to version 0.1.39.
CVE-2025-49140 at a Glance
Security Impact
CVSS: 7.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H).
How to Fix CVE-2025-49140
To remediate this vulnerability, upgrade all affected Github.com/pion/interceptor 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 github.com/pion/interceptor to 0.1.39
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/pion/interceptor
How to Check if You Are Affected
To determine whether your application is affected by CVE-2025-49140, inspect your project dependencies for Github.com/pion/interceptor:
inspect dependencies for github.com/pion/interceptor
Analyze the terminal output to locate any version of Github.com/pion/interceptor in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.1.39), 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-770: Allocation of Resources Without Limits or Throttling, where the product allocates a reusable resource or group of resources on behalf of an actor without imposing any intended restrictions on the size or number of resources that can be allocated. In Github.com/pion/interceptor, 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-49140 Affected Github.com/pion/interceptor Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/pion/interceptor
|
Go |
≥ 0.1.36
< 0.1.39
|
0.1.39
|
References
Frequently Asked Questions
What is CVE-2025-49140?
Which Github.com/pion/interceptor versions are affected?
What version fixes CVE-2025-49140?
Is github.com/pion/interceptor affected?
What is the CVSS score of CVE-2025-49140?
What CWE is associated with CVE-2025-49140?
How can I check Go dependencies for CVE-2025-49140?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-f26w-gh5m-qq77",
"modified" : "2025-06-10T14:45:07Z",
"published" : "2025-06-09T20:29:40Z",
"aliases" : [ "CVE-2025-49140" ],
"summary" : "Pion Interceptor's improper RTP padding handling allows remote crash for SFU users (DoS)",
"details" : "### Impact\nPion Interceptor versions v0.1.36 through v0.1.38 contain a bug in a RTP packet factory that can be exploited to trigger a panic with Pion based SFU via crafted RTP packets, This only affect users that use pion/interceptor.\n\n### Patches\n\nUpgrade to v0.1.39 or later, which includes PR [#338](https://github.com/pion/interceptor/pull/338) which validates that: `padLen > 0 && padLen <= payloadLength` and return error on overflow, avoiding panic.\n\nIf upgrading is not possible, apply the patch from the pull request manually or drop packets whose P-bit is set but whose padLen is zero or larger than the remaining payload.\n\n### Workarounds\nAt the application layer, reject any RTP packet where:\n```\nhasPadding (P-bit field) == true && (padLen == 0 || padLen > packetLen – headerLen)\n```\n\nbefore passing it to Pion’s packet factories.\n\n### References\nCommit fixing the bug: https://github.com/pion/interceptor/commit/fa5b35ea867389cec33a9c82fffbd459ca8958e5\nPull request: https://github.com/pion/interceptor/pull/338\nIssue: https://github.com/pion/webrtc/issues/3148",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/pion/interceptor"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0.1.36"
}, {
"fixed" : "0.1.39"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/pion/interceptor/security/advisories/GHSA-f26w-gh5m-qq77"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-49140"
}, {
"type" : "WEB",
"url" : "https://github.com/pion/webrtc/issues/3148"
}, {
"type" : "WEB",
"url" : "https://github.com/pion/interceptor/pull/338"
}, {
"type" : "WEB",
"url" : "https://github.com/pion/interceptor/commit/fa5b35ea867389cec33a9c82fffbd459ca8958e5"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/pion/interceptor"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-770" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2025-06-09T20:29:40Z",
"nvd_published_at" : "2025-06-09T22:15:22Z"
}
}