---
title: "CVE-2024-51755\n    | Ubuntu"
description: Ubuntu is an open source software operating system that runs from the
  desktop, to the cloud, to all your internet connected things.
url: https://ubuntu.com/security/CVE-2024-51755?format=md
keywords: index, follow
---

# CVE-2024-51755

Publication date 6 November 2024

Last updated 11 July 2025

---

Ubuntu priority

**Medium**

[Why this priority?](https://ubuntu.com/security/cves/about#priority )

## Cvss 3 Severity Score

**2.2 · Low**

[Score breakdown](https://ubuntu.com/security/CVE-2024-51755?format=md#impact-score)

Toggle side navigation

## Description

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.

## Status

Show unmaintained releases

| Package | Ubuntu Release | Status |
| --- | --- | --- |
| twig | 26.04 LTS resolute | Not in release |
| 25.10 questing | Not in release |
| 25.04 plucky | Not in release |
| 24.10 oracular | Not in release |
| 24.04 LTS noble | Not in release |
| 22.04 LTS jammy | Not in release |
| 20.04 LTS focal | Not in release |
| 18.04 LTS bionic | Needs evaluation |
| 16.04 LTS xenial | Needs evaluation |
| php-twig | 26.04 LTS resolute | Not affected |
| 25.10 questing | Not affected |
| 25.04 plucky | Not affected |
| 24.10 oracular | Ignored end of life, was needed |
| 24.04 LTS noble | Vulnerable |
| 22.04 LTS jammy | Vulnerable |
| 20.04 LTS focal | Vulnerable |

---

* [How can I get the fixes?](https://ubuntu.com/security/cves/about#security)
* [What do statuses mean?](https://ubuntu.com/security/cves/about#statuses)

## Severity score breakdown

CVSS version:
CVSS v3.0

**Base score**

2.2 · Low

* Base metrics

  | Parameter | Value |
  | --- | --- |
  | Attack vector | Network |
  | Attack complexity | High |
  | Privileges required | High |
  | User interaction | None |
  | Scope | Unchanged |
  | Confidentiality impact | Low |
  | Integrity impact | None |
  | Availability impact | None |
* Scores

  | Parameter | Value |
  | --- | --- |
  | Base score | 2.2 · Low |
  | Exploitability score | - |
  | Impact score | - |

**Vector:** CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:L/I:N/A:N

## References

* [MITRE](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-51755)
* [NVD](https://nvd.nist.gov/vuln/detail/CVE-2024-51755)
* [Launchpad](https://launchpad.net/bugs/cve/CVE-2024-51755)
* [Debian](https://security-tracker.debian.org/tracker/CVE-2024-51755)

### Other references

* <https://www.cve.org/CVERecord?id=CVE-2024-51755>
* <https://github.com/twigphp/Twig/security/advisories/GHSA-jjxq-ff2g-95vh>
* <https://github.com/twigphp/Twig/commit/831c148e786178e5f2fde9db67266be3bf241c21>
