Lucene search

K
vulnrichmentGitHub_MVULNRICHMENT:CVE-2023-45662
HistoryOct 20, 2023 - 11:26 p.m.

CVE-2023-45662 Multi-byte read heap buffer overflow in stbi__vertical_flip in stb_image

2023-10-2023:26:11
CWE-125
GitHub_M
github.com
1
buffer overflow
stb_image
cve-2023-45662
image processing
mit licensed
memcpy
crafted image

CVSS3

6.5

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

LOW

Integrity Impact

NONE

Availability Impact

LOW

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

AI Score

6.6

Confidence

Low

EPSS

0.001

Percentile

31.9%

SSVC

Exploitation

poc

Automatable

yes

Technical Impact

partial

stb_image is a single file MIT licensed library for processing images. When stbi_set_flip_vertically_on_load is set to TRUE and req_comp is set to a number that doesn’t match the real number of components per pixel, the library attempts to flip the image vertically. A crafted image file can trigger memcpy out-of-bounds read because bytes_per_pixel used to calculate bytes_per_row doesn’t match the real image array dimensions.

ADP Affected

[
  {
    "cpes": [
      "cpe:2.3:a:nothings:stb_image:*:*:*:*:*:*:*:*"
    ],
    "vendor": "nothings",
    "product": "stb_image",
    "versions": [
      {
        "status": "affected",
        "version": "0",
        "versionType": "custom",
        "lessThanOrEqual": "2.28"
      }
    ],
    "defaultStatus": "unknown"
  }
]

CVSS3

6.5

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

LOW

Integrity Impact

NONE

Availability Impact

LOW

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

AI Score

6.6

Confidence

Low

EPSS

0.001

Percentile

31.9%

SSVC

Exploitation

poc

Automatable

yes

Technical Impact

partial