7.1
HIGH
CVE-2021-42716
Stb Image Triggerable Buffer Overflow
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.

INFO

Published Date :

Oct. 21, 2021, 7:15 p.m.

Last Modified :

Nov. 7, 2023, 3:39 a.m.

Remotely Exploitable :

No

Impact Score :

5.2

Exploitability Score :

1.8
Affected Products

The following products are affected by CVE-2021-42716 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Fedoraproject fedora
1 Nothings stb_image.h
References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2021-42716.

URL Resource
https://github.com/nothings/stb/issues/1166 Exploit Issue Tracking Third Party Advisory
https://github.com/nothings/stb/issues/1225 Exploit Issue Tracking Third Party Advisory
https://github.com/nothings/stb/pull/1223 Third Party Advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3TDGZFLBOP27LZKLH45WQLSNPSPP7S7Z/
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/AF2CNP4FVC6LDKNOO4WDCGNDYIP3MPK6/
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/BEGXBDEMTFGINETMJENBZ6SCHVEJQJSY/
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/CI23LXPEV2GCDQTJSKO6CIILBDTI3R42/
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FTZXHFZD36BGE5P6JF252NZZLKMGCY4T/
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/G2M5CRSGPRF7G3YB5CLU4FXW7ANNHAYT/
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ID6II3RIKAMVGVMC6ZAQIXXYYDMTVC4N/
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TXX76TJMZBPN3NU542MGN6B7C7QHRFGB/
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VP2YEXEAJWI76FPM7D7VXHWD3WESQEYC/

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2021-42716 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2021-42716 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by [email protected]

    May. 14, 2024

    Action Type Old Value New Value
  • CVE Modified by [email protected]

    Nov. 07, 2023

    Action Type Old Value New Value
    Added Reference MITRE https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/G2M5CRSGPRF7G3YB5CLU4FXW7ANNHAYT/ [No types assigned]
    Added Reference MITRE https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ID6II3RIKAMVGVMC6ZAQIXXYYDMTVC4N/ [No types assigned]
    Added Reference MITRE https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/BEGXBDEMTFGINETMJENBZ6SCHVEJQJSY/ [No types assigned]
    Added Reference MITRE https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/CI23LXPEV2GCDQTJSKO6CIILBDTI3R42/ [No types assigned]
    Added Reference MITRE https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FTZXHFZD36BGE5P6JF252NZZLKMGCY4T/ [No types assigned]
    Added Reference MITRE https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VP2YEXEAJWI76FPM7D7VXHWD3WESQEYC/ [No types assigned]
    Added Reference MITRE https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3TDGZFLBOP27LZKLH45WQLSNPSPP7S7Z/ [No types assigned]
    Added Reference MITRE https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/AF2CNP4FVC6LDKNOO4WDCGNDYIP3MPK6/ [No types assigned]
    Added Reference MITRE https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TXX76TJMZBPN3NU542MGN6B7C7QHRFGB/ [No types assigned]
    Removed Reference MITRE https://lists.fedoraproject.org/archives/list/[email protected]/message/G2M5CRSGPRF7G3YB5CLU4FXW7ANNHAYT/
    Removed Reference MITRE https://lists.fedoraproject.org/archives/list/[email protected]/message/BEGXBDEMTFGINETMJENBZ6SCHVEJQJSY/
    Removed Reference MITRE https://lists.fedoraproject.org/archives/list/[email protected]/message/3TDGZFLBOP27LZKLH45WQLSNPSPP7S7Z/
    Removed Reference MITRE https://lists.fedoraproject.org/archives/list/[email protected]/message/FTZXHFZD36BGE5P6JF252NZZLKMGCY4T/
    Removed Reference MITRE https://lists.fedoraproject.org/archives/list/[email protected]/message/AF2CNP4FVC6LDKNOO4WDCGNDYIP3MPK6/
    Removed Reference MITRE https://lists.fedoraproject.org/archives/list/[email protected]/message/CI23LXPEV2GCDQTJSKO6CIILBDTI3R42/
    Removed Reference MITRE https://lists.fedoraproject.org/archives/list/[email protected]/message/VP2YEXEAJWI76FPM7D7VXHWD3WESQEYC/
    Removed Reference MITRE https://lists.fedoraproject.org/archives/list/[email protected]/message/ID6II3RIKAMVGVMC6ZAQIXXYYDMTVC4N/
    Removed Reference MITRE https://lists.fedoraproject.org/archives/list/[email protected]/message/TXX76TJMZBPN3NU542MGN6B7C7QHRFGB/
  • Modified Analysis by [email protected]

    May. 13, 2022

    Action Type Old Value New Value
    Added CVSS V2 Metadata Victim must voluntarily interact with attack mechanism
    Removed CVSS V2 NIST (AV:N/AC:L/Au:N/C:P/I:N/A:P)
    Added CVSS V2 NIST (AV:N/AC:M/Au:N/C:P/I:N/A:P)
    Removed CVSS V3.1 NIST AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
    Added CVSS V3.1 NIST AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H
    Changed Reference Type https://lists.fedoraproject.org/archives/list/[email protected]/message/TXX76TJMZBPN3NU542MGN6B7C7QHRFGB/ No Types Assigned https://lists.fedoraproject.org/archives/list/[email protected]/message/TXX76TJMZBPN3NU542MGN6B7C7QHRFGB/ Mailing List, Third Party Advisory
  • CVE Modified by [email protected]

    Apr. 29, 2022

    Action Type Old Value New Value
    Added Reference https://lists.fedoraproject.org/archives/list/[email protected]/message/TXX76TJMZBPN3NU542MGN6B7C7QHRFGB/ [No Types Assigned]
  • Modified Analysis by [email protected]

    Nov. 26, 2021

    Action Type Old Value New Value
    Changed Reference Type https://lists.fedoraproject.org/archives/list/[email protected]/message/3TDGZFLBOP27LZKLH45WQLSNPSPP7S7Z/ No Types Assigned https://lists.fedoraproject.org/archives/list/[email protected]/message/3TDGZFLBOP27LZKLH45WQLSNPSPP7S7Z/ Mailing List, Third Party Advisory
    Changed Reference Type https://lists.fedoraproject.org/archives/list/[email protected]/message/AF2CNP4FVC6LDKNOO4WDCGNDYIP3MPK6/ No Types Assigned https://lists.fedoraproject.org/archives/list/[email protected]/message/AF2CNP4FVC6LDKNOO4WDCGNDYIP3MPK6/ Mailing List, Third Party Advisory
    Changed Reference Type https://lists.fedoraproject.org/archives/list/[email protected]/message/BEGXBDEMTFGINETMJENBZ6SCHVEJQJSY/ No Types Assigned https://lists.fedoraproject.org/archives/list/[email protected]/message/BEGXBDEMTFGINETMJENBZ6SCHVEJQJSY/ Mailing List, Third Party Advisory
    Changed Reference Type https://lists.fedoraproject.org/archives/list/[email protected]/message/CI23LXPEV2GCDQTJSKO6CIILBDTI3R42/ No Types Assigned https://lists.fedoraproject.org/archives/list/[email protected]/message/CI23LXPEV2GCDQTJSKO6CIILBDTI3R42/ Mailing List, Third Party Advisory
    Changed Reference Type https://lists.fedoraproject.org/archives/list/[email protected]/message/FTZXHFZD36BGE5P6JF252NZZLKMGCY4T/ No Types Assigned https://lists.fedoraproject.org/archives/list/[email protected]/message/FTZXHFZD36BGE5P6JF252NZZLKMGCY4T/ Mailing List, Third Party Advisory
    Changed Reference Type https://lists.fedoraproject.org/archives/list/[email protected]/message/G2M5CRSGPRF7G3YB5CLU4FXW7ANNHAYT/ No Types Assigned https://lists.fedoraproject.org/archives/list/[email protected]/message/G2M5CRSGPRF7G3YB5CLU4FXW7ANNHAYT/ Mailing List, Third Party Advisory
    Changed Reference Type https://lists.fedoraproject.org/archives/list/[email protected]/message/ID6II3RIKAMVGVMC6ZAQIXXYYDMTVC4N/ No Types Assigned https://lists.fedoraproject.org/archives/list/[email protected]/message/ID6II3RIKAMVGVMC6ZAQIXXYYDMTVC4N/ Mailing List, Third Party Advisory
    Changed Reference Type https://lists.fedoraproject.org/archives/list/[email protected]/message/VP2YEXEAJWI76FPM7D7VXHWD3WESQEYC/ No Types Assigned https://lists.fedoraproject.org/archives/list/[email protected]/message/VP2YEXEAJWI76FPM7D7VXHWD3WESQEYC/ Mailing List, Third Party Advisory
    Added CPE Configuration OR *cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:* *cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:* *cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:*
  • CVE Modified by [email protected]

    Nov. 17, 2021

    Action Type Old Value New Value
    Added Reference https://lists.fedoraproject.org/archives/list/[email protected]/message/G2M5CRSGPRF7G3YB5CLU4FXW7ANNHAYT/ [No Types Assigned]
    Added Reference https://lists.fedoraproject.org/archives/list/[email protected]/message/BEGXBDEMTFGINETMJENBZ6SCHVEJQJSY/ [No Types Assigned]
    Added Reference https://lists.fedoraproject.org/archives/list/[email protected]/message/3TDGZFLBOP27LZKLH45WQLSNPSPP7S7Z/ [No Types Assigned]
    Added Reference https://lists.fedoraproject.org/archives/list/[email protected]/message/FTZXHFZD36BGE5P6JF252NZZLKMGCY4T/ [No Types Assigned]
    Added Reference https://lists.fedoraproject.org/archives/list/[email protected]/message/AF2CNP4FVC6LDKNOO4WDCGNDYIP3MPK6/ [No Types Assigned]
    Added Reference https://lists.fedoraproject.org/archives/list/[email protected]/message/CI23LXPEV2GCDQTJSKO6CIILBDTI3R42/ [No Types Assigned]
    Added Reference https://lists.fedoraproject.org/archives/list/[email protected]/message/VP2YEXEAJWI76FPM7D7VXHWD3WESQEYC/ [No Types Assigned]
    Added Reference https://lists.fedoraproject.org/archives/list/[email protected]/message/ID6II3RIKAMVGVMC6ZAQIXXYYDMTVC4N/ [No Types Assigned]
  • CVE Modified by [email protected]

    Nov. 10, 2021

    Action Type Old Value New Value
    Removed Reference https://lists.fedoraproject.org/archives/list/[email protected]/message/3TDGZFLBOP27LZKLH45WQLSNPSPP7S7Z/ [No Types Assigned]
    Removed Reference https://lists.fedoraproject.org/archives/list/[email protected]/message/AF2CNP4FVC6LDKNOO4WDCGNDYIP3MPK6/ [No Types Assigned]
    Removed Reference https://lists.fedoraproject.org/archives/list/[email protected]/message/BEGXBDEMTFGINETMJENBZ6SCHVEJQJSY/ [No Types Assigned]
    Removed Reference https://lists.fedoraproject.org/archives/list/[email protected]/message/CI23LXPEV2GCDQTJSKO6CIILBDTI3R42/ [No Types Assigned]
    Removed Reference https://lists.fedoraproject.org/archives/list/[email protected]/message/FTZXHFZD36BGE5P6JF252NZZLKMGCY4T/ [No Types Assigned]
    Removed Reference https://lists.fedoraproject.org/archives/list/[email protected]/message/G2M5CRSGPRF7G3YB5CLU4FXW7ANNHAYT/ [No Types Assigned]
    Removed Reference https://lists.fedoraproject.org/archives/list/[email protected]/message/ID6II3RIKAMVGVMC6ZAQIXXYYDMTVC4N/ [No Types Assigned]
    Removed Reference https://lists.fedoraproject.org/archives/list/[email protected]/message/VP2YEXEAJWI76FPM7D7VXHWD3WESQEYC/ [No Types Assigned]
  • CVE Modified by [email protected]

    Nov. 03, 2021

    Action Type Old Value New Value
    Added Reference https://lists.fedoraproject.org/archives/list/[email protected]/message/AF2CNP4FVC6LDKNOO4WDCGNDYIP3MPK6/ [No Types Assigned]
  • CVE Modified by [email protected]

    Nov. 02, 2021

    Action Type Old Value New Value
    Added Reference https://lists.fedoraproject.org/archives/list/[email protected]/message/3TDGZFLBOP27LZKLH45WQLSNPSPP7S7Z/ [No Types Assigned]
  • CVE Modified by [email protected]

    Nov. 01, 2021

    Action Type Old Value New Value
    Added Reference https://lists.fedoraproject.org/archives/list/[email protected]/message/VP2YEXEAJWI76FPM7D7VXHWD3WESQEYC/ [No Types Assigned]
  • CVE Modified by [email protected]

    Oct. 31, 2021

    Action Type Old Value New Value
    Added Reference https://lists.fedoraproject.org/archives/list/[email protected]/message/G2M5CRSGPRF7G3YB5CLU4FXW7ANNHAYT/ [No Types Assigned]
    Added Reference https://lists.fedoraproject.org/archives/list/[email protected]/message/BEGXBDEMTFGINETMJENBZ6SCHVEJQJSY/ [No Types Assigned]
    Added Reference https://lists.fedoraproject.org/archives/list/[email protected]/message/FTZXHFZD36BGE5P6JF252NZZLKMGCY4T/ [No Types Assigned]
    Added Reference https://lists.fedoraproject.org/archives/list/[email protected]/message/CI23LXPEV2GCDQTJSKO6CIILBDTI3R42/ [No Types Assigned]
    Added Reference https://lists.fedoraproject.org/archives/list/[email protected]/message/ID6II3RIKAMVGVMC6ZAQIXXYYDMTVC4N/ [No Types Assigned]
  • Initial Analysis by [email protected]

    Oct. 27, 2021

    Action Type Old Value New Value
    Added CVSS V2 NIST (AV:N/AC:L/Au:N/C:P/I:N/A:P)
    Added CVSS V3.1 NIST AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
    Changed Reference Type https://github.com/nothings/stb/issues/1166 No Types Assigned https://github.com/nothings/stb/issues/1166 Exploit, Issue Tracking, Third Party Advisory
    Changed Reference Type https://github.com/nothings/stb/issues/1225 No Types Assigned https://github.com/nothings/stb/issues/1225 Exploit, Issue Tracking, Third Party Advisory
    Changed Reference Type https://github.com/nothings/stb/pull/1223 No Types Assigned https://github.com/nothings/stb/pull/1223 Third Party Advisory
    Added CWE NIST CWE-120
    Added CPE Configuration OR *cpe:2.3:a:nothings:stb_image.h:2.27:*:*:*:*:*:*:*
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2021-42716 is associated with the following CWEs:

Exploit Prediction

EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.

0.21 }} 0.03%

score

0.59033

percentile

CVSS31 - Vulnerability Scoring System
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability