Advisory Database
  • Advisories
  • Dependency Scanning
  1. nuget
  2. ›
  3. libxml2
  4. ›
  5. CVE-2017-9048

CVE-2017-9048: Improper Restriction of Operations within the Bounds of a Memory Buffer

May 18, 2017 (updated June 29, 2021)

libxml2 is vulnerable to a stack-based buffer overflow. The function xmlSnprintfElementContent in valid.c is supposed to recursively dump the element content definition into a char buffer ‘buf’ of size ‘size’. At the end of the routine, the function may strcat two more characters without checking whether the current strlen(buf) + 2 < size. This vulnerability causes programs that use libxml2, such as PHP, to crash.

References

  • nvd.nist.gov/vuln/detail/CVE-2017-9048

Code Behaviors & Features

Detect and mitigate CVE-2017-9048 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

Version 2.9.4

Solution

Unfortunately, there is no solution available yet.

Impact 7.5 HIGH

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

Learn more about CVSS

Weakness

  • CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer

Source file

nuget/libxml2/CVE-2017-9048.yml

Spotted a mistake? Edit the file on GitLab.

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

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