Search for packages
Package details: pkg:composer/twig/twig@2.12.1
purl pkg:composer/twig/twig@2.12.1
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.457530+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.970067+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.850107+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.515750+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.886342+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.021277+00:00 GitLab Importer Affected by VCID-bcv4-ry3v-aaab None 36.1.3
2025-06-20T15:27:46.871060+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.390389+00:00 GitLab Importer Affected by VCID-2ytv-vgsf-aaar None 36.1.3
2025-06-03T23:47:06.646987+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.124335+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.552283+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.816049+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.107361+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.394564+00:00 GitLab Importer Affected by VCID-bcv4-ry3v-aaab None 36.1.0
2025-06-03T22:09:03.560235+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.266157+00:00 GitLab Importer Affected by VCID-2ytv-vgsf-aaar None 36.1.0
2025-06-02T23:45:38.411056+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.921722+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.903724+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.942396+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.863642+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.950362+00:00 GitLab Importer Affected by VCID-bcv4-ry3v-aaab None 36.1.2
2025-06-02T21:56:16.582172+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.030642+00:00 GitLab Importer Affected by VCID-2ytv-vgsf-aaar None 36.1.2
2025-04-03T22:30:58.263830+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:57.012931+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.920461+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.527093+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.473527+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.460067+00:00 GitLab Importer Affected by VCID-bcv4-ry3v-aaab None 36.0.0
2025-04-03T19:12:47.268569+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.934132+00:00 GitLab Importer Affected by VCID-2ytv-vgsf-aaar None 36.0.0
2025-02-18T04:14:11.593581+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.366269+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.203171+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.361984+00:00 GitLab Importer Affected by VCID-bcv4-ry3v-aaab None 35.1.0
2025-02-18T02:56:48.953254+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.303535+00:00 GitLab Importer Affected by VCID-2ytv-vgsf-aaar None 35.1.0
2025-02-18T02:40:33.424296+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.126998+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.585271+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.195657+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.582044+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.174597+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.536434+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:29.006280+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.803073+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.611101+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.856642+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.376491+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.375992+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.116808+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.456616+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.159826+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.708777+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.445683+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.687082+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.108765+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.601799+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.887021+00:00 GitLab Importer Affected by VCID-bcv4-ry3v-aaab None 34.0.0rc4
2024-04-24T03:31:16.791784+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.733957+00:00 GitLab Importer Affected by VCID-2ytv-vgsf-aaar None 34.0.0rc4
2024-04-24T03:20:33.242212+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.639182+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.594682+00:00 GHSA Importer Affected by VCID-bcv4-ry3v-aaab None 34.0.0rc4
2024-04-23T22:33:38.831450+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.871324+00:00 GHSA Importer Affected by VCID-2ytv-vgsf-aaar None 34.0.0rc4
2024-01-10T06:12:16.133242+00:00 GitLab Importer Affected by VCID-bcv4-ry3v-aaab None 34.0.0rc2
2024-01-10T06:12:14.945875+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.762836+00:00 GitLab Importer Affected by VCID-2ytv-vgsf-aaar None 34.0.0rc2
2024-01-10T06:00:25.256142+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.938191+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.686158+00:00 GHSA Importer Affected by VCID-bcv4-ry3v-aaab None 34.0.0rc2
2024-01-10T00:30:45.297740+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.654608+00:00 GHSA Importer Affected by VCID-2ytv-vgsf-aaar None 34.0.0rc2
2024-01-03T22:59:18.175274+00:00 GitLab Importer Affected by VCID-bcv4-ry3v-aaab None 34.0.0rc1
2024-01-03T22:59:17.089261+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.239989+00:00 GitLab Importer Affected by VCID-2ytv-vgsf-aaar None 34.0.0rc1
2024-01-03T22:48:07.762980+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