Search for packages
Package details: pkg:composer/twig/twig@2.8.1
purl pkg:composer/twig/twig@2.8.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.443644+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.957598+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.836163+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.502919+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.874144+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.005883+00:00 GitLab Importer Affected by VCID-bcv4-ry3v-aaab None 36.1.3
2025-06-20T15:27:46.856047+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.375531+00:00 GitLab Importer Affected by VCID-2ytv-vgsf-aaar None 36.1.3
2025-06-03T23:47:06.634873+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.109889+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.540098+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.804122+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.095357+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.382434+00:00 GitLab Importer Affected by VCID-bcv4-ry3v-aaab None 36.1.0
2025-06-03T22:09:03.545892+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.251835+00:00 GitLab Importer Affected by VCID-2ytv-vgsf-aaar None 36.1.0
2025-06-02T23:45:38.397458+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.909552+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.888672+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.927422+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.847971+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.936491+00:00 GitLab Importer Affected by VCID-bcv4-ry3v-aaab None 36.1.2
2025-06-02T21:56:16.567255+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.015943+00:00 GitLab Importer Affected by VCID-2ytv-vgsf-aaar None 36.1.2
2025-04-03T22:30:58.223683+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.970236+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.880446+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.487099+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.433740+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.420751+00:00 GitLab Importer Affected by VCID-bcv4-ry3v-aaab None 36.0.0
2025-04-03T19:12:47.223568+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.895396+00:00 GitLab Importer Affected by VCID-2ytv-vgsf-aaar None 36.0.0
2025-02-18T04:14:11.554913+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.327453+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.164303+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.323255+00:00 GitLab Importer Affected by VCID-bcv4-ry3v-aaab None 35.1.0
2025-02-18T02:56:48.914165+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.264752+00:00 GitLab Importer Affected by VCID-2ytv-vgsf-aaar None 35.1.0
2025-02-18T02:40:33.385425+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.082489+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.542702+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.154096+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.540749+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.134663+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.496578+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.968242+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.764117+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.572386+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.812440+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.337307+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.336609+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.077509+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.417888+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.120818+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.670533+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.407645+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.642319+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.069068+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.562337+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.849913+00:00 GitLab Importer Affected by VCID-bcv4-ry3v-aaab None 34.0.0rc4
2024-04-24T03:31:16.754105+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.697687+00:00 GitLab Importer Affected by VCID-2ytv-vgsf-aaar None 34.0.0rc4
2024-04-24T03:20:33.204272+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.600767+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.557610+00:00 GHSA Importer Affected by VCID-bcv4-ry3v-aaab None 34.0.0rc4
2024-04-23T22:33:38.794304+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.834232+00:00 GHSA Importer Affected by VCID-2ytv-vgsf-aaar None 34.0.0rc4
2024-01-10T06:12:16.094065+00:00 GitLab Importer Affected by VCID-bcv4-ry3v-aaab None 34.0.0rc2
2024-01-10T06:12:14.894085+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.726043+00:00 GitLab Importer Affected by VCID-2ytv-vgsf-aaar None 34.0.0rc2
2024-01-10T06:00:25.222180+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.894152+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.645241+00:00 GHSA Importer Affected by VCID-bcv4-ry3v-aaab None 34.0.0rc2
2024-01-10T00:30:45.260567+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.615362+00:00 GHSA Importer Affected by VCID-2ytv-vgsf-aaar None 34.0.0rc2
2024-01-03T22:59:18.138468+00:00 GitLab Importer Affected by VCID-bcv4-ry3v-aaab None 34.0.0rc1
2024-01-03T22:59:17.051883+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.203046+00:00 GitLab Importer Affected by VCID-2ytv-vgsf-aaar None 34.0.0rc1
2024-01-03T22:48:07.725948+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