<?xml version="1.0" encoding="UTF-8"?>
<cvrfdoc xmlns="http://www.icasi.org/CVRF/schema/cvrf/1.1" xmlns:cvrf="http://www.icasi.org/CVRF/schema/cvrf/1.1">
  <DocumentTitle xml:lang="en">Security update for cJSON</DocumentTitle>
  <DocumentType>SUSE Patch</DocumentType>
  <DocumentPublisher Type="Vendor">
    <ContactDetails>security@suse.de</ContactDetails>
    <IssuingAuthority>SUSE Security Team</IssuingAuthority>
  </DocumentPublisher>
  <DocumentTracking>
    <Identification>
      <ID>openSUSE-SU-2024:0139-1</ID>
    </Identification>
    <Status>Final</Status>
    <Version>1</Version>
    <RevisionHistory>
      <Revision>
        <Number>1</Number>
        <Date>2024-05-25T08:47:48Z</Date>
        <Description>current</Description>
      </Revision>
    </RevisionHistory>
    <InitialReleaseDate>2024-05-25T08:47:48Z</InitialReleaseDate>
    <CurrentReleaseDate>2024-05-25T08:47:48Z</CurrentReleaseDate>
    <Generator>
      <Engine>cve-database/bin/generate-cvrf.pl</Engine>
      <Date>2017-02-24T01:00:00Z</Date>
    </Generator>
  </DocumentTracking>
  <DocumentNotes>
    <Note Title="Topic" Type="Summary" Ordinal="1" xml:lang="en">Security update for cJSON</Note>
    <Note Title="Details" Type="General" Ordinal="2" xml:lang="en">This update for cJSON fixes the following issues:

