CVE-2022-24980: Kitodo/presentation SSRF Vulnerability

HIGH
Advisory Identifier: GHSA-x832-r2rj-4g5p
CVSS 7.5
CWE-918
Published
Advisory Summary

CVE-2022-24980 is a HIGH (CVSS 7.5) ssrf vulnerability (CWE-918: Server-Side Request Forgery (SSRF)) affecting Kitodo/presentation libraries in the Packagist ecosystem. The issue involves ssrf in kitodo.presentation. Remediation is available by upgrading affected packages to version 2.3.2, 3.2.3, 3.3.4.

CVE-2022-24980 at a Glance

CVE Identifier CVE-2022-24980
GHSA Identifier GHSA-x832-r2rj-4g5p
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-918: Server-Side Request Forgery (SSRF)
Affected Product Kitodo/presentation
Package Ecosystem Packagist
Published Date
Last Updated

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:H/I:N/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 None (I:N)
Availability None (A:N)

How to Fix CVE-2022-24980

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

kitodo/presentation fixed: 2.3.2
Upgrade kitodo/presentation to 2.3.2
kitodo/presentation fixed: 3.2.3
Upgrade kitodo/presentation to 3.2.3
kitodo/presentation fixed: 3.3.4
Upgrade kitodo/presentation to 3.3.4
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 kitodo/presentation

How to Check if You Are Affected

To determine whether your application is affected by CVE-2022-24980, inspect your project dependencies for Kitodo/presentation:

inspect dependencies for kitodo/presentation

Analyze the terminal output to locate any version of Kitodo/presentation in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.3.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 Kitodo/presentation, 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

An issue was discovered in the Kitodo.Presentation (aka dlf) extension before 2.3.2, 3.x before 3.2.3, and 3.3.x before 3.3.4 for TYPO3. A missing access check in an eID script allows an unauthenticated user to submit arbitrary URLs to this component. This results in SSRF, allowing attackers to view the content of any file or webpage the webserver has access to.

CVE-2022-24980 Affected Kitodo/presentation Versions

3 component(s)
Fixed Versions:
2.3.23.2.33.3.4
Product / Package Ecosystem Affected Versions Fixed Version
kitodo/presentation
Packagist
< 2.3.2
2.3.2
kitodo/presentation
Packagist
≥ 3.0.0
< 3.2.3
3.2.3
kitodo/presentation
Packagist
≥ 3.3.0
< 3.3.4
3.3.4

References

Frequently Asked Questions

What is CVE-2022-24980?
CVE-2022-24980 is a security vulnerability in Kitodo/presentation involving SSRF in Kitodo.Presentation under CWE-918: Server-Side Request Forgery (SSRF).
Which Kitodo/presentation versions are affected?
Affected versions include releases prior to 2.3.2, 3.2.3, 3.3.4 across affected packages: kitodo/presentation.
What version fixes CVE-2022-24980?
Upgrading to 2.3.2, 3.2.3, 3.3.4 (or the latest patched release for your respective branch) resolves the vulnerability.
Is kitodo/presentation affected?
Yes, kitodo/presentation is affected in releases prior to 2.3.2, 3.2.3, 3.3.4. Upgrade your dependency to 2.3.2, 3.2.3, 3.3.4 or later.
What is the CVSS score of CVE-2022-24980?
CVE-2022-24980 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N.
What CWE is associated with CVE-2022-24980?
CVE-2022-24980 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-24980?
Run the dependency tree command: 'inspect dependencies for kitodo/presentation'. 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-x832-r2rj-4g5p",
  "modified" : "2023-07-11T00:15:22Z",
  "published" : "2022-02-20T00:00:32Z",
  "aliases" : [ "CVE-2022-24980" ],
  "summary" : "SSRF in Kitodo.Presentation",
  "details" : "An issue was discovered in the Kitodo.Presentation (aka dlf) extension before 2.3.2, 3.x before 3.2.3, and 3.3.x before 3.3.4 for TYPO3. A missing access check in an eID script allows an unauthenticated user to submit arbitrary URLs to this component. This results in SSRF, allowing attackers to view the content of any file or webpage the webserver has access to.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "kitodo/presentation"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.3.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "kitodo/presentation"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.0.0"
      }, {
        "fixed" : "3.2.3"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "kitodo/presentation"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.3.0"
      }, {
        "fixed" : "3.3.4"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-24980"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/kitodo/kitodo-presentation/commit/059be3f82b08c60cbb798986cd3ff22dbf60a5e4"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/kitodo/kitodo-presentation/commit/4a20621afc30778ba3b045be5110353cf4fd4fd4"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/kitodo/kitodo-presentation/commit/9700478b46445f562c3e2051d61565d779f59275"
  }, {
    "type" : "WEB",
    "url" : "https://security.snyk.io/vuln/SNYK-PHP-KITODOPRESENTATION-2407280"
  }, {
    "type" : "WEB",
    "url" : "https://typo3.org/help/security-advisories"
  }, {
    "type" : "WEB",
    "url" : "https://typo3.org/security/advisory/typo3-ext-sa-2022-001"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-918" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-07-11T00:15:22Z",
    "nvd_published_at" : "2022-02-19T04:15:00Z"
  }
}