{
  "document": {
    "aggregate_severity": {
      "namespace": "https://access.redhat.com/security/updates/classification/",
      "text": "Moderate"
    },
    "category": "csaf_vex",
    "csaf_version": "2.0",
    "distribution": {
      "text": "Copyright © Red Hat, Inc. All rights reserved.",
      "tlp": {
        "label": "WHITE",
        "url": "https://www.first.org/tlp/"
      }
    },
    "lang": "en",
    "notes": [
      {
        "category": "legal_disclaimer",
        "text": "This content is licensed under the Creative Commons Attribution 4.0 International License (https://creativecommons.org/licenses/by/4.0/). If you distribute this content, or a modified version of it, you must provide attribution to Red Hat Inc. and provide a link to the original.",
        "title": "Terms of Use"
      }
    ],
    "publisher": {
      "category": "vendor",
      "contact_details": "https://access.redhat.com/security/team/contact/",
      "issuing_authority": "Red Hat Product Security is responsible for vulnerability handling across all Red Hat products and services.",
      "name": "Red Hat Product Security",
      "namespace": "https://www.redhat.com"
    },
    "references": [
      {
        "category": "self",
        "summary": "Canonical URL",
        "url": "https://security.access.redhat.com/data/csaf/v2/vex/2018/cve-2018-13348.json"
      }
    ],
    "title": "mercurial: Improper length check in mpatch.c",
    "tracking": {
      "current_release_date": "2026-11-23T16:23:20+00:00",
      "generator": {
        "date": "2026-11-23T16:23:20+00:00",
        "engine": {
          "name": "Red Hat SDEngine",
          "version": "5.4.8"
        }
      },
      "id": "CVE-2018-13348",
      "initial_release_date": "2018-06-06T00:00:00+00:00",
      "revision_history": [
        {
          "date": "2018-06-06T00:00:00+00:00",
          "number": "1",
          "summary": "Initial version"
        },
        {
          "date": "2026-02-02T07:28:08.904337+00:00",
          "number": "2",
          "summary": "Current version"
        },
        {
          "date": "2026-11-23T16:23:20+00:00",
          "number": "3",
          "summary": "Last generated version"
        }
      ],
      "status": "final",
      "version": "3"
    }
  },
  "product_tree": {
    "branches": [
      {
        "branches": [
          {
            "branches": [
              {
                "category": "product_name",
                "name": "Red Hat Ansible Tower 3",
                "product": {
                  "name": "Red Hat Ansible Tower 3",
                  "product_id": "red_hat_ansible_tower_3",
                  "product_identification_helper": {
                    "cpe": "cpe:/a:redhat:ansible_tower:3"
                  }
                }
              }
            ],
            "category": "product_family",
            "name": "Red Hat Ansible Tower 3"
          },
          {
            "branches": [
              {
                "category": "product_name",
                "name": "Red Hat Enterprise Linux 6",
                "product": {
                  "name": "Red Hat Enterprise Linux 6",
                  "product_id": "red_hat_enterprise_linux_6",
                  "product_identification_helper": {
                    "cpe": "cpe:/o:redhat:rhel_els:6"
                  }
                }
              }
            ],
            "category": "product_family",
            "name": "Red Hat Enterprise Linux 6"
          },
          {
            "branches": [
              {
                "category": "product_name",
                "name": "Red Hat Enterprise Linux 7",
                "product": {
                  "name": "Red Hat Enterprise Linux 7",
                  "product_id": "red_hat_enterprise_linux_7",
                  "product_identification_helper": {
                    "cpe": "cpe:/o:redhat:rhel_els:7"
                  }
                }
              }
            ],
            "category": "product_family",
            "name": "Red Hat Enterprise Linux 7"
          },
          {
            "branches": [
              {
                "category": "product_name",
                "name": "Red Hat Enterprise Linux 8",
                "product": {
                  "name": "Red Hat Enterprise Linux 8",
                  "product_id": "red_hat_enterprise_linux_8",
                  "product_identification_helper": {
                    "cpe": "cpe:/o:redhat:enterprise_linux:8"
                  }
                }
              }
            ],
            "category": "product_family",
            "name": "Red Hat Enterprise Linux 8"
          },
          {
            "category": "product_version",
            "name": "mercurial.src",
            "product": {
              "name": "mercurial.src",
              "product_id": "mercurial.src",
              "product_identification_helper": {
                "purl": "pkg:rpm/redhat/mercurial?arch=src"
              }
            }
          },
          {
            "category": "product_version",
            "name": "mercurial-hgk",
            "product": {
              "name": "mercurial-hgk",
              "product_id": "mercurial-hgk",
              "product_identification_helper": {
                "purl": "pkg:rpm/redhat/mercurial-hgk"
              }
            }
          },
          {
            "category": "product_version",
            "name": "emacs-mercurial",
            "product": {
              "name": "emacs-mercurial",
              "product_id": "emacs-mercurial",
              "product_identification_helper": {
                "purl": "pkg:rpm/redhat/emacs-mercurial"
              }
            }
          },
          {
            "category": "product_version",
            "name": "emacs-mercurial-el",
            "product": {
              "name": "emacs-mercurial-el",
              "product_id": "emacs-mercurial-el",
              "product_identification_helper": {
                "purl": "pkg:rpm/redhat/emacs-mercurial-el"
              }
            }
          },
          {
            "category": "product_version",
            "name": "mercurial",
            "product": {
              "name": "mercurial",
              "product_id": "mercurial",
              "product_identification_helper": {
                "purl": "pkg:rpm/redhat/mercurial"
              }
            }
          },
          {
            "category": "product_version",
            "name": "mercurial-chg",
            "product": {
              "name": "mercurial-chg",
              "product_id": "mercurial-chg",
              "product_identification_helper": {
                "purl": "pkg:rpm/redhat/mercurial-chg"
              }
            }
          }
        ],
        "category": "vendor",
        "name": "Red Hat"
      }
    ],
    "relationships": [
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "mercurial.src as a component of Red Hat Ansible Tower 3",
          "product_id": "red_hat_ansible_tower_3:mercurial.src"
        },
        "product_reference": "mercurial.src",
        "relates_to_product_reference": "red_hat_ansible_tower_3"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "emacs-mercurial as a component of Red Hat Enterprise Linux 6",
          "product_id": "red_hat_enterprise_linux_6:emacs-mercurial"
        },
        "product_reference": "emacs-mercurial",
        "relates_to_product_reference": "red_hat_enterprise_linux_6"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "emacs-mercurial-el as a component of Red Hat Enterprise Linux 6",
          "product_id": "red_hat_enterprise_linux_6:emacs-mercurial-el"
        },
        "product_reference": "emacs-mercurial-el",
        "relates_to_product_reference": "red_hat_enterprise_linux_6"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "mercurial as a component of Red Hat Enterprise Linux 6",
          "product_id": "red_hat_enterprise_linux_6:mercurial"
        },
        "product_reference": "mercurial",
        "relates_to_product_reference": "red_hat_enterprise_linux_6"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "mercurial-hgk as a component of Red Hat Enterprise Linux 6",
          "product_id": "red_hat_enterprise_linux_6:mercurial-hgk"
        },
        "product_reference": "mercurial-hgk",
        "relates_to_product_reference": "red_hat_enterprise_linux_6"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "mercurial.src as a component of Red Hat Enterprise Linux 6",
          "product_id": "red_hat_enterprise_linux_6:mercurial.src"
        },
        "product_reference": "mercurial.src",
        "relates_to_product_reference": "red_hat_enterprise_linux_6"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "emacs-mercurial as a component of Red Hat Enterprise Linux 7",
          "product_id": "red_hat_enterprise_linux_7:emacs-mercurial"
        },
        "product_reference": "emacs-mercurial",
        "relates_to_product_reference": "red_hat_enterprise_linux_7"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "emacs-mercurial-el as a component of Red Hat Enterprise Linux 7",
          "product_id": "red_hat_enterprise_linux_7:emacs-mercurial-el"
        },
        "product_reference": "emacs-mercurial-el",
        "relates_to_product_reference": "red_hat_enterprise_linux_7"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "mercurial as a component of Red Hat Enterprise Linux 7",
          "product_id": "red_hat_enterprise_linux_7:mercurial"
        },
        "product_reference": "mercurial",
        "relates_to_product_reference": "red_hat_enterprise_linux_7"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "mercurial-hgk as a component of Red Hat Enterprise Linux 7",
          "product_id": "red_hat_enterprise_linux_7:mercurial-hgk"
        },
        "product_reference": "mercurial-hgk",
        "relates_to_product_reference": "red_hat_enterprise_linux_7"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "mercurial.src as a component of Red Hat Enterprise Linux 7",
          "product_id": "red_hat_enterprise_linux_7:mercurial.src"
        },
        "product_reference": "mercurial.src",
        "relates_to_product_reference": "red_hat_enterprise_linux_7"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "mercurial-chg as a component of Red Hat Enterprise Linux 8",
          "product_id": "red_hat_enterprise_linux_8:mercurial-chg"
        },
        "product_reference": "mercurial-chg",
        "relates_to_product_reference": "red_hat_enterprise_linux_8"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "mercurial-hgk as a component of Red Hat Enterprise Linux 8",
          "product_id": "red_hat_enterprise_linux_8:mercurial-hgk"
        },
        "product_reference": "mercurial-hgk",
        "relates_to_product_reference": "red_hat_enterprise_linux_8"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "mercurial.src as a component of Red Hat Enterprise Linux 8",
          "product_id": "red_hat_enterprise_linux_8:mercurial.src"
        },
        "product_reference": "mercurial.src",
        "relates_to_product_reference": "red_hat_enterprise_linux_8"
      }
    ]
  },
  "vulnerabilities": [
    {
      "cve": "CVE-2018-13348",
      "cwe": {
        "id": "CWE-805",
        "name": "Buffer Access with Incorrect Length Value"
      },
      "discovery_date": "2018-06-22T00:00:00+00:00",
      "flags": [
        {
          "label": "vulnerable_code_not_present",
          "product_ids": [
            "red_hat_ansible_tower_3:mercurial.src",
            "red_hat_enterprise_linux_6:emacs-mercurial",
            "red_hat_enterprise_linux_6:emacs-mercurial-el",
            "red_hat_enterprise_linux_6:mercurial",
            "red_hat_enterprise_linux_6:mercurial-hgk",
            "red_hat_enterprise_linux_6:mercurial.src",
            "red_hat_enterprise_linux_7:emacs-mercurial",
            "red_hat_enterprise_linux_7:emacs-mercurial-el",
            "red_hat_enterprise_linux_7:mercurial",
            "red_hat_enterprise_linux_7:mercurial-hgk",
            "red_hat_enterprise_linux_7:mercurial.src",
            "red_hat_enterprise_linux_8:mercurial-chg",
            "red_hat_enterprise_linux_8:mercurial-hgk",
            "red_hat_enterprise_linux_8:mercurial.src"
          ]
        }
      ],
      "ids": [
        {
          "system_name": "Red Hat Bugzilla ID",
          "text": "1594083"
        }
      ],
      "notes": [
        {
          "category": "description",
          "text": "The mpatch_decode function in mpatch.c in Mercurial before 4.6.1 mishandles certain situations where there should be at least 12 bytes remaining after the current position in the patch data, but actually are not, aka OVE-20180430-0001.",
          "title": "Vulnerability description"
        },
        {
          "category": "summary",
          "text": "mercurial: Improper length check in mpatch.c",
          "title": "Vulnerability summary"
        },
        {
          "category": "general",
          "text": "The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.",
          "title": "CVSS score applicability"
        }
      ],
      "product_status": {
        "known_not_affected": [
          "red_hat_ansible_tower_3:mercurial.src",
          "red_hat_enterprise_linux_6:emacs-mercurial",
          "red_hat_enterprise_linux_6:emacs-mercurial-el",
          "red_hat_enterprise_linux_6:mercurial",
          "red_hat_enterprise_linux_6:mercurial-hgk",
          "red_hat_enterprise_linux_6:mercurial.src",
          "red_hat_enterprise_linux_7:emacs-mercurial",
          "red_hat_enterprise_linux_7:emacs-mercurial-el",
          "red_hat_enterprise_linux_7:mercurial",
          "red_hat_enterprise_linux_7:mercurial-hgk",
          "red_hat_enterprise_linux_7:mercurial.src",
          "red_hat_enterprise_linux_8:mercurial-chg",
          "red_hat_enterprise_linux_8:mercurial-hgk",
          "red_hat_enterprise_linux_8:mercurial.src"
        ]
      },
      "references": [
        {
          "category": "self",
          "summary": "Canonical URL",
          "url": "https://access.redhat.com/security/cve/CVE-2018-13348"
        },
        {
          "category": "external",
          "summary": "RHBZ#1594083",
          "url": "https://bugzilla.redhat.com/show_bug.cgi?id=1594083"
        },
        {
          "category": "external",
          "summary": "https://www.cve.org/CVERecord?id=CVE-2018-13348",
          "url": "https://www.cve.org/CVERecord?id=CVE-2018-13348"
        },
        {
          "category": "external",
          "summary": "https://nvd.nist.gov/vuln/detail/CVE-2018-13348",
          "url": "https://nvd.nist.gov/vuln/detail/CVE-2018-13348"
        }
      ],
      "release_date": "2018-06-06T00:00:00+00:00",
      "scores": [
        {
          "cvss_v3": {
            "attackComplexity": "LOW",
            "attackVector": "NETWORK",
            "availabilityImpact": "LOW",
            "baseScore": 4.3,
            "baseSeverity": "MEDIUM",
            "confidentialityImpact": "NONE",
            "integrityImpact": "NONE",
            "privilegesRequired": "NONE",
            "scope": "UNCHANGED",
            "userInteraction": "REQUIRED",
            "vectorString": "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L",
            "version": "3.0"
          },
          "products": [
            "red_hat_ansible_tower_3:mercurial.src",
            "red_hat_enterprise_linux_6:emacs-mercurial",
            "red_hat_enterprise_linux_6:emacs-mercurial-el",
            "red_hat_enterprise_linux_6:mercurial",
            "red_hat_enterprise_linux_6:mercurial-hgk",
            "red_hat_enterprise_linux_6:mercurial.src",
            "red_hat_enterprise_linux_7:emacs-mercurial",
            "red_hat_enterprise_linux_7:emacs-mercurial-el",
            "red_hat_enterprise_linux_7:mercurial",
            "red_hat_enterprise_linux_7:mercurial-hgk",
            "red_hat_enterprise_linux_7:mercurial.src",
            "red_hat_enterprise_linux_8:mercurial-chg",
            "red_hat_enterprise_linux_8:mercurial-hgk",
            "red_hat_enterprise_linux_8:mercurial.src"
          ]
        }
      ],
      "threats": [
        {
          "category": "impact",
          "details": "Moderate",
          "product_ids": [
            "red_hat_ansible_tower_3:mercurial.src",
            "red_hat_enterprise_linux_6:emacs-mercurial",
            "red_hat_enterprise_linux_6:emacs-mercurial-el",
            "red_hat_enterprise_linux_6:mercurial",
            "red_hat_enterprise_linux_6:mercurial-hgk",
            "red_hat_enterprise_linux_6:mercurial.src",
            "red_hat_enterprise_linux_7:emacs-mercurial",
            "red_hat_enterprise_linux_7:emacs-mercurial-el",
            "red_hat_enterprise_linux_7:mercurial",
            "red_hat_enterprise_linux_7:mercurial-hgk",
            "red_hat_enterprise_linux_7:mercurial.src",
            "red_hat_enterprise_linux_8:mercurial-chg",
            "red_hat_enterprise_linux_8:mercurial-hgk",
            "red_hat_enterprise_linux_8:mercurial.src"
          ]
        }
      ],
      "title": "mercurial: Improper length check in mpatch.c"
    }
  ]
}