CVE-2019-16768: Sylius/sylius Internal Exception Message Exposure For Vulnerability

LOW
Advisory Identifier: GHSA-3r8j-pmch-5j2h
CVSS 3.5
CWE-209
Published
Advisory Summary

CVE-2019-16768 is a LOW (CVSS 3.5) internal exception message exposure for vulnerability (CWE-209: Generation of Error Message Containing Sensitive Information) affecting Sylius/sylius libraries in the Packagist ecosystem. The issue involves internal exception message exposure for login action in sylius. Remediation is available by upgrading affected packages to version 1.3.14, 1.4.10, 1.5.7, 1.6.3.

CVE-2019-16768 at a Glance

CVE Identifier CVE-2019-16768
GHSA Identifier GHSA-3r8j-pmch-5j2h
Severity LOW
CVSS v3.1 Base Score 3.5
CWE Classification CWE-209: Generation of Error Message Containing Sensitive Information
Affected Product Sylius/sylius
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 3.5

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:R/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 Required (UI:R)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2019-16768

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

sylius/sylius fixed: 1.3.14
Upgrade sylius/sylius to 1.3.14
sylius/sylius fixed: 1.4.10
Upgrade sylius/sylius to 1.4.10
sylius/sylius fixed: 1.5.7
Upgrade sylius/sylius to 1.5.7
sylius/sylius fixed: 1.6.3
Upgrade sylius/sylius to 1.6.3
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 sylius/sylius

How to Check if You Are Affected

To determine whether your application is affected by CVE-2019-16768, inspect your project dependencies for Sylius/sylius:

inspect dependencies for sylius/sylius

Analyze the terminal output to locate any version of Sylius/sylius in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.3.14), 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-209: Generation of Error Message Containing Sensitive Information, where the product generates an error message that includes sensitive information about its environment, users, or associated data. In Sylius/sylius, 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

## Internal exception message exposure for login action ### Impact Exception messages from internal exceptions (like database exception) are wrapped by `\Symfony\Component\Security\Core\Exception\AuthenticationServiceException` and propagated through the system to UI. Therefore, some internal system information may leak and be visible to the customer. A validation message with the exception details will be presented to the user when one will try to log into the shop. ### Patches _Has the problem been patched? What versions should users upgrade to?_ ### Workarounds The `src/Sylius/Bundle/UiBundle/Resources/views/Security/_login.html.twig` file should be overridden and lines https://github.com/Sylius/Sylius/blob/1.4/src/Sylius/Bundle/UiBundle/Resources/views/Security/_login.html.twig#L13-L17 should be replaced with ```twig {% if last_error %} <div class="ui left aligned basic segment"> {{ messages.error(last_error.messageKey) }} </div> {% endif %} ``` The `messageKey` field should be used instead of the `message`.

CVE-2019-16768 Affected Sylius/sylius Versions

4 component(s)
Fixed Versions:
1.3.141.4.101.5.71.6.3
Product / Package Ecosystem Affected Versions Fixed Version
sylius/sylius
Packagist
< 1.3.14
1.3.14
sylius/sylius
Packagist
≥ 1.4.0
< 1.4.10
1.4.10
sylius/sylius
Packagist
≥ 1.5.0
< 1.5.7
1.5.7
sylius/sylius
Packagist
≥ 1.6.0
< 1.6.3
1.6.3

References

Frequently Asked Questions

What is CVE-2019-16768?
CVE-2019-16768 is a security vulnerability in Sylius/sylius involving Internal exception message exposure for login action in Sylius under CWE-209: Generation of Error Message Containing Sensitive Information.
Which Sylius/sylius versions are affected?
Affected versions include releases prior to 1.3.14, 1.4.10, 1.5.7, 1.6.3 across affected packages: sylius/sylius.
What version fixes CVE-2019-16768?
Upgrading to 1.3.14, 1.4.10, 1.5.7, 1.6.3 (or the latest patched release for your respective branch) resolves the vulnerability.
Is sylius/sylius affected?
Yes, sylius/sylius is affected in releases prior to 1.3.14, 1.4.10, 1.5.7, 1.6.3. Upgrade your dependency to 1.3.14, 1.4.10, 1.5.7, 1.6.3 or later.
What is the CVSS score of CVE-2019-16768?
CVE-2019-16768 has a CVSS v3.1 base score of 3.5 (LOW) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:N/A:N.
What CWE is associated with CVE-2019-16768?
CVE-2019-16768 is classified under CWE-209: Generation of Error Message Containing Sensitive Information (The product generates an error message that includes sensitive information about its environment, users, or associated data.).
How can I check Packagist dependencies for CVE-2019-16768?
Run the dependency tree command: 'inspect dependencies for sylius/sylius'. 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-3r8j-pmch-5j2h",
  "modified" : "2021-01-08T21:20:32Z",
  "published" : "2019-12-05T19:57:04Z",
  "aliases" : [ "CVE-2019-16768" ],
  "summary" : "Internal exception message exposure for login action in Sylius",
  "details" : "## Internal exception message exposure for login action\n\n### Impact\nException messages from internal exceptions (like database exception) are wrapped by `\\Symfony\\Component\\Security\\Core\\Exception\\AuthenticationServiceException` and propagated through the system to UI. Therefore, some internal system information may leak and be visible to the customer. \n\nA validation message with the exception details will be presented to the user when one will try to log into the shop. \n\n### Patches\n_Has the problem been patched? What versions should users upgrade to?_\n\n### Workarounds\nThe `src/Sylius/Bundle/UiBundle/Resources/views/Security/_login.html.twig` file should be overridden and lines https://github.com/Sylius/Sylius/blob/1.4/src/Sylius/Bundle/UiBundle/Resources/views/Security/_login.html.twig#L13-L17 should be replaced with\n```twig\n        {% if last_error %}\n            <div class=\"ui left aligned basic segment\">\n                {{ messages.error(last_error.messageKey) }}\n            </div>\n        {% endif %}\n``` \n\nThe `messageKey` field should be used instead of the `message`.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "sylius/sylius"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.3.14"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "sylius/sylius"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.4.0"
      }, {
        "fixed" : "1.4.10"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "sylius/sylius"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.5.0"
      }, {
        "fixed" : "1.5.7"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "sylius/sylius"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.6.0"
      }, {
        "fixed" : "1.6.3"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/Sylius/Sylius/security/advisories/GHSA-3r8j-pmch-5j2h"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-16768"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/Sylius/Sylius/commit/be245302dfc594d8690fe50dd47631d186aa945f"
  }, {
    "type" : "ADVISORY",
    "url" : "https://github.com/advisories/GHSA-3r8j-pmch-5j2h"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-209" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-06-16T20:56:06Z",
    "nvd_published_at" : null
  }
}