Lookup for vulnerable packages by Package URL.

Purlpkg:deb/debian/php-twig@2.14.3-1%2Bdeb11u4?distro=trixie
Typedeb
Namespacedebian
Namephp-twig
Version2.14.3-1+deb11u4
Qualifiers
distro trixie
Subpath
Is_vulnerablefalse
Next_non_vulnerable_version3.3.8-1
Latest_non_vulnerable_version3.24.0-1
Affected_by_vulnerabilities
Fixing_vulnerabilities
0
url VCID-1au7-86r7-8qdn
vulnerability_id VCID-1au7-86r7-8qdn
summary
Twig has unguarded calls to `__toString()` when nesting an object into an array
### Description

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).

### Resolution

The sandbox mode now checks the `__toString()` method call on all objects.

The patch for this issue is available [here](https://github.com/twigphp/Twig/commit/cafc608ece310e62a35a76f17e25c04ab9ed05cc) for the 3.11.x branch, and [here](https://github.com/twigphp/Twig/commit/d4a302681bca9f7c6ce2835470d53609cdf3e23e) for the 3.x branch.

### Credits

We would like to thank Jamie Schouten for reporting the issue and Fabien Potencier for providing the fix.
references
0
reference_url https://api.first.org/data/v1/epss?cve=CVE-2024-51754
reference_id
reference_type
scores
0
value 0.00135
scoring_system epss
scoring_elements 0.33244
published_at 2026-04-09T12:55:00Z
1
value 0.00135
scoring_system epss
scoring_elements 0.33165
published_at 2026-04-21T12:55:00Z
2
value 0.00135
scoring_system epss
scoring_elements 0.33201
published_at 2026-04-18T12:55:00Z
3
value 0.00135
scoring_system epss
scoring_elements 0.33224
published_at 2026-04-16T12:55:00Z
4
value 0.00135
scoring_system epss
scoring_elements 0.33184
published_at 2026-04-13T12:55:00Z
5
value 0.00135
scoring_system epss
scoring_elements 0.33207
published_at 2026-04-12T12:55:00Z
6
value 0.00135
scoring_system epss
scoring_elements 0.33303
published_at 2026-04-02T12:55:00Z
7
value 0.00135
scoring_system epss
scoring_elements 0.33335
published_at 2026-04-04T12:55:00Z
8
value 0.00135
scoring_system epss
scoring_elements 0.33167
published_at 2026-04-07T12:55:00Z
9
value 0.00135
scoring_system epss
scoring_elements 0.33211
published_at 2026-04-08T12:55:00Z
10
value 0.00135
scoring_system epss
scoring_elements 0.33248
published_at 2026-04-11T12:55:00Z
url https://api.first.org/data/v1/epss?cve=CVE-2024-51754
1
reference_url https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-51754
reference_id
reference_type
scores
url https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-51754
2
reference_url https://github.com/FriendsOfPHP/security-advisories/blob/master/twig/twig/CVE-2024-51754.yaml
reference_id
reference_type
scores
0
value 2.2
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:L/I:N/A:N
1
value 2.1
scoring_system cvssv4
scoring_elements CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
2
value LOW
scoring_system generic_textual
scoring_elements
url https://github.com/FriendsOfPHP/security-advisories/blob/master/twig/twig/CVE-2024-51754.yaml
3
reference_url https://github.com/twigphp/Twig
reference_id
reference_type
scores
0
value 2.2
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:L/I:N/A:N
1
value 2.1
scoring_system cvssv4
scoring_elements CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
2
value LOW
scoring_system generic_textual
scoring_elements
url https://github.com/twigphp/Twig
4
reference_url https://github.com/twigphp/Twig/commit/2bb8c2460a2c519c498df9b643d5277117155a73
reference_id
reference_type
scores
0
value 2.2
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:L/I:N/A:N
1
value 2.1
scoring_system cvssv4
scoring_elements CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
2
value LOW
scoring_system generic_textual
scoring_elements
3
value Track
scoring_system ssvc
scoring_elements SSVCv2/E:N/A:N/T:P/P:M/B:A/M:M/D:T/2024-11-06T19:40:22Z/
url https://github.com/twigphp/Twig/commit/2bb8c2460a2c519c498df9b643d5277117155a73
5
reference_url https://github.com/twigphp/Twig/security/advisories/GHSA-6377-hfv9-hqf6
reference_id
reference_type
scores
0
value 2.2
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:L/I:N/A:N
1
value LOW
scoring_system cvssv3.1_qr
scoring_elements
2
value 2.1
scoring_system cvssv4
scoring_elements CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
3
value LOW
scoring_system generic_textual
scoring_elements
4
value Track
scoring_system ssvc
scoring_elements SSVCv2/E:N/A:N/T:P/P:M/B:A/M:M/D:T/2024-11-06T19:40:22Z/
url https://github.com/twigphp/Twig/security/advisories/GHSA-6377-hfv9-hqf6
6
reference_url https://lists.debian.org/debian-lts-announce/2025/05/msg00039.html
reference_id
reference_type
scores
0
value 2.2
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:L/I:N/A:N
1
value 2.1
scoring_system cvssv4
scoring_elements CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
2
value LOW
scoring_system generic_textual
scoring_elements
url https://lists.debian.org/debian-lts-announce/2025/05/msg00039.html
7
reference_url https://nvd.nist.gov/vuln/detail/CVE-2024-51754
reference_id
reference_type
scores
0
value 2.2
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:L/I:N/A:N
1
value 2.1
scoring_system cvssv4
scoring_elements CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
2
value LOW
scoring_system generic_textual
scoring_elements
url https://nvd.nist.gov/vuln/detail/CVE-2024-51754
8
reference_url https://symfony.com/blog/unguarded-calls-to-__tostring-when-nesting-an-object-into-an-array
reference_id
reference_type
scores
0
value 2.2
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:L/I:N/A:N
1
value 2.1
scoring_system cvssv4
scoring_elements CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
2
value LOW
scoring_system generic_textual
scoring_elements
url https://symfony.com/blog/unguarded-calls-to-__tostring-when-nesting-an-object-into-an-array
9
reference_url https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1086884
reference_id 1086884
reference_type
scores
url https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1086884
10
reference_url https://github.com/advisories/GHSA-6377-hfv9-hqf6
reference_id GHSA-6377-hfv9-hqf6
reference_type
scores
0
value LOW
scoring_system cvssv3.1_qr
scoring_elements
url https://github.com/advisories/GHSA-6377-hfv9-hqf6
11
reference_url https://usn.ubuntu.com/7456-1/
reference_id USN-7456-1
reference_type
scores
url https://usn.ubuntu.com/7456-1/
fixed_packages
0
url pkg:deb/debian/php-twig@2.14.3-1%2Bdeb11u2?distro=trixie
purl pkg:deb/debian/php-twig@2.14.3-1%2Bdeb11u2?distro=trixie
is_vulnerable true
affected_by_vulnerabilities
0
vulnerability VCID-2mrj-u2wu-wkhv
1
vulnerability VCID-cd24-q2ys-yfbe
resource_url http://public2.vulnerablecode.io/packages/pkg:deb/debian/php-twig@2.14.3-1%252Bdeb11u2%3Fdistro=trixie
1
url pkg:deb/debian/php-twig@2.14.3-1%2Bdeb11u4?distro=trixie
purl pkg:deb/debian/php-twig@2.14.3-1%2Bdeb11u4?distro=trixie
is_vulnerable false
affected_by_vulnerabilities
resource_url http://public2.vulnerablecode.io/packages/pkg:deb/debian/php-twig@2.14.3-1%252Bdeb11u4%3Fdistro=trixie
2
url pkg:deb/debian/php-twig@3.14.2-1?distro=trixie
purl pkg:deb/debian/php-twig@3.14.2-1?distro=trixie
is_vulnerable false
affected_by_vulnerabilities
resource_url http://public2.vulnerablecode.io/packages/pkg:deb/debian/php-twig@3.14.2-1%3Fdistro=trixie
3
url pkg:deb/debian/php-twig@3.20.0-2?distro=trixie
purl pkg:deb/debian/php-twig@3.20.0-2?distro=trixie
is_vulnerable false
affected_by_vulnerabilities
resource_url http://public2.vulnerablecode.io/packages/pkg:deb/debian/php-twig@3.20.0-2%3Fdistro=trixie
4
url pkg:deb/debian/php-twig@3.24.0-1?distro=trixie
purl pkg:deb/debian/php-twig@3.24.0-1?distro=trixie
is_vulnerable false
affected_by_vulnerabilities
resource_url http://public2.vulnerablecode.io/packages/pkg:deb/debian/php-twig@3.24.0-1%3Fdistro=trixie
aliases CVE-2024-51754, GHSA-6377-hfv9-hqf6
risk_score 1.4
exploitability 0.5
weighted_severity 2.7
resource_url http://public2.vulnerablecode.io/vulnerabilities/VCID-1au7-86r7-8qdn
Risk_scorenull
Resource_urlhttp://public2.vulnerablecode.io/packages/pkg:deb/debian/php-twig@2.14.3-1%252Bdeb11u4%3Fdistro=trixie