Lucene search

K
veracodeVeracode Vulnerability DatabaseVERACODE:39322
HistoryFeb 17, 2023 - 10:23 a.m.

Incorrect Calculation Of Buffer Size

2023-02-1710:23:44
Veracode Vulnerability Database
sca.analysiscenter.veracode.com
50
php
vulnerability
buffer size
calculation
unauthorized access

EPSS

0.002

Percentile

61.0%

PHP is vulnerable to Incorrect Calculation of Buffer Size. The vulnerability exists because the core path resolution function allocates a buffer one byte too small when resolving paths with lengths close to the system MAXPATHLEN setting, leading to the byte after the allocated buffer being overwritten with NUL value, which might lead to unauthorized data access or modification.