CVE-2023-46733: Symfony/security http Symfony Possible Session Fixation Vulnerability Vulnerability
MODERATECVE-2023-46733 is a MODERATE (CVSS 6.5) symfony possible session fixation vulnerability vulnerability (CWE-384: Session Fixation) affecting Symfony/security http libraries in the Packagist ecosystem. The issue involves symfony possible session fixation vulnerability. Remediation is available by upgrading affected packages to version 5.4.31, 6.3.8.
CVE-2023-46733 at a Glance
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:L/UI:N/S:U/C:N/I:H/A:N).
How to Fix CVE-2023-46733
To remediate this vulnerability, upgrade all affected Symfony/security http 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 symfony/security-http to 5.4.31
Upgrade symfony/security-http to 6.3.8
Upgrade symfony/symfony to 5.4.31
Upgrade symfony/symfony to 6.3.8
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for symfony/security-http
How to Check if You Are Affected
To determine whether your application is affected by CVE-2023-46733, inspect your project dependencies for Symfony/security http:
inspect dependencies for symfony/security-http
Analyze the terminal output to locate any version of Symfony/security http in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 5.4.31), 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-384: Session Fixation, where authenticating a user, or otherwise establishing a new user session, without invalidating any existing session identifier gives an attacker the opportunity to steal authenticated sessions. In Symfony/security http, 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-2023-46733 Affected Symfony/security http Versions
4 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
symfony/security-http
|
Packagist |
≥ 5.4.21
< 5.4.31
|
5.4.31
|
|
symfony/security-http
|
Packagist |
≥ 6.2.7
< 6.3.8
|
6.3.8
|
|
symfony/symfony
|
Packagist |
≥ 5.4.21
< 5.4.31
|
5.4.31
|
|
symfony/symfony
|
Packagist |
≥ 6.2.7
< 6.3.8
|
6.3.8
|
References
Frequently Asked Questions
What is CVE-2023-46733?
Which Symfony/security http versions are affected?
What version fixes CVE-2023-46733?
Is symfony/security-http affected?
Is symfony/symfony affected?
What is the CVSS score of CVE-2023-46733?
What CWE is associated with CVE-2023-46733?
How can I check Packagist dependencies for CVE-2023-46733?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-m2wj-r6g3-fxfx",
"modified" : "2023-11-12T15:51:54Z",
"published" : "2023-11-12T15:51:54Z",
"aliases" : [ "CVE-2023-46733" ],
"summary" : "Symfony possible session fixation vulnerability",
"details" : "### Description\n\nSessionStrategyListener does not always migrate the session after a successful login. It only migrate the session when the logged-in user identifier changes. In some use cases, the user identifier doesn't change between the verification phase and the successful login, while the token itself changes from one type (partially-authenticated) to another (fully-authenticated). When this happens, the session id should be regenerated to prevent possible session fixations.\n\n### Resolution\n\nSymfony now checks the type of the token in addition to the user identifier before deciding whether the session id should be regenerated.\n\nThe patch for this issue is available [here](https://github.com/symfony/symfony/commit/dc356499d5ceb86f7cf2b4c7f032eca97061ed74) for branch 5.4.\n\n### Credits\n\nWe would like to thank Robert Meijers for reporting the issue and providing the fix.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "symfony/security-http"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "5.4.21"
}, {
"fixed" : "5.4.31"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "symfony/security-http"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "6.2.7"
}, {
"fixed" : "6.3.8"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "symfony/symfony"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "5.4.21"
}, {
"fixed" : "5.4.31"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "symfony/symfony"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "6.2.7"
}, {
"fixed" : "6.3.8"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/symfony/symfony/security/advisories/GHSA-m2wj-r6g3-fxfx"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-46733"
}, {
"type" : "WEB",
"url" : "https://github.com/symfony/symfony/commit/7467bd7e3f888b333102bc664b5e02ef1e7f88b9"
}, {
"type" : "WEB",
"url" : "https://github.com/symfony/symfony/commit/dc356499d5ceb86f7cf2b4c7f032eca97061ed74"
}, {
"type" : "WEB",
"url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/symfony/CVE-2023-46733.yaml"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/symfony/symfony"
}, {
"type" : "WEB",
"url" : "https://symfony.com/cve-2023-46733"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-384" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2023-11-12T15:51:54Z",
"nvd_published_at" : "2023-11-10T18:15:09Z"
}
}