Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#3484 closed defect (fixed)

Buffer overflow in msTmpFile()

Reported by: dmorissette Owned by: dmorissette
Priority: normal Milestone: 5.6.4 release
Component: MapServer C Library Version: 5.6
Severity: normal Keywords:
Cc: sdlime, aboudreault

Description

A buffer overflow has been found in msTmpFile() when the ForcedTmpBase param is used.

This issue was found as part of a security audit of the MapServer 5.6 source. All versions going back to 4.10 (and possibly older ones) are affected.

Change History (5)

comment:1 by dmorissette, 14 years ago

Status: newassigned

Committed a fix for the buffer overflow in SVN branch-5-6 r10305 (will be in 5.6.4).

I will also backport the fix to older releases.

comment:2 by dmorissette, 14 years ago

Cc: aboudreault added

comment:3 by dmorissette, 14 years ago

Resolution: fixed
Status: assignedclosed

Backported fix to SVN branch-5-4 (r10310), branch-5-2 (r10311), branch-5-0 (r10312) and branch-4-10 (r10313)

Closing.

comment:4 by dmorissette, 14 years ago

Applied fix to SVN trunk r10318

comment:5 by dmorissette, 14 years ago

I modified msTmpFile() in r10458 (trunk only) to use snprintf instead of sprintf

Note: See TracTickets for help on using tickets.