Search for packages
Package details: pkg:composer/twig/twig@2.10.0
purl pkg:composer/twig/twig@2.10.0
Next non-vulnerable version 3.11.2
Latest non-vulnerable version 3.19.0
Risk 4.4
Vulnerabilities affecting this package (6)
Vulnerability Summary Fixed by
VCID-2ytv-vgsf-aaar
Aliases:
CVE-2022-23614
GHSA-5mv2-rx3q-4w2v
Code injection in Twig
2.14.11
Affected by 5 other vulnerabilities.
3.0.0-BETA1
Affected by 3 other vulnerabilities.
3.3.8
Affected by 5 other vulnerabilities.
VCID-6ygy-mamy-jkec
Aliases:
CVE-2024-45411
GHSA-6j75-5wfj-gh66
Twig is a template language for PHP. Under some circumstances, the sandbox security checks are not run which allows user-contributed templates to bypass the sandbox restrictions. This vulnerability is fixed in 1.44.8, 2.16.1, and 3.14.0.
2.16.1
Affected by 2 other vulnerabilities.
3.0.0-BETA1
Affected by 3 other vulnerabilities.
3.11.1
Affected by 2 other vulnerabilities.
3.14.0
Affected by 2 other vulnerabilities.
VCID-bcv4-ry3v-aaab
Aliases:
CVE-2022-39261
GHSA-52m2-vc4m-jj33
Twig may load a template outside a configured directory when using the filesystem loader
2.15.3
Affected by 4 other vulnerabilities.
3.0.0-BETA1
Affected by 3 other vulnerabilities.
3.4.3
Affected by 4 other vulnerabilities.
VCID-e9bz-nz6b-sbab
Aliases:
CVE-2024-51755
GHSA-jjxq-ff2g-95vh
Twig is a template language for PHP. In a sandbox, an attacker can access attributes of Array-like objects as they were not checked by the security policy. They are now checked via the property policy and the `__isset()` method is now called after the security check. This is a BC break. This issue has been patched in versions 3.11.2 and 3.14.1. All users are advised to upgrade. There are no known workarounds for this issue.
3.11.2
Affected by 0 other vulnerabilities.
3.14.1
Affected by 0 other vulnerabilities.
VCID-q1pp-7jby-aaas
Aliases:
GHSA-7cvr-xhm5-x998
Twig Path Traversal vulnerability in the filesystem loader Twig is affected by path traversal vulnerability when used with Twig_Loader_Filesystem for loading Twig templates but only if the application is using non-trusted template names (names provided by a end-user for instance). When affected, it is possible to go up one directory for the paths configured in the application's loader. For instance, if the filesystem loader is configured with /path/to/templates as a path to look for templates, an attacker can force Twig to include a file stored in /path/to by prepending the path with /../ like in {% include "/../somefile_in_path_to" %} Note that using anything else (like ../somefile, /../../somefile, or ../../somefile) won’t work and the application will return a proper exception. There are no reported fixed by versions.
VCID-ydp7-f75t-27hn
Aliases:
CVE-2024-51754
GHSA-6377-hfv9-hqf6
Twig is a template language for PHP. In a sandbox, an attacker can call `__toString()` on an object even if the `__toString()` method is not allowed by the security policy when the object is part of an array or an argument list (arguments to a function or a filter for instance). This issue has been patched in versions 3.11.2 and 3.14.1. All users are advised to upgrade. There are no known workarounds for this issue.
3.11.2
Affected by 0 other vulnerabilities.
3.14.1
Affected by 0 other vulnerabilities.
Vulnerabilities fixed by this package (0)
Vulnerability Summary Aliases
This package is not known to fix vulnerabilities.

