Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. symfony/translation
  4. ›
  5. GHSA-f75p-x5vm-83qp

GHSA-f75p-x5vm-83qp: symfony/translation XML Entity Expansion vulnerability

May 30, 2024

Symfony 2.0.11 carried a [similar] XXE security fix, however, on review of ZF2 I also noted a vulnerability to XML Entity Expansion (XEE) attacks whereby all extensions making use of libxml2 have no defense against XEE Quadratic Blowup Attacks. The vulnerability is a function of there being no current method of disabling custom entities in PHP (i.e. defined internal to the XML document without using external entities). In a QBA, a long entity can be defined and then referred to multiple times in document elements, creating a memory sink with which Denial Of Service attacks against a host’s RAM can be mounted. The use of the LIBXML_NOENT or equivalent option in a dependent extension amplified the impact (it doesn’t actually mean “No Entities”). In addition, libxml2’s innate defense against the related Exponential or Billion Laugh’s XEE attacks is active only so long as the LIBXML_PARSEHUGE is NOT set (it disables libxml2’s hardcoded entity recursion limit). No instances of these two options were noted, but it’s worth referencing for the future.

References

  • github.com/FriendsOfPHP/security-advisories/blob/master/symfony/translation/2012-08-28.yaml
  • github.com/advisories/GHSA-f75p-x5vm-83qp
  • github.com/symfony/translation
  • github.com/symfony/translation/commit/178b3eba474a706f25473d38e23e74b048417c8d
  • symfony.com/blog/security-release-symfony-2-0-17-released

Code Behaviors & Features

Detect and mitigate GHSA-f75p-x5vm-83qp with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 2.0.0 before 2.0.17

Fixed versions

  • 2.0.17

Solution

Upgrade to version 2.0.17 or above.

Impact 7.5 HIGH

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

Learn more about CVSS

Weakness

  • CWE-776: Improper Restriction of Recursive Entity References in DTDs ('XML Entity Expansion')

Source file

packagist/symfony/translation/GHSA-f75p-x5vm-83qp.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:19 +0000.