CVE-2022-0768: Rudloff/alltube Server-Side Request Forgery (SSRF) Vulnerability

CRITICAL
Advisory Identifier: GHSA-r5hc-wm3g-hjw6
CVSS 9.1
CWE-918
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2022-0768
GHSA Identifier GHSA-r5hc-wm3g-hjw6
Severity CRITICAL
CVSS v3.1 Base Score 9.1
CWE Classification CWE-918: Server-Side Request Forgery (SSRF)
Affected Product Rudloff/alltube
Package Ecosystem Packagist
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability None (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.

rudloff/alltube fixed: 3.0.2
Upgrade rudloff/alltube to 3.0.2
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 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

### Impact Releases 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. ### Patches 3.0.2 contains a fix for this vulnerability. (The 1.x and 2.x releases are not maintained anymore.) Part 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. However, if you are using your own unpatched version of youtube-dl **you might still be vulnerable**. ### References * https://github.com/Rudloff/alltube/commit/3a4f09dda0a466662a4e52cde674749e0c668e8d * https://github.com/Rudloff/alltube/commit/1b099bb9836a3ce7c427a41722a7ab5a3d1c1b2d * https://huntr.dev/bounties/9b14cc46-ec08-4940-83cc-9f986b2a5903/ * https://nvd.nist.gov/vuln/detail/CVE-2022-0768 * https://github.com/ytdl-org/youtube-dl/issues/30691

CVE-2022-0768 Affected Rudloff/alltube Versions

1 component(s)
Fixed Versions:
3.0.2
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?
CVE-2022-0768 is a security vulnerability in Rudloff/alltube involving Server-Side Request Forgery (SSRF) in rudloff/alltube under CWE-918: Server-Side Request Forgery (SSRF).
Which Rudloff/alltube versions are affected?
Affected versions include releases prior to 3.0.2 across affected packages: rudloff/alltube.
What version fixes CVE-2022-0768?
Upgrading to 3.0.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is rudloff/alltube affected?
Yes, rudloff/alltube is affected in releases prior to 3.0.2. Upgrade your dependency to 3.0.2 or later.
What is the CVSS score of CVE-2022-0768?
CVE-2022-0768 has a CVSS v3.1 base score of 9.1 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N.
What CWE is associated with CVE-2022-0768?
CVE-2022-0768 is classified under CWE-918: Server-Side Request Forgery (SSRF) (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.).
How can I check Packagist dependencies for CVE-2022-0768?
Run the dependency tree command: 'inspect dependencies for rudloff/alltube'. 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-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"
  }
}