Bug: MD2 importer heap-buffer-overflow
Maintainers usually reply within 2 days
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 48/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- cpp
- Domain
- computer-graphics, security
Research direction
Locate Assimp::MD2Importer::InternReadFile() and reproduce the crash with the attached poc.zip. Inspect how pcSkins->name is handled before strlen(), then verify malformed MD2 input no longer causes an out-of-bounds read and add regression coverage for the reproducer.
Written by the indexing model from the issue text.
Description
Describe the bug
My name is Ravshan. I'd like to describe the bug/vulnerability: Heap Overflow Memory-safety vulnerability.
A heap-buffer-overflow occurs in Assimp’s MD2 importer when processing a malformed input file.
The crash happens due to an out-of-bounds read in strlen(), called from Assimp::MD2Importer::InternReadFile().
strlen scans memory until it finds '\0'. If pcSkins->name points to bytes that do not contain a '\0' within the allocated region, strlen reads out-of-bounds.
Code:
To Reproduce
Steps to reproduce the behavior:
- Go to '...'
- Click on '....'
- Scroll down to '....'
- See error
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Platform (please complete the following information):
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]
Additional context
Add any other context about the problem here.
- Dominant language
- C++
- Stars
- 13.3k
- Forks
- 3.3k
- Avg merge
- 3d 5h
- Merged PRs (30d)
- 12
Getting set up
- Ships a Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from assimp/assimp
-
Bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 2 days
-
Bug
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
Maintainers usually reply within 2 days
-
Bug
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
Maintainers usually reply within 2 days
-
Bug: X3D exporter reads the texture mapping mode into a bool (undefined behaviour, repeatS/repeatT inverted)Possibly taken A pull request linked to this issue is open or already merged. OpenBug Textures UVs X3D
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Maintainers usually reply within 2 days
-
Bug: glTF2 export loses AI_MATKEY_OPACITY in baseColorFactor[3] when KHR_materials_specular is writtenPossibly taken @neeldj claimed this 22 days ago. OpenExport glTF2.0
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
assimp/assimp#7034 · 2 comments ·
Maintainers usually reply within 2 days
Similar issues
-
connector-maintenance
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
gettakaro/connectors#1067 ·
Maintainers usually reply within 1 day
-
bot-triaged enhancement module: fft triaged
Difficulty 1/5 Under an hour Newbie friendliness 88/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
-
RTL-SDR: re-enumerating while streaming removes the in-use entry from the device selection dialogPossibly taken @dpc00 claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
Maintainers usually reply within 3 days