Search for packages
Package details: pkg:composer/twig/twig@2.11.3
purl pkg:composer/twig/twig@2.11.3
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.454362+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.966985+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.846860+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.512676+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.883257+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.017837+00:00 GitLab Importer Affected by VCID-bcv4-ry3v-aaab None 36.1.3
2025-06-20T15:27:46.867268+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.386651+00:00 GitLab Importer Affected by VCID-2ytv-vgsf-aaar None 36.1.3
2025-06-03T23:47:06.643975+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.120702+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.549220+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.813065+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.104350+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.391510+00:00 GitLab Importer Affected by VCID-bcv4-ry3v-aaab None 36.1.0
2025-06-03T22:09:03.556644+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.262576+00:00 GitLab Importer Affected by VCID-2ytv-vgsf-aaar None 36.1.0
2025-06-02T23:45:38.407296+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.918690+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.899827+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.938675+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.859602+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.946447+00:00 GitLab Importer Affected by VCID-bcv4-ry3v-aaab None 36.1.2
2025-06-02T21:56:16.578586+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.026613+00:00 GitLab Importer Affected by VCID-2ytv-vgsf-aaar None 36.1.2
2025-04-03T22:30:58.253898+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.002239+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.910334+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.516963+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.463668+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.450161+00:00 GitLab Importer Affected by VCID-bcv4-ry3v-aaab None 36.0.0
2025-04-03T19:12:47.257247+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.924487+00:00 GitLab Importer Affected by VCID-2ytv-vgsf-aaar None 36.0.0
2025-02-18T04:14:11.583844+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.356614+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.193515+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.352267+00:00 GitLab Importer Affected by VCID-bcv4-ry3v-aaab None 35.1.0
2025-02-18T02:56:48.943456+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.293889+00:00 GitLab Importer Affected by VCID-2ytv-vgsf-aaar None 35.1.0
2025-02-18T02:40:33.414570+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.115878+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.574658+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.185209+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.571270+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.164594+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.526513+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.996806+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.793279+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.601505+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.846613+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.366949+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.366039+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.107205+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.446948+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.150116+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.699155+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.436245+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.676271+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.098944+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.591869+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.877872+00:00 GitLab Importer Affected by VCID-bcv4-ry3v-aaab None 34.0.0rc4
2024-04-24T03:31:16.782465+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.724641+00:00 GitLab Importer Affected by VCID-2ytv-vgsf-aaar None 34.0.0rc4
2024-04-24T03:20:33.232727+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.629370+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.585307+00:00 GHSA Importer Affected by VCID-bcv4-ry3v-aaab None 34.0.0rc4
2024-04-23T22:33:38.822217+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.862186+00:00 GHSA Importer Affected by VCID-2ytv-vgsf-aaar None 34.0.0rc4
2024-01-10T06:12:16.123347+00:00 GitLab Importer Affected by VCID-bcv4-ry3v-aaab None 34.0.0rc2
2024-01-10T06:12:14.934384+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.753636+00:00 GitLab Importer Affected by VCID-2ytv-vgsf-aaar None 34.0.0rc2
2024-01-10T06:00:25.247629+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.927284+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.674665+00:00 GHSA Importer Affected by VCID-bcv4-ry3v-aaab None 34.0.0rc2
2024-01-10T00:30:45.288494+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.645462+00:00 GHSA Importer Affected by VCID-2ytv-vgsf-aaar None 34.0.0rc2
2024-01-03T22:59:18.166114+00:00 GitLab Importer Affected by VCID-bcv4-ry3v-aaab None 34.0.0rc1
2024-01-03T22:59:17.079889+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.230786+00:00 GitLab Importer Affected by VCID-2ytv-vgsf-aaar None 34.0.0rc1
2024-01-03T22:48:07.753768+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