VYPR
High severityNVD Advisory· Published Apr 3, 2023· Updated Feb 11, 2025

CVE-2022-38072

CVE-2022-38072

Description

An improper array index validation vulnerability exists in the stl_fix_normal_directions functionality of ADMesh Master Commit 767a105 and v0.98.4. A specially-crafted stl file can lead to a heap buffer overflow. An attacker can provide a malicious file to trigger this vulnerability.

Affected packages

Versions sourced from the GitHub Security Advisory.

PackageAffected versionsPatched versions
admeshPyPI
< 0.98.50.98.5

Affected products

1

Patches

1
5fab257268a0

Check the neighbor_index in stl_check_normal_vector

https://github.com/admesh/admeshAnton GladkyNov 18, 2022via ghsa
1 file changed · +2 1
  • src/normals.c+2 1 modified
    @@ -142,7 +142,8 @@ stl_fix_normal_directions(stl_file *stl) {
             }
           }
           /* If this edge of the facet is connected: */
    -      if(stl->neighbors_start[facet_num].neighbor[j] != -1) {
    +      if(stl->neighbors_start[facet_num].neighbor[j] != -1 &&
    +         stl->neighbors_start[facet_num].neighbor[j] < stl->stats.number_of_facets*sizeof(char)) {
             /* If we haven't fixed this facet yet, add it to the list: */
             if(norm_sw[stl->neighbors_start[facet_num].neighbor[j]] != 1) {
               /* Add node to beginning of list. */
    

Vulnerability mechanics

Generated by null/stub on May 9, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.

References

5

News mentions

0

No linked articles in our index yet.