Skip to content
OpenAdvisories

Weakness (CWE)

CWE-776: Improper Restriction of Recursive Entity References in DTDs

Base Draft

The product uses XML documents and allows their structure to be defined with a Document Type Definition (DTD), but it does not properly control the number of recursive definitions of entities.

How to prevent it (2 mitigations)
  1. Operation

    If possible, prohibit the use of DTDs or use an XML parser that limits the expansion of recursive DTD entities.

  2. Implementation

    Before parsing XML files with associated DTDs, scan for recursive entity declarations and do not continue parsing potentially explosive content.

Source: MITRE CWE-776

50 results · Clear filters · Feed

  • High 7.5

    XML2Dict XML Entity Expansion Vulnerability

    XXE vulnerability in 'XML2Dict' version 0.2.2 allows an attacker to cause a denial of service.

  • High 8.1

    Opencast vulnerable to billion laughs attack (XML bomb)

    Opencast is a free and open source solution for automated video capture and distribution. Versions of Opencast prior to 9.6 are vulnerable to the billion laughs attack, which allows an attacker to easily execute a (seemingly permanent) denial of service attac…

  • High 7.1

    XXE vulnerability in Jenkins Code Coverage API Plugin

    Jenkins Code Coverage API Plugin 1.1.4 and earlier does not configure its XML parser to prevent XML external entity (XXE) attacks.

  • High 7.5

    Nokogiri is vulnerable to XML External Entity (XXE) attack

    Nokogiri before 1.5.4 is vulnerable to XXE attacks

  • High 7.5
    CVE-2017-18640 EPSS 27%

    SnakeYAML Entity Expansion during load operation

    The Alias feature in SnakeYAML before 1.26 allows entity expansion during a load operation, a related issue to CVE-2003-1564.

  • High 7.5
    CVE-2019-11253 Scanner template EPSS 26%

    Kubernetes API Server JSON/YAML parsing vulnerable to resource exhaustion attack

    Improper input validation in the Kubernetes API server in versions v1.0-1.12 and versions prior to v1.13.12, v1.14.8, v1.15.5, and v1.16.2 allows authorized users to send malicious YAML or JSON payloads, causing the API server to consume excessive CPU or memo…

  • High 7.5
    CVE-2019-12401 Public exploit

    Apache Solr vulnerable to XML Bomb

    Solr versions 1.3.0 to 1.4.1, 3.1.0 to 3.6.2 and 4.0.0 to 4.10.4 are vulnerable to an XML resource consumption attack (a.k.a. Lol Bomb) via it’s update handler.?By leveraging XML DOCTYPE and ENTITY type elements, the attacker can create a pattern that will ex…

  • High 7.5

    Inline DTD allows XML bomb attack

    The SweetXml (aka sweet_xml) package through 0.6.6 for Erlang and Elixir allows attackers to cause a denial of service (resource consumption) via an XML entity expansion attack with an inline DTD.

  • High 7.5

    XML Entity Expansion in Pippo

    XML Entity Expansion (Billion Laughs Attack) on Pippo 1.12.0 results in Denial of Service.Entities are created recursively and large amounts of heap memory is taken. Eventually, the JVM process will run out of memory. Otherwise, if the OS does not bound the m…

  • High 7.5
    CVE-2019-5427 Public exploit

    Billion laughs attack in c3p0

    c3p0 version < 0.9.5.4 may be exploited by a billion laughs attack when loading XML configuration due to missing protections against recursive entity expansion when loading configuration.