Out-of-bounds Write Affecting raptor2 package, versions <0:2.0.15-16.el8


Severity

Recommended
medium

Based on Rocky Linux security rating.

Threat Intelligence

EPSS
0.23% (61st percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-ROCKY8-RAPTOR2-3209290
  • published5 Jan 2023
  • disclosed6 Nov 2020

Introduced: 6 Nov 2020

CVE-2017-18926  (opens in a new tab)
CWE-787  (opens in a new tab)

How to fix?

Upgrade Rocky-Linux:8 raptor2 to version 0:2.0.15-16.el8 or higher.
This issue was patched in RLSA-2021:1842.

NVD Description

Note: Versions mentioned in the description apply only to the upstream raptor2 package and not the raptor2 package as distributed by Rocky-Linux. See How to fix? for Rocky-Linux:8 relevant fixed versions and status.

raptor_xml_writer_start_element_common in raptor_xml_writer.c in Raptor RDF Syntax Library 2.0.15 miscalculates the maximum nspace declarations for the XML writer, leading to heap-based buffer overflows (sometimes seen in raptor_qname_format_as_xml).

References

CVSS Scores

version 3.1