- Update to 1.7.18:
  * CVE-2024-31755: NULL pointer dereference via cJSON_SetValuestring() (boo#1223420)
  * Remove non-functional list handling of compiler flags
  * Fix heap buffer overflow
  * remove misused optimization flag -01
  * Set free'd pointers to NULL whenever they are not reassigned
    immediately after

- Update to version 1.7.17 (boo#1218098, CVE-2023-50472,
    boo#1218099, CVE-2023-50471):
  * Fix null reference in cJSON_SetValuestring (CVE-2023-50472).
  * Fix null reference in cJSON_InsertItemInArray (CVE-2023-50471).

- Update to 1.7.16:
  * Add an option for ENABLE_CJSON_VERSION_SO in CMakeLists.txt
  * Add cmake_policy to CMakeLists.txt
  * Add cJSON_SetBoolValue
  * Add meson documentation
  * Fix memory leak in merge_patch
  * Fix conflicting target names 'uninstall'
  * Bump cmake version to 3.0 and use new version syntax
  * Print int without decimal places
  * Fix 'cjson_utils-static' target not exist
  * Add allocate check for replace_item_in_object
  * Fix a null pointer crash in cJSON_ReplaceItemViaPointer
</Note>
    <Note Title="Terms of Use" Type="Legal Disclaimer" Ordinal="3" xml:lang="en">The CVRF data is provided by SUSE under the Creative Commons License 4.0 with Attribution (CC-BY-4.0).</Note>
    <Note Title="Patchnames" Type="Details" Ordinal="4" xml:lang="en">openSUSE-2024-139</Note>
  </DocumentNotes>
  <DocumentDistribution xml:lang="en">Copyright SUSE LLC under the Creative Commons License 4.0 with Attribution (CC-BY-4.0)</DocumentDistribution>
  <DocumentReferences>
    <Reference Type="Self">
      <URL>https://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/36QNMKFWNRJX3XHLNGZ3DNLMLIHSRF4U/</URL>
      <Description>E-Mail link for openSUSE-SU-2024:0139-1</Description>
    </Reference>
    <Reference Type="Self">
      <URL>https://www.suse.com/support/security/rating/</URL>
      <Description>SUSE Security Ratings</Description>
    </Reference>
    <Reference Type="Self">
      <URL>https://bugzilla.suse.com/1218098</URL>
      <Description>SUSE Bug 1218098</Description>
    </Reference>
    <Reference Type="Self">
      <URL>https://bugzilla.suse.com/1218099</URL>
      <Description>SUSE Bug 1218099</Description>
    </Reference>
    <Reference Type="Self">
      <URL>https://bugzilla.suse.com/1223420</URL>
      <Description>SUSE Bug 1223420</Description>
    </Reference>
    <Reference Type="Self">
      <URL>https://www.suse.com/security/cve/CVE-2023-50471/</URL>
      <Description>SUSE CVE CVE-2023-50471 page</Description>
    </Reference>
    <Reference Type="Self">
      <URL>https://www.suse.com/security/cve/CVE-2023-50472/</URL>
      <Description>SUSE CVE CVE-2023-50472 page</Description>
    </Reference>
    <Reference Type="Self">
      <URL>https://www.suse.com/security/cve/CVE-2024-31755/</URL>
      <Description>SUSE CVE CVE-2024-31755 page</Description>
    </Reference>
  </DocumentReferences>
  <ProductTree xmlns="http://www.icasi.org/CVRF/schema/prod/1.1">
    <Branch Type="Product Family" Name="SUSE Package Hub 15 SP5">
      <Branch Type="Product Name" Name="SUSE Package Hub 15 SP5">
        <FullProductName ProductID="SUSE Package Hub 15 SP5">SUSE Package Hub 15 SP5</FullProductName>
      </Branch>
    </Branch>
    <Branch Type="Product Family" Name="openSUSE Leap 15.5">
      <Branch Type="Product Name" Name="openSUSE Leap 15.5">
        <FullProductName ProductID="openSUSE Leap 15.5" CPE="cpe:/o:opensuse:leap:15.5">openSUSE Leap 15.5</FullProductName>
      </Branch>
    </Branch>
    <Branch Type="Product Version" Name="cJSON-devel-1.7.18-bp155.3.3.1">
      <FullProductName ProductID="cJSON-devel-1.7.18-bp155.3.3.1">cJSON-devel-1.7.18-bp155.3.3.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="libcjson1-1.7.18-bp155.3.3.1">
      <FullProductName ProductID="libcjson1-1.7.18-bp155.3.3.1">libcjson1-1.7.18-bp155.3.3.1</FullProductName>
    </Branch>
    <Relationship ProductReference="cJSON-devel-1.7.18-bp155.3.3.1" RelationType="Default Component Of" RelatesToProductReference="SUSE Package Hub 15 SP5">
      <FullProductName ProductID="SUSE Package Hub 15 SP5:cJSON-devel-1.7.18-bp155.3.3.1">cJSON-devel-1.7.18-bp155.3.3.1 as a component of SUSE Package Hub 15 SP5</FullProductName>
    </Relationship>
    <Relationship ProductReference="libcjson1-1.7.18-bp155.3.3.1" RelationType="Default Component Of" RelatesToProductReference="SUSE Package Hub 15 SP5">
      <FullProductName ProductID="SUSE Package Hub 15 SP5:libcjson1-1.7.18-bp155.3.3.1">libcjson1-1.7.18-bp155.3.3.1 as a component of SUSE Package Hub 15 SP5</FullProductName>
    </Relationship>
    <Relationship ProductReference="cJSON-devel-1.7.18-bp155.3.3.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Leap 15.5">
      <FullProductName ProductID="openSUSE Leap 15.5:cJSON-devel-1.7.18-bp155.3.3.1">cJSON-devel-1.7.18-bp155.3.3.1 as a component of openSUSE Leap 15.5</FullProductName>
    </Relationship>
    <Relationship ProductReference="libcjson1-1.7.18-bp155.3.3.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Leap 15.5">
      <FullProductName ProductID="openSUSE Leap 15.5:libcjson1-1.7.18-bp155.3.3.1">libcjson1-1.7.18-bp155.3.3.1 as a component of openSUSE Leap 15.5</FullProductName>
    </Relationship>
  </ProductTree>
  <Vulnerability xmlns="http://www.icasi.org/CVRF/schema/vuln/1.1" Ordinal="1">
    <Notes>
      <Note Title="Vulnerability Description" Type="General" Ordinal="1" xml:lang="en">cJSON v1.7.16 was discovered to contain a segmentation violation via the function cJSON_InsertItemInArray at cJSON.c.</Note>
    </Notes>
    <CVE>CVE-2023-50471</CVE>
    <ProductStatuses>
      <Status Type="Fixed">
        <ProductID>SUSE Package Hub 15 SP5:cJSON-devel-1.7.18-bp155.3.3.1</ProductID>
        <ProductID>SUSE Package Hub 15 SP5:libcjson1-1.7.18-bp155.3.3.1</ProductID>
        <ProductID>openSUSE Leap 15.5:cJSON-devel-1.7.18-bp155.3.3.1</ProductID>
        <ProductID>openSUSE Leap 15.5:libcjson1-1.7.18-bp155.3.3.1</ProductID>
      </Status>
    </ProductStatuses>
    <Threats>
      <Threat Type="Impact">
        <Description>important</Description>
      </Threat>
    </Threats>
    <Remediations>
      <Remediation Type="Vendor Fix">
        <Description xml:lang="en">To install this SUSE Security Update use the SUSE recommended installation methods like YaST online_update or "zypper patch".
</Description>
        <URL>https://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/36QNMKFWNRJX3XHLNGZ3DNLMLIHSRF4U/</URL>
      </Remediation>
    </Remediations>
    <References>
      <Reference>
        <URL>https://www.suse.com/security/cve/CVE-2023-50471.html</URL>
        <Description>CVE-2023-50471</Description>
      </Reference>
      <Reference>
        <URL>https://bugzilla.suse.com/1218099</URL>
        <Description>SUSE Bug 1218099</Description>
      </Reference>
    </References>
  </Vulnerability>
  <Vulnerability xmlns="http://www.icasi.org/CVRF/schema/vuln/1.1" Ordinal="2">
    <Notes>
      <Note Title="Vulnerability Description" Type="General" Ordinal="1" xml:lang="en">cJSON v1.7.16 was discovered to contain a segmentation violation via the function cJSON_SetValuestring at cJSON.c.</Note>
    </Notes>
    <CVE>CVE-2023-50472</CVE>
    <ProductStatuses>
      <Status Type="Fixed">
        <ProductID>SUSE Package Hub 15 SP5:cJSON-devel-1.7.18-bp155.3.3.1</ProductID>
        <ProductID>SUSE Package Hub 15 SP5:libcjson1-1.7.18-bp155.3.3.1</ProductID>
        <ProductID>openSUSE Leap 15.5:cJSON-devel-1.7.18-bp155.3.3.1</ProductID>
        <ProductID>openSUSE Leap 15.5:libcjson1-1.7.18-bp155.3.3.1</ProductID>
      </Status>
    </ProductStatuses>
    <Threats>
      <Threat Type="Impact">
        <Description>important</Description>
      </Threat>
    </Threats>
    <Remediations>
      <Remediation Type="Vendor Fix">
        <Description xml:lang="en">To install this SUSE Security Update use the SUSE recommended installation methods like YaST online_update or "zypper patch".
</Description>
        <URL>https://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/36QNMKFWNRJX3XHLNGZ3DNLMLIHSRF4U/</URL>
      </Remediation>
    </Remediations>
    <References>
      <Reference>
        <URL>https://www.suse.com/security/cve/CVE-2023-50472.html</URL>
        <Description>CVE-2023-50472</Description>
      </Reference>
      <Reference>
        <URL>https://bugzilla.suse.com/1218098</URL>
        <Description>SUSE Bug 1218098</Description>
      </Reference>
    </References>
  </Vulnerability>
  <Vulnerability xmlns="http://www.icasi.org/CVRF/schema/vuln/1.1" Ordinal="3">
    <Notes>
      <Note Title="Vulnerability Description" Type="General" Ordinal="1" xml:lang="en">cJSON v1.7.17 was discovered to contain a segmentation violation, which can trigger through the second parameter of function cJSON_SetValuestring at cJSON.c.</Note>
    </Notes>
    <CVE>CVE-2024-31755</CVE>
    <ProductStatuses>
      <Status Type="Fixed">
        <ProductID>SUSE Package Hub 15 SP5:cJSON-devel-1.7.18-bp155.3.3.1</ProductID>
        <ProductID>SUSE Package Hub 15 SP5:libcjson1-1.7.18-bp155.3.3.1</ProductID>
        <ProductID>openSUSE Leap 15.5:cJSON-devel-1.7.18-bp155.3.3.1</ProductID>
        <ProductID>openSUSE Leap 15.5:libcjson1-1.7.18-bp155.3.3.1</ProductID>
      </Status>
    </ProductStatuses>
    <Threats>
      <Threat Type="Impact">
        <Description>important</Description>
      </Threat>
    </Threats>
    <Remediations>
      <Remediation Type="Vendor Fix">
        <Description xml:lang="en">To install this SUSE Security Update use the SUSE recommended installation methods like YaST online_update or "zypper patch".
</Description>
        <URL>https://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/36QNMKFWNRJX3XHLNGZ3DNLMLIHSRF4U/</URL>
      </Remediation>
    </Remediations>
    <References>
      <Reference>
        <URL>https://www.suse.com/security/cve/CVE-2024-31755.html</URL>
        <Description>CVE-2024-31755</Description>
      </Reference>
      <Reference>
        <URL>https://bugzilla.suse.com/1223420</URL>
        <Description>SUSE Bug 1223420</Description>
      </Reference>
    </References>
  </Vulnerability>
</cvrfdoc>
