---
title: "CVE-2026-47732\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-2026-47732?format=md
keywords: index, follow
---

# CVE-2026-47732

Publication date 14 July 2026

Last updated 17 July 2026

---

Ubuntu priority

**Medium**

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

## Cvss 3 Severity Score

**6.5 · Medium**

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

Toggle side navigation

## Description

Twig is a template language for PHP. Prior to 3.26.0, several Twig language
constructs trigger PHP string coercion on a Stringable operand without
consulting SecurityPolicy::checkMethodAllowed(), allowing a sandboxed
template author to invoke \_\_toString() on objects reachable in the render
context through conditional expressions, comparison operators, tests,
template-loading tags, dynamic attribute names, spread arguments, the do
tag, and the .. range operator. This issue is fixed in version 3.26.0.

## Status

Show unmaintained releases

| Package | Ubuntu Release | Status |
| --- | --- | --- |
| php-twig | 26.04 LTS resolute | Needs evaluation |
| 25.10 questing | Ignored end of life, was needs-triage |
| 24.04 LTS noble | Needs evaluation |
| 22.04 LTS jammy | Needs evaluation |
| 20.04 LTS focal | Needs evaluation |

---

* [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 v4.0

[CVSS v4.0](https://ubuntu.com/security/CVE-2026-47732?format=md)
[CVSS v3.0](https://ubuntu.com/security/CVE-2026-47732?format=md)

**Base score**

7.1 · High

* Base metrics

  | Parameter | Value |
  | --- | --- |
  | Attack vector | Network |
  | Attack complexity | Low |
  | Attack requirements | None |
  | Privileges required | Low |
  | User interaction | None |
  | Vulnerable system - Confidentiality impact | High |
  | Vulnerable system - Integrity impact | Low |
  | Vulnerable system - Availability impact | None |
  | Subsequent system - Confidentiality impact | None |
  | Subsequent system - Integrity impact | None |
  | Subsequent system - Availability impact | None |
* Scores

  | Parameter | Value |
  | --- | --- |
  | Base score | 7.1 · High |
  | Base + Threat score | - |
  | Base + Environmental score | - |
  | Base + Threat + Environmental score | - |

**Vector:** CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N

## References

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

### Other references

* <https://www.cve.org/CVERecord?id=CVE-2026-47732>
* <https://symfony.com/blog/cve-2026-47732-sandbox-multiple-tostring-policy-bypasses-via-unguarded-string-coercion-points>
