Skip to main content

Over 150 LLM Providers · Over 5,300 Models The most extensible AI-powered pentesting platform. Open source. Star on GitHub

CVE-2021-42716

7.1 · HIGH
Published Oct 21, 2021 nothings CWE-120 EPSS 1.46% (72th pctl)

Overview

CVE-2021-42716 is a high-severity vulnerability affecting nothings stb_image.h. It was published on October 21, 2021 and has a CVSS 3.1 base score of 7.1 (HIGH).

This vulnerability has a CVSS 3.1 base score of 7.1, rated HIGH. It requires local or adjacent network access to exploit. No authentication or special privileges are required for exploitation.

Technical Description

An issue was discovered in stb stb_image.h 2.27. The PNM loader incorrectly interpreted 16-bit PGM files as 8-bit when converting to RGBA, leading to a buffer overflow when later reinterpreting the result as a 16-bit buffer. An attacker could potentially have crashed a service using stb_image, or read up to 1024 bytes of non-consecutive heap data without control over the read location.

Remediation

Check the references section for vendor advisories and patches from nothings. Update stb_image.h to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Affected Products

Vendor Product Versions Status

Frequently Asked Questions

What is CVE-2021-42716?

CVE-2021-42716 is a high-severity vulnerability affecting nothings stb_image.h. It was published on October 21, 2021 and has a CVSS 3.1 base score of 7.1 (HIGH).

How severe is CVE-2021-42716?

This vulnerability has a CVSS 3.1 base score of 7.1, rated HIGH. It requires local or adjacent network access to exploit. No authentication or special privileges are required for exploitation.

How do I fix or remediate CVE-2021-42716?

Check the references section for vendor advisories and patches from nothings. Update stb_image.h to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2021-42716?

CyberStrike's AI-powered security agents can automatically detect CVE-2021-42716 across your infrastructure using autonomous pentesting, DAST scanning, and HackBrowser. The platform continuously monitors for known vulnerabilities and provides actionable remediation guidance prioritized by real-world exploitability.