CVE-2019-16768: Sylius/sylius Internal Exception Message Exposure For Vulnerability
LOWCVE-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
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).
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.
Upgrade sylius/sylius to 1.3.14
Upgrade sylius/sylius to 1.4.10
Upgrade sylius/sylius to 1.5.7
Upgrade sylius/sylius to 1.6.3
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
CVE-2019-16768 Affected Sylius/sylius Versions
4 component(s)| 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?
Which Sylius/sylius versions are affected?
What version fixes CVE-2019-16768?
Is sylius/sylius affected?
What is the CVSS score of CVE-2019-16768?
What CWE is associated with CVE-2019-16768?
How can I check Packagist dependencies for CVE-2019-16768?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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
}
}