CVE-2022-39261
CVSS V2 None
CVSS V3 High 7.5
Description
Twig is a template language for PHP. Versions 1.x prior to 1.44.7, 2.x prior to 2.15.3, and 3.x prior to 3.4.3 encounter an issue when the filesystem loader loads templates for which the name is a user input. It is possible to use the `source` or `include` statement to read arbitrary files from outside the templates' directory when using a namespace like `@somewhere/../some.file`. In such a case, validation is bypassed. Versions 1.44.7, 2.15.3, and 3.4.3 contain a fix for validation of such template names. There are no known workarounds aside from upgrading.
Overview
- CVE ID
- CVE-2022-39261
- Assigner
- security-advisories@github.com
- Vulnerability Status
- Analyzed
- Published Version
- 2022-09-28T14:15:10
- Last Modified Date
- 2022-11-21T15:26:31
Weakness Enumerations
CPE Configuration (Product)
CPE | Vulnerable | Operator | Version Start | Version End |
---|---|---|---|---|
cpe:2.3:a:symfony:twig:*:*:*:*:*:*:*:* | 1 | OR | 1.0.0 | 1.44.7 |
cpe:2.3:a:symfony:twig:*:*:*:*:*:*:*:* | 1 | OR | 2.0.0 | 2.15.3 |
cpe:2.3:a:symfony:twig:*:*:*:*:*:*:*:* | 1 | OR | 3.0.0 | 3.4.3 |
cpe:2.3:a:drupal:drupal:*:*:*:*:*:*:*:* | 1 | OR | 8.0.0 | 9.3.22 |
cpe:2.3:a:drupal:drupal:*:*:*:*:*:*:*:* | 1 | OR | 9.4.0 | 9.4.7 |
cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:* | 1 | OR | ||
cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:* | 1 | OR | ||
cpe:2.3:o:fedoraproject:fedora:37:*:*:*:*:*:*:* | 1 | OR | ||
cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:* | 1 | OR | ||
cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:* | 1 | OR |
CVSS Version 3
- Version
- 3.1
- Vector String
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- Attack Vector
- NETWORK
- Attack Compatibility
- LOW
- Privileges Required
- NONE
- User Interaction
- NONE
- Scope
- UNCHANGED
- Confidentiality Impact
- HIGH
- Availability Impact
- NONE
- Base Score
- 7.5
- Base Severity
- HIGH
- Exploitability Score
- 3.9
- Impact Score
- 3.6
References
Sources
Source Name | Source URL |
---|---|
NIST | https://nvd.nist.gov/vuln/detail/CVE-2022-39261 |
MITRE | https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-39261 |
History
Created | Old Value | New Value | Data Type | Notes |
---|---|---|---|---|
2022-09-28 16:00:10 | Added to TrackCVE | |||
2022-12-07 05:04:53 | 2022-09-28T14:15Z | 2022-09-28T14:15:10 | CVE Published Date | updated |
2022-12-07 05:04:53 | 2022-11-21T15:26:31 | CVE Modified Date | updated | |
2022-12-07 05:04:54 | Analyzed | Vulnerability Status | updated | |
2022-12-07 05:04:59 | References | updated |