CVE-2022-0768: Rudloff/alltube Server-Side Request Forgery (SSRF) Vulnerability
CRITICALCVE-2022-0768 is a CRITICAL (CVSS 9.1) server-side request forgery (ssrf) vulnerability (CWE-918: Server-Side Request Forgery (SSRF)) affecting Rudloff/alltube libraries in the Packagist ecosystem. The issue involves server-side request forgery (ssrf) in rudloff/alltube. Remediation is available by upgrading affected packages to version 3.0.2.
CVE-2022-0768 at a Glance
Security Impact
CVSS: 9.1
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:H/I:H/A:N).
How to Fix CVE-2022-0768
To remediate this vulnerability, upgrade all affected Rudloff/alltube 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 rudloff/alltube to 3.0.2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for rudloff/alltube
How to Check if You Are Affected
To determine whether your application is affected by CVE-2022-0768, inspect your project dependencies for Rudloff/alltube:
inspect dependencies for rudloff/alltube
Analyze the terminal output to locate any version of Rudloff/alltube in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.0.2), 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-918: Server-Side Request Forgery (SSRF), where the web server receives a url or similar request from an upstream component and retrieves the contents of this url, but it does not sufficiently ensure that the request is being sent to the expected destination. In Rudloff/alltube, 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-2022-0768 Affected Rudloff/alltube Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
rudloff/alltube
|
Packagist |
< 3.0.2
|
3.0.2
|
References
Frequently Asked Questions
What is CVE-2022-0768?
Which Rudloff/alltube versions are affected?
What version fixes CVE-2022-0768?
Is rudloff/alltube affected?
What is the CVSS score of CVE-2022-0768?
What CWE is associated with CVE-2022-0768?
How can I check Packagist dependencies for CVE-2022-0768?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-r5hc-wm3g-hjw6",
"modified" : "2022-03-18T20:42:54Z",
"published" : "2022-03-01T22:01:30Z",
"aliases" : [ "CVE-2022-0768" ],
"summary" : "Server-Side Request Forgery (SSRF) in rudloff/alltube",
"details" : "### Impact\nReleases prior to 3.0.2 are vulnerable to a Server-Side Request Forgery vulnerability that allows an attacker to send a request to an internal hostname.\n\n### Patches\n3.0.2 contains a fix for this vulnerability.\n(The 1.x and 2.x releases are not maintained anymore.)\n\nPart of the fix requires applying [a patch](https://github.com/Rudloff/alltube/blob/148a171b240e7ceb076b9e198bef412de14ac55d/patches/youtube-dl-redirect.diff) to youtube-dl to prevent it from following HTTP redirects. If you are using the version of youtube-dl bundled with 3.0.2, it is already patched.\nHowever, if you are using your own unpatched version of youtube-dl **you might still be vulnerable**.\n\n### References\n* https://github.com/Rudloff/alltube/commit/3a4f09dda0a466662a4e52cde674749e0c668e8d\n* https://github.com/Rudloff/alltube/commit/1b099bb9836a3ce7c427a41722a7ab5a3d1c1b2d\n* https://huntr.dev/bounties/9b14cc46-ec08-4940-83cc-9f986b2a5903/\n* https://nvd.nist.gov/vuln/detail/CVE-2022-0768\n* https://github.com/ytdl-org/youtube-dl/issues/30691",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "rudloff/alltube"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "3.0.2"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/Rudloff/alltube/security/advisories/GHSA-r5hc-wm3g-hjw6"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-0768"
}, {
"type" : "WEB",
"url" : "https://github.com/Rudloff/alltube/commit/3a4f09dda0a466662a4e52cde674749e0c668e8d"
}, {
"type" : "WEB",
"url" : "https://github.com/rudloff/alltube/commit/148a171b240e7ceb076b9e198bef412de14ac55d"
}, {
"type" : "WEB",
"url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/rudloff/alltube/CVE-2022-0768.yaml"
}, {
"type" : "WEB",
"url" : "https://github.com/Rudloff/alltube"
}, {
"type" : "WEB",
"url" : "https://huntr.dev/bounties/9b14cc46-ec08-4940-83cc-9f986b2a5903"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-918" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2022-03-01T22:01:30Z",
"nvd_published_at" : "2022-02-28T10:15:00Z"
}
}