CVE-2023-39343: Sulu/sulu Sulu Observable Response Discrepancy On Vulnerability

MODERATE
Advisory Identifier: GHSA-wmwf-49vv-p3mr
CVSS 4.3
CWE-204
Published
Advisory Summary

CVE-2023-39343 is a MODERATE (CVSS 4.3) sulu observable response discrepancy on vulnerability (CWE-204: Observable Response Discrepancy) affecting Sulu/sulu libraries in the Packagist ecosystem. The issue involves sulu observable response discrepancy on admin login. Remediation is available by upgrading affected packages to version 2.5.10.

CVE-2023-39343 at a Glance

CVE Identifier CVE-2023-39343
GHSA Identifier GHSA-wmwf-49vv-p3mr
Severity MODERATE
CVSS v3.1 Base Score 4.3
CWE Classification CWE-204: Observable Response Discrepancy
Affected Product Sulu/sulu
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 4.3

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

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

How to Fix CVE-2023-39343

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

sulu/sulu fixed: 2.5.10
Upgrade sulu/sulu to 2.5.10
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 sulu/sulu

How to Check if You Are Affected

To determine whether your application is affected by CVE-2023-39343, inspect your project dependencies for Sulu/sulu:

inspect dependencies for sulu/sulu

Analyze the terminal output to locate any version of Sulu/sulu in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.5.10), 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-204: Observable Response Discrepancy, where the product provides different responses to incoming requests in a way that reveals internal state information to an unauthorized actor outside of the intended control sphere. In Sulu/sulu, 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 It allows over the Admin Login form to detect which user (username, email) exists and which one do not exist. Impacted by this issue are Sulu installation >= 2.5.0 and <2.5.10 using the newer Symfony Security System which is default since Symfony 6.0 but can be enabled in Symfony 5.4. Sulu Installation not using the old Symfony 5.4 security System and previous version are not impacted by this Security issue. ### Patches The problem has been patched in version 2.5.10. ### Workarounds Create a custom AuthenticationFailureHandler which does not return the `$exception->getMessage();` instead the `$exception->getMessageKey();` ### References Currently no references.

CVE-2023-39343 Affected Sulu/sulu Versions

1 component(s)
Fixed Versions:
2.5.10
Product / Package Ecosystem Affected Versions Fixed Version
sulu/sulu
Packagist
≥ 2.5.0
< 2.5.10
2.5.10

References

Frequently Asked Questions

What is CVE-2023-39343?
CVE-2023-39343 is a security vulnerability in Sulu/sulu involving Sulu Observable Response Discrepancy on Admin Login under CWE-204: Observable Response Discrepancy.
Which Sulu/sulu versions are affected?
Affected versions include releases prior to 2.5.10 across affected packages: sulu/sulu.
What version fixes CVE-2023-39343?
Upgrading to 2.5.10 (or the latest patched release for your respective branch) resolves the vulnerability.
Is sulu/sulu affected?
Yes, sulu/sulu is affected in releases prior to 2.5.10. Upgrade your dependency to 2.5.10 or later.
What is the CVSS score of CVE-2023-39343?
CVE-2023-39343 has a CVSS v3.1 base score of 4.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N.
What CWE is associated with CVE-2023-39343?
CVE-2023-39343 is classified under CWE-204: Observable Response Discrepancy (The product provides different responses to incoming requests in a way that reveals internal state information to an unauthorized actor outside of the intended control sphere.).
How can I check Packagist dependencies for CVE-2023-39343?
Run the dependency tree command: 'inspect dependencies for sulu/sulu'. 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-wmwf-49vv-p3mr",
  "modified" : "2023-08-04T13:31:19Z",
  "published" : "2023-08-03T19:44:28Z",
  "aliases" : [ "CVE-2023-39343" ],
  "summary" : "Sulu Observable Response Discrepancy on Admin Login",
  "details" : "### Impact\n\nIt allows over the Admin Login form to detect which user (username, email) exists and which one do not exist.\n\nImpacted by this issue are Sulu installation >= 2.5.0 and <2.5.10 using the newer Symfony Security System which is default since Symfony 6.0 but can be enabled in Symfony 5.4. Sulu Installation not using the old Symfony 5.4 security System and previous version are not impacted by this Security issue.\n\n### Patches\n\nThe problem has been patched in version 2.5.10. \n\n### Workarounds\n\nCreate a custom AuthenticationFailureHandler which does not return the `$exception->getMessage();` instead the `$exception->getMessageKey();`\n\n### References\n\nCurrently no references.\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "sulu/sulu"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.5.0"
      }, {
        "fixed" : "2.5.10"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/sulu/sulu/security/advisories/GHSA-wmwf-49vv-p3mr"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-39343"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/sulu/sulu/commit/5f6c98ba030b2005793e2dc647cc938937ea889b"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/sulu/sulu/CVE-2023-39343.yaml"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/sulu/sulu"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/sulu/sulu/releases/tag/2.5.10"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-204" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-08-03T19:44:28Z",
    "nvd_published_at" : "2023-08-04T01:15:10Z"
  }
}