{"schemaVersion":3,"id":"CVE-2024-45411","aliases":["UBUNTU-CVE-2024-45411","USN-7549-1","DEBIAN-CVE-2024-45411","DLA-3888-1","DSA-5771-1"],"status":"published","duplicateOf":null,"title":null,"description":"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.","dates":{"published":"2024-09-09T18:20:28.363Z","modified":"2024-09-16T12:04:18.107Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":8.6,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":8.6,"severity":"high","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":8.6,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N","exploitability":10,"impact":6.7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":8.6,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N","exploitability":10,"impact":6.7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":8.6,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"wordfence","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00849,"percentile":0.57684,"severity":"low","asOf":"2026-10-21T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-21T00:00:00.000Z","baselineScore":0.00849},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00849,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00849,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00849,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00849,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00849,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00849,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00849,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00849,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00849,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00849,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00849,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00849,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00849,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00849,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00849,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00849,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00849,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00849,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00849,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00849,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00849,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00849,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00849,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00849,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00849,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00849,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00849,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00849,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00849,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00849,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00849,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00849,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00849,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00849,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00849,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00849,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00849,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00849,"percentile":0.57684}],"last30":[{"date":"2026-09-21T00:00:00.000Z","score":0.00849,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00849,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00849,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00849,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00849,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00849,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00849,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00849,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00849,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00849,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00849,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00849,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00849,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00849,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00849,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00849,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00849,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00849,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00849,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00849,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00849,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00849,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00849,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00849,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00849,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00849,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00849,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00849,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00849,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00849,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00849,"percentile":0.57684}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-693","name":"Protection Mechanism Failure","description":"The product does not use or incorrectly uses a protection mechanism that provides sufficient defense against directed attacks against the product.","type":"weakness","status":"Draft","abstraction":"Pillar","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/693.html"},{"id":"CWE-1395","name":"Dependency on Vulnerable Third-Party Component","description":"The product has a dependency on a third-party component that contains one or more known vulnerabilities.","type":"weakness","status":"Incomplete","abstraction":"Class","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/1395.html"}],"affected":[{"vendor":"debian","product":"php-twig","name":"php-twig","label":"php-twig","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/php-twig","purlType":"deb","versions":[{"text":"< 3.8.0-4","noFixRecorded":false,"fixedIn":null},{"text":"< 3.5.1-1+deb12u1","noFixRecorded":false,"fixedIn":null},{"text":"< 2.14.3-1+deb11u3","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.8.0-4 | < 3.5.1-1+deb12u1 | < 2.14.3-1+deb11u3","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"php-twig","name":"php-twig","label":"php-twig","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/php-twig","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null},{"text":"< 3.3.8-2ubuntu4+esm2","noFixRecorded":false,"fixedIn":null},{"text":"< 3.8.0-2ubuntu0.1~esm1","noFixRecorded":false,"fixedIn":null},{"text":"< 3.8.0-2ubuntu1","noFixRecorded":false,"fixedIn":null}],"versionsText":"All versions (No fix recorded) | < 3.3.8-2ubuntu4+esm2 | < 3.8.0-2ubuntu0.1~esm1 | < 3.8.0-2ubuntu1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"twig","name":"twig","label":"twig","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/twig","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":{"isEol":null,"eolDate":null,"matchMethod":"name_exact","cycle":null,"product":{"name":"twig","label":"Twig","category":"framework"}},"hubHref":null},{"vendor":"symfony","product":"twig","name":"twig","label":"twig","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 1.0.0, < 1.44.8","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.0.0, < 2.16.1","noFixRecorded":false,"fixedIn":null},{"text":"≥ 3.0.0, < 3.14.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 1.0.0, < 1.44.8 | ≥ 2.0.0, < 2.16.1 | ≥ 3.0.0, < 3.14.0","eol":{"isEol":null,"eolDate":null,"matchMethod":"name_exact","cycle":null,"product":{"name":"twig","label":"Twig","category":"framework"}},"hubHref":"/vendor/symfony/twig"},{"vendor":"twigphp","product":"twig","name":"Twig","label":"twig","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"> 1.0.0, < 1.44.8","noFixRecorded":false,"fixedIn":null},{"text":"> 2.0.0, < 2.16.1","noFixRecorded":false,"fixedIn":null},{"text":"> 3.0.0, < 3.14.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"> 1.0.0, < 1.44.8 | > 2.0.0, < 2.16.1 | > 3.0.0, < 3.14.0","eol":{"isEol":null,"eolDate":null,"matchMethod":"name_exact","cycle":null,"product":{"name":"twig","label":"Twig","category":"framework"}},"hubHref":"/vendor/twigphp/twig"},{"vendor":"wordpress","product":"timber-library","name":"Timber","label":"timber-library","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≤ 1.23.1 (fixed in 1.23.3)","noFixRecorded":false,"fixedIn":"1.23.3"}],"versionsText":"≤ 1.23.1 (fixed in 1.23.3)","eol":null,"hubHref":null}],"affectedCount":6,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/twigphp/Twig/security/advisories/GHSA-6j75-5wfj-gh66","label":"github.com/twigphp/Twig/security/advisories/GHSA-6j75-5wfj-gh66","hostname":"github.com","tags":["X Refsource CONFIRM","REPORT","Vendor Advisory"]},{"url":"https://github.com/twigphp/Twig/commit/11f68e2aeb526bfaf638e30d4420d8a710f3f7c6","label":"github.com/twigphp/Twig/commit/11f68e2aeb526bfaf638e30d4420d8a710f3f7c6","hostname":"github.com","tags":["X Refsource MISC","REPORT","Patch"]},{"url":"https://github.com/twigphp/Twig/commit/2102dd135986db79192d26fb5f5817a566e0a7de","label":"github.com/twigphp/Twig/commit/2102dd135986db79192d26fb5f5817a566e0a7de","hostname":"github.com","tags":["X Refsource MISC","REPORT","Patch"]},{"url":"https://github.com/twigphp/Twig/commit/7afa198603de49d147e90d18062e7b9addcf5233","label":"github.com/twigphp/Twig/commit/7afa198603de49d147e90d18062e7b9addcf5233","hostname":"github.com","tags":["X Refsource MISC","REPORT","Patch"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/09/msg00031.html","label":"lists.debian.org/debian-lts-announce/2024/09/msg00031.html","hostname":"lists.debian.org","tags":[]},{"url":"https://ubuntu.com/security/CVE-2024-45411","label":"ubuntu.com/security/CVE-2024-45411","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2024-45411","label":"www.cve.org/CVERecord?id=CVE-2024-45411","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-7456-1","label":"ubuntu.com/security/notices/USN-7456-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://ubuntu.com/security/notices/USN-7549-1","label":"ubuntu.com/security/notices/USN-7549-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2024-45411","label":"security-tracker.debian.org/tracker/CVE-2024-45411","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://www.wordfence.com/threat-intel/vulnerabilities/id/0add0b7c-c47a-4ff0-b750-9b1433970d85","label":"www.wordfence.com/threat-intel/vulnerabilities/id/0add0b7c-c47a-4ff0-b750-9b1433970d85","hostname":"www.wordfence.com","tags":["Vendor Advisory"]}],"lineage":{"upstream":[],"downstream":["USN-7456-1"],"duplicates":[],"related":["USN-7456-1"]},"timeline":[{"kind":"published","date":"2024-09-09T18:20:28.363Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-09-16T12:04:18.107Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":35,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-21T17:47:52.375Z","stale":false,"partial":false}}