Date Actor Action Vulnerability Source VulnerableCode Version
2025-06-20T17:11:15.447065+00:00 GitLab Importer Affected by VCID-ydp7-f75t-27hn https://gitlab.com/gitlab-org/advisories-community/-/blob/main/packagist/twig/twig/CVE-2024-51754.yml 36.1.3
2025-06-20T17:11:14.960755+00:00 GitLab Importer Affected by VCID-e9bz-nz6b-sbab https://gitlab.com/gitlab-org/advisories-community/-/blob/main/packagist/twig/twig/CVE-2024-51755.yml 36.1.3
2025-06-20T17:07:33.839292+00:00 GitLab Importer Affected by VCID-6ygy-mamy-jkec https://gitlab.com/gitlab-org/advisories-community/-/blob/main/packagist/twig/twig/CVE-2024-45411.yml 36.1.3
2025-06-20T17:01:15.506389+00:00 GitLab Importer Affected by VCID-q1pp-7jby-aaas https://gitlab.com/gitlab-org/advisories-community/-/blob/main/packagist/twig/twig/GHSA-7cvr-xhm5-x998.yml 36.1.3
2025-06-20T16:07:47.877186+00:00 GitLab Importer Affected by VCID-bcv4-ry3v-aaab https://gitlab.com/gitlab-org/advisories-community/-/blob/main/packagist/twig/twig/CVE-2022-39261.yml 36.1.3
2025-06-20T16:07:47.009173+00:00 GitLab Importer Affected by VCID-bcv4-ry3v-aaab None 36.1.3
2025-06-20T15:27:46.859776+00:00 GitLab Importer Affected by VCID-2ytv-vgsf-aaar https://gitlab.com/gitlab-org/advisories-community/-/blob/main/packagist/twig/twig/CVE-2022-23614.yml 36.1.3
2025-06-20T15:27:45.379277+00:00 GitLab Importer Affected by VCID-2ytv-vgsf-aaar None 36.1.3
2025-06-03T23:47:06.637891+00:00 GitLab Importer Affected by VCID-ydp7-f75t-27hn https://gitlab.com/gitlab-org/advisories-community/-/blob/main/packagist/twig/twig/CVE-2024-51754.yml 36.1.0
2025-06-03T23:47:06.113530+00:00 GitLab Importer Affected by VCID-e9bz-nz6b-sbab https://gitlab.com/gitlab-org/advisories-community/-/blob/main/packagist/twig/twig/CVE-2024-51755.yml 36.1.0
2025-06-03T23:43:39.543112+00:00 GitLab Importer Affected by VCID-6ygy-mamy-jkec https://gitlab.com/gitlab-org/advisories-community/-/blob/main/packagist/twig/twig/CVE-2024-45411.yml 36.1.0
2025-06-03T23:37:49.807117+00:00 GitLab Importer Affected by VCID-q1pp-7jby-aaas https://gitlab.com/gitlab-org/advisories-community/-/blob/main/packagist/twig/twig/GHSA-7cvr-xhm5-x998.yml 36.1.0
2025-06-03T22:47:52.098339+00:00 GitLab Importer Affected by VCID-bcv4-ry3v-aaab https://gitlab.com/gitlab-org/advisories-community/-/blob/main/packagist/twig/twig/CVE-2022-39261.yml 36.1.0
2025-06-03T22:47:51.385447+00:00 GitLab Importer Affected by VCID-bcv4-ry3v-aaab None 36.1.0
2025-06-03T22:09:03.549476+00:00 GitLab Importer Affected by VCID-2ytv-vgsf-aaar https://gitlab.com/gitlab-org/advisories-community/-/blob/main/packagist/twig/twig/CVE-2022-23614.yml 36.1.0
2025-06-03T22:09:02.255417+00:00 GitLab Importer Affected by VCID-2ytv-vgsf-aaar None 36.1.0
2025-06-02T23:45:38.400751+00:00 GitLab Importer Affected by VCID-ydp7-f75t-27hn https://gitlab.com/gitlab-org/advisories-community/-/blob/main/packagist/twig/twig/CVE-2024-51754.yml 36.1.2
2025-06-02T23:45:37.912615+00:00 GitLab Importer Affected by VCID-e9bz-nz6b-sbab https://gitlab.com/gitlab-org/advisories-community/-/blob/main/packagist/twig/twig/CVE-2024-51755.yml 36.1.2
2025-06-02T23:41:59.892145+00:00 GitLab Importer Affected by VCID-6ygy-mamy-jkec https://gitlab.com/gitlab-org/advisories-community/-/blob/main/packagist/twig/twig/CVE-2024-45411.yml 36.1.2
2025-06-02T23:35:55.931129+00:00 GitLab Importer Affected by VCID-q1pp-7jby-aaas https://gitlab.com/gitlab-org/advisories-community/-/blob/main/packagist/twig/twig/GHSA-7cvr-xhm5-x998.yml 36.1.2
2025-06-02T22:37:15.851955+00:00 GitLab Importer Affected by VCID-bcv4-ry3v-aaab https://gitlab.com/gitlab-org/advisories-community/-/blob/main/packagist/twig/twig/CVE-2022-39261.yml 36.1.2
2025-06-02T22:37:14.939770+00:00 GitLab Importer Affected by VCID-bcv4-ry3v-aaab None 36.1.2
2025-06-02T21:56:16.570717+00:00 GitLab Importer Affected by VCID-2ytv-vgsf-aaar https://gitlab.com/gitlab-org/advisories-community/-/blob/main/packagist/twig/twig/CVE-2022-23614.yml 36.1.2
2025-06-02T21:56:15.019472+00:00 GitLab Importer Affected by VCID-2ytv-vgsf-aaar None 36.1.2
2025-04-03T22:30:58.233858+00:00 GitLab Importer Affected by VCID-ydp7-f75t-27hn https://gitlab.com/gitlab-org/advisories-community/-/blob/main/packagist/twig/twig/CVE-2024-51754.yml 36.0.0
2025-04-03T22:30:56.980973+00:00 GitLab Importer Affected by VCID-e9bz-nz6b-sbab https://gitlab.com/gitlab-org/advisories-community/-/blob/main/packagist/twig/twig/CVE-2024-51755.yml 36.0.0
2025-04-03T22:22:58.890387+00:00 GitLab Importer Affected by VCID-6ygy-mamy-jkec https://gitlab.com/gitlab-org/advisories-community/-/blob/main/packagist/twig/twig/CVE-2024-45411.yml 36.0.0
2025-04-03T22:11:18.497060+00:00 GitLab Importer Affected by VCID-q1pp-7jby-aaas https://gitlab.com/gitlab-org/advisories-community/-/blob/main/packagist/twig/twig/GHSA-7cvr-xhm5-x998.yml 36.0.0
2025-04-03T20:25:33.443687+00:00 GitLab Importer Affected by VCID-bcv4-ry3v-aaab https://gitlab.com/gitlab-org/advisories-community/-/blob/main/packagist/twig/twig/CVE-2022-39261.yml 36.0.0
2025-04-03T20:25:31.430730+00:00 GitLab Importer Affected by VCID-bcv4-ry3v-aaab None 36.0.0
2025-04-03T19:12:47.234661+00:00 GitLab Importer Affected by VCID-2ytv-vgsf-aaar https://gitlab.com/gitlab-org/advisories-community/-/blob/main/packagist/twig/twig/CVE-2022-23614.yml 36.0.0
2025-04-03T19:12:43.905139+00:00 GitLab Importer Affected by VCID-2ytv-vgsf-aaar None 36.0.0
2025-02-18T04:14:11.564559+00:00 GitLab Importer Affected by VCID-e9bz-nz6b-sbab https://gitlab.com/gitlab-org/advisories-community/-/blob/main/packagist/twig/twig/CVE-2024-51755.yml 35.1.0
2025-02-18T04:14:10.337195+00:00 GitLab Importer Affected by VCID-ydp7-f75t-27hn https://gitlab.com/gitlab-org/advisories-community/-/blob/main/packagist/twig/twig/CVE-2024-51754.yml 35.1.0
2025-02-18T04:08:06.174103+00:00 GitLab Importer Affected by VCID-6ygy-mamy-jkec https://gitlab.com/gitlab-org/advisories-community/-/blob/main/packagist/twig/twig/CVE-2024-45411.yml 35.1.0
2025-02-18T02:56:51.332866+00:00 GitLab Importer Affected by VCID-bcv4-ry3v-aaab None 35.1.0
2025-02-18T02:56:48.923836+00:00 GitLab Importer Affected by VCID-bcv4-ry3v-aaab https://gitlab.com/gitlab-org/advisories-community/-/blob/main/packagist/twig/twig/CVE-2022-39261.yml 35.1.0
2025-02-18T02:40:34.274381+00:00 GitLab Importer Affected by VCID-2ytv-vgsf-aaar None 35.1.0
2025-02-18T02:40:33.395101+00:00 GitLab Importer Affected by VCID-2ytv-vgsf-aaar https://gitlab.com/gitlab-org/advisories-community/-/blob/main/packagist/twig/twig/CVE-2022-23614.yml 35.1.0
2025-02-18T01:09:27.093184+00:00 GitLab Importer Affected by VCID-q1pp-7jby-aaas https://gitlab.com/gitlab-org/advisories-community/-/blob/main/packagist/twig/twig/GHSA-7cvr-xhm5-x998.yml 35.1.0
2024-12-11T19:28:01.553544+00:00 GitLab Importer Affected by VCID-e9bz-nz6b-sbab https://gitlab.com/gitlab-org/advisories-community/-/blob/main/packagist/twig/twig/CVE-2024-51755.yml 35.0.0
2024-12-11T19:28:00.164432+00:00 GitLab Importer Affected by VCID-ydp7-f75t-27hn https://gitlab.com/gitlab-org/advisories-community/-/blob/main/packagist/twig/twig/CVE-2024-51754.yml 35.0.0
2024-11-21T01:15:32.550656+00:00 GitLab Importer Affected by VCID-6ygy-mamy-jkec https://gitlab.com/gitlab-org/advisories-community/-/blob/main/packagist/twig/twig/CVE-2024-45411.yml 35.0.0
2024-11-21T00:37:53.144626+00:00 GitLab Importer Affected by VCID-bcv4-ry3v-aaab https://gitlab.com/gitlab-org/advisories-community/-/blob/main/packagist/twig/twig/CVE-2022-39261.yml 35.0.0
2024-11-21T00:31:49.506525+00:00 GitLab Importer Affected by VCID-2ytv-vgsf-aaar https://gitlab.com/gitlab-org/advisories-community/-/blob/main/packagist/twig/twig/CVE-2022-23614.yml 35.0.0
2024-11-19T01:03:28.977693+00:00 GitLab Importer Affected by VCID-6ygy-mamy-jkec https://gitlab.com/gitlab-org/advisories-community/-/blob/main/packagist/twig/twig/CVE-2024-45411.yml 34.3.2
2024-11-19T00:23:34.773653+00:00 GitLab Importer Affected by VCID-bcv4-ry3v-aaab https://gitlab.com/gitlab-org/advisories-community/-/blob/main/packagist/twig/twig/CVE-2022-39261.yml 34.3.2
2024-11-19T00:17:08.582378+00:00 GitLab Importer Affected by VCID-2ytv-vgsf-aaar https://gitlab.com/gitlab-org/advisories-community/-/blob/main/packagist/twig/twig/CVE-2022-23614.yml 34.3.2
2024-10-17T05:19:48.822573+00:00 GitLab Importer Affected by VCID-6ygy-mamy-jkec https://gitlab.com/gitlab-org/advisories-community/-/blob/main/packagist/twig/twig/CVE-2024-45411.yml 34.0.2
2024-10-08T01:06:19.347041+00:00 GitLab Importer Affected by VCID-bcv4-ry3v-aaab https://gitlab.com/gitlab-org/advisories-community/-/blob/main/packagist/twig/twig/CVE-2022-39261.yml 34.0.2
2024-10-08T00:53:48.346544+00:00 GitLab Importer Affected by VCID-2ytv-vgsf-aaar https://gitlab.com/gitlab-org/advisories-community/-/blob/main/packagist/twig/twig/CVE-2022-23614.yml 34.0.2
2024-10-07T22:21:40.087203+00:00 GHSA Importer Affected by VCID-6ygy-mamy-jkec https://github.com/advisories/GHSA-6j75-5wfj-gh66 34.0.2
2024-10-07T20:52:12.427422+00:00 GHSA Importer Affected by VCID-bcv4-ry3v-aaab https://github.com/advisories/GHSA-52m2-vc4m-jj33 34.0.2
2024-10-07T20:10:55.130318+00:00 GHSA Importer Affected by VCID-2ytv-vgsf-aaar https://github.com/advisories/GHSA-5mv2-rx3q-4w2v 34.0.2
2024-09-23T01:07:13.680099+00:00 GitLab Importer Affected by VCID-bcv4-ry3v-aaab https://gitlab.com/gitlab-org/advisories-community/-/blob/main/packagist/twig/twig/CVE-2022-39261.yml 34.0.1
2024-09-23T01:02:10.417238+00:00 GitLab Importer Affected by VCID-2ytv-vgsf-aaar https://gitlab.com/gitlab-org/advisories-community/-/blob/main/packagist/twig/twig/CVE-2022-23614.yml 34.0.1
2024-09-22T22:47:48.653219+00:00 GHSA Importer Affected by VCID-6ygy-mamy-jkec https://github.com/advisories/GHSA-6j75-5wfj-gh66 34.0.1
2024-09-22T21:29:30.078942+00:00 GHSA Importer Affected by VCID-bcv4-ry3v-aaab https://github.com/advisories/GHSA-52m2-vc4m-jj33 34.0.1
2024-09-22T20:54:36.572390+00:00 GHSA Importer Affected by VCID-2ytv-vgsf-aaar https://github.com/advisories/GHSA-5mv2-rx3q-4w2v 34.0.1
2024-04-24T03:31:17.859039+00:00 GitLab Importer Affected by VCID-bcv4-ry3v-aaab None 34.0.0rc4
2024-04-24T03:31:16.763566+00:00 GitLab Importer Affected by VCID-bcv4-ry3v-aaab https://gitlab.com/gitlab-org/advisories-community/-/blob/main/packagist/twig/twig/CVE-2022-39261.yml 34.0.0rc4
2024-04-24T03:20:33.707110+00:00 GitLab Importer Affected by VCID-2ytv-vgsf-aaar None 34.0.0rc4
2024-04-24T03:20:33.213750+00:00 GitLab Importer Affected by VCID-2ytv-vgsf-aaar https://gitlab.com/gitlab-org/advisories-community/-/blob/main/packagist/twig/twig/CVE-2022-23614.yml 34.0.0rc4
2024-04-23T23:34:20.610104+00:00 GHSA Importer Affected by VCID-bcv4-ry3v-aaab https://github.com/advisories/GHSA-52m2-vc4m-jj33 34.0.0rc4
2024-04-23T23:34:19.566771+00:00 GHSA Importer Affected by VCID-bcv4-ry3v-aaab None 34.0.0rc4
2024-04-23T22:33:38.803714+00:00 GHSA Importer Affected by VCID-2ytv-vgsf-aaar https://github.com/advisories/GHSA-5mv2-rx3q-4w2v 34.0.0rc4
2024-04-23T22:33:37.843377+00:00 GHSA Importer Affected by VCID-2ytv-vgsf-aaar None 34.0.0rc4
2024-01-10T06:12:16.103621+00:00 GitLab Importer Affected by VCID-bcv4-ry3v-aaab None 34.0.0rc2
2024-01-10T06:12:14.907950+00:00 GitLab Importer Affected by VCID-bcv4-ry3v-aaab https://gitlab.com/gitlab-org/advisories-community/-/blob/main/packagist/twig/twig/CVE-2022-39261.yml 34.0.0rc2
2024-01-10T06:00:25.735280+00:00 GitLab Importer Affected by VCID-2ytv-vgsf-aaar None 34.0.0rc2
2024-01-10T06:00:25.230642+00:00 GitLab Importer Affected by VCID-2ytv-vgsf-aaar https://gitlab.com/gitlab-org/advisories-community/-/blob/main/packagist/twig/twig/CVE-2022-23614.yml 34.0.0rc2
2024-01-10T01:34:29.905429+00:00 GHSA Importer Affected by VCID-bcv4-ry3v-aaab https://github.com/advisories/GHSA-52m2-vc4m-jj33 34.0.0rc2
2024-01-10T01:34:28.655289+00:00 GHSA Importer Affected by VCID-bcv4-ry3v-aaab None 34.0.0rc2
2024-01-10T00:30:45.269888+00:00 GHSA Importer Affected by VCID-2ytv-vgsf-aaar https://github.com/advisories/GHSA-5mv2-rx3q-4w2v 34.0.0rc2
2024-01-10T00:30:44.625115+00:00 GHSA Importer Affected by VCID-2ytv-vgsf-aaar None 34.0.0rc2
2024-01-03T22:59:18.147715+00:00 GitLab Importer Affected by VCID-bcv4-ry3v-aaab None 34.0.0rc1
2024-01-03T22:59:17.061202+00:00 GitLab Importer Affected by VCID-bcv4-ry3v-aaab https://gitlab.com/gitlab-org/advisories-community/-/blob/main/packagist/twig/twig/CVE-2022-39261.yml 34.0.0rc1
2024-01-03T22:48:08.212363+00:00 GitLab Importer Affected by VCID-2ytv-vgsf-aaar None 34.0.0rc1
2024-01-03T22:48:07.735168+00:00 GitLab Importer Affected by VCID-2ytv-vgsf-aaar https://gitlab.com/gitlab-org/advisories-community/-/blob/main/packagist/twig/twig/CVE-2022-23614.yml 34.0.0rc1