CVE-2022-25777: Mautic MST-48 Server-Side Request Forgery Vulnerability

MODERATE
Advisory Identifier: GHSA-mgv8-w49f-822w
CVSS 6.5
CWE-918
Published
Advisory Summary

CVE-2022-25777 is a MODERATE (CVSS 6.5) mst-48 server-side request forgery vulnerability (CWE-918: Server-Side Request Forgery (SSRF)) affecting Mautic libraries in the Packagist ecosystem. The issue involves mst-48 server-side request forgery in asset section. Remediation is available by upgrading affected packages to version 4.4.12, 5.0.4.

CVE-2022-25777 at a Glance

CVE Identifier CVE-2022-25777
GHSA Identifier GHSA-mgv8-w49f-822w
Severity MODERATE
CVSS v3.1 Base Score 6.5
CWE Classification CWE-918: Server-Side Request Forgery (SSRF)
Affected Product Mautic
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 6.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required High (PR:H)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity None (I:N)
Availability High (A:H)

How to Fix CVE-2022-25777

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

mautic/core fixed: 4.4.12
Upgrade mautic/core to 4.4.12
mautic/core fixed: 5.0.4
Upgrade mautic/core to 5.0.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 mautic/core

How to Check if You Are Affected

To determine whether your application is affected by CVE-2022-25777, inspect your project dependencies for Mautic:

inspect dependencies for mautic/core

Analyze the terminal output to locate any version of Mautic in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.4.12), 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 Mautic, 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 Prior to the patched version, an authenticated user of Mautic could read system files and access the internal addresses of the application due to a Server-Side Request Forgery (SSRF) vulnerability. ### Patches Update to 4.4.12 or 5.0.4 ### Workarounds None ### References - https://owasp.org/Top10/A10_2021-Server-Side_Request_Forgery_%28SSRF%29/ If you have any questions or comments about this advisory: Email us at [security@mautic.org](mailto:security@mautic.org)

CVE-2022-25777 Affected Mautic Versions

2 component(s)
Fixed Versions:
4.4.125.0.4
Product / Package Ecosystem Affected Versions Fixed Version
mautic/core
Packagist
≥ 1.0.0-beta4
< 4.4.12
4.4.12
mautic/core
Packagist
≥ 5.0.0-alpha
< 5.0.4
5.0.4

References

Frequently Asked Questions

What is CVE-2022-25777?
CVE-2022-25777 is a security vulnerability in Mautic involving MST-48 Server-Side Request Forgery in Asset section under CWE-918: Server-Side Request Forgery (SSRF).
Which Mautic versions are affected?
Affected versions include releases prior to 4.4.12, 5.0.4 across affected packages: mautic/core.
What version fixes CVE-2022-25777?
Upgrading to 4.4.12, 5.0.4 (or the latest patched release for your respective branch) resolves the vulnerability.
Is mautic/core affected?
Yes, mautic/core is affected in releases prior to 4.4.12, 5.0.4. Upgrade your dependency to 4.4.12, 5.0.4 or later.
What is the CVSS score of CVE-2022-25777?
CVE-2022-25777 has a CVSS v3.1 base score of 6.5 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:H.
What CWE is associated with CVE-2022-25777?
CVE-2022-25777 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-25777?
Run the dependency tree command: 'inspect dependencies for mautic/core'. 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-mgv8-w49f-822w",
  "modified" : "2024-09-18T19:01:33Z",
  "published" : "2024-04-12T21:25:18Z",
  "aliases" : [ "CVE-2022-25777" ],
  "summary" : "Mautic: MST-48  Server-Side Request Forgery in Asset section ",
  "details" : "### Impact\nPrior to the patched version, an authenticated user of Mautic could read system files and access the internal addresses of the application due to a Server-Side Request Forgery (SSRF) vulnerability.\n\n### Patches\nUpdate to 4.4.12 or 5.0.4\n\n### Workarounds\nNone\n\n### References\n- https://owasp.org/Top10/A10_2021-Server-Side_Request_Forgery_%28SSRF%29/\n\nIf you have any questions or comments about this advisory:\n\nEmail us at [security@mautic.org](mailto:security@mautic.org)",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "mautic/core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.0.0-beta4"
      }, {
        "fixed" : "4.4.12"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "mautic/core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "5.0.0-alpha"
      }, {
        "fixed" : "5.0.4"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/mautic/mautic/security/advisories/GHSA-mgv8-w49f-822w"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-25777"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/mautic/mautic/commit/b4b4ab5f0613854152ceb7b5e5228acf50648fd0"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/mautic/mautic/commit/c54befd9eaaa49e4fc10a0fe22435c09ef2821b2"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/mautic/mautic"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-918" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-04-12T21:25:18Z",
    "nvd_published_at" : "2024-09-18T16:15:04Z"
  }